Skip to content
This repository was archived by the owner on Jan 8, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/4143.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:improvement
cli/config-sync: Add operations flags to `config sync` command.
```
2 changes: 1 addition & 1 deletion internal/cli/config_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func (c *ConfigSyncCommand) Run(args []string) int {
}

func (c *ConfigSyncCommand) Flags() *flag.Sets {
return c.flagSet(0, nil)
return c.flagSet(flagSetOperation, nil)
}

func (c *ConfigSyncCommand) AutocompleteArgs() complete.Predictor {
Expand Down
10 changes: 10 additions & 0 deletions website/content/commands/config-sync.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,14 @@ be deleted.
- `-project=<string>` (`-p`) - Project to target.
- `-workspace=<string>` (`-w`) - Workspace to operate in.

#### Operation Options

- `-label=<key=value>` - Labels to set for this operation. Can be specified multiple times.
- `-local` - True to use a local runner to execute the operation, false to use a remote runner.
If unset, Waypoint will automatically determine where the operation will occur,
defaulting to remote if possible.
- `-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.
- `-var=<key=value>` - Variable value to set for this operation. Can be specified multiple times.
- `-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.

@include "commands/config-sync_more.mdx"