Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.

Commit 0d454e2

Browse files
Add operation flags to config sync CLI.
This commit adds the set of operation flags (-local, for example) to the config sync command.
1 parent bb807a9 commit 0d454e2

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.changelog/4143.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:improvement
2+
cli/config-sync: Add operations flags to `config sync` command.
3+
```

internal/cli/config_sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (c *ConfigSyncCommand) Run(args []string) int {
7575
}
7676

7777
func (c *ConfigSyncCommand) Flags() *flag.Sets {
78-
return c.flagSet(0, nil)
78+
return c.flagSet(flagSetOperation, nil)
7979
}
8080

8181
func (c *ConfigSyncCommand) AutocompleteArgs() complete.Predictor {

website/content/commands/config-sync.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,14 @@ be deleted.
3131
- `-project=<string>` (`-p`) - Project to target.
3232
- `-workspace=<string>` (`-w`) - Workspace to operate in.
3333

34+
#### Operation Options
35+
36+
- `-label=<key=value>` - Labels to set for this operation. Can be specified multiple times.
37+
- `-local` - True to use a local runner to execute the operation, false to use a remote runner.
38+
If unset, Waypoint will automatically determine where the operation will occur,
39+
defaulting to remote if possible.
40+
- `-remote-source=<key=value>` - Override configurations for how remote runners source data. This is specified to the data source type being used in your configuration. This is used for example to set a specific Git ref to run against.
41+
- `-var=<key=value>` - Variable value to set for this operation. Can be specified multiple times.
42+
- `-var-file=<string>` - HCL or JSON file containing variable values to set for this operation. If any "_.auto.wpvars" or "_.auto.wpvars.json" files are present, they will be automatically loaded.
43+
3444
@include "commands/config-sync_more.mdx"

0 commit comments

Comments
 (0)