Main proposal: google/clasp#989
Adds a remote named <name>
pointing to the GAS project at <scriptId>
.
Analogous to git remote add
.
-
--project
or-g
(for "Google Cloud") to setprojectId
. -
--parent
or-p
to setparentId
. -
--shared
or-s
to share this remote in.clasp.json
. -
--default
or-d
to set this remote asdefaultRemote
in.clasprc.json
. -
--pull
or-f
(for "fetch") to immediatelypull
this remote. -
Error if a remote with name
<name>
already exists. -
Warn if a remote for
<scriptId>
already exists, suggestremote update --(un)set-shared
.
Lists configured remotes.
Analogous to git remote
with no arguments. I opted for a specific subcommand for consistency with version(s)
and deploy(ments)
.
--shared
or-s
to only list shared remotes.--private
or-p
to only list private remotes.
Show properties of a specific remote. If no options
are specified all will be shown.
Analogous to git remote show
and git remote get-url
..
--default
or-d
to show if remote is configured asdefaultRemote
.--shared
or-s
to show if remote is shared.
Renames remote <old>
to <new>
.
Analogous to git remote rename
.
- Error if a remote with name
<new>
already exists.
Updates one or more properties of remote <name>
.
Analogous to git remote set-head
, git remote set-branches
and git remote set-url
.
-
--(un)set-default
to configure if the remote is thedefaultRemote
. -
--(un)set-shared
to configure if the remote is shared. -
Warn if
--(un)set-default/shared
doesn't change anything.
Remove reference to GAS project remote(s) <name>
.
Analogous to git remote remove
.
-
--delete
to also delete GAS project itself. -
Warn if there is no remote for
<name>
.
- Add
--set-default
(-d
) flag to configure the specified remote asdefaultRemote
, analogous to git's --set-upstream.
- An ad-hoc specified
scriptId
should be treated as a value for[remote]
. - If a specified
[remote]
is not configured as a remote it should be treated as an ad-hocscriptId
.
- Add
--all-remotes
flag for undeploying all versions across all remotes. The existing--all
should undeploy all versions for a specific remote.
- Add
--shared
(-s
) flag to share the created/cloned remote. Private by default. - Add
--remote-name
(-n
) to specify the name of the created/cloned remote. Defaults todefaultRemoteName
. Analogous togit clone
's--origin
. - Add
--remote-default
(-d
) flag to immediately set the created/cloned remote as thedefaultRemote
.
- Add ability to set the new
defaultRemote
anddefaultRemoteName
options in.clasprc.json
. - Add
--global
flag to set.clasprc.json
settings in the "global" file in the user's home directory, analogous togit config
's--global
. - Deprecate setting the 'root keys' remote pointer options, suggest
remote add/update
.