Skip to content

Commit

Permalink
fix: Workspace-id to workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Jan 16, 2025
1 parent 7787831 commit da19621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/ctrlc/root/sync/terraform/terraform.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func NewSyncTerraformCmd() *cobra.Command {
export TFE_ADDRESS=... else the default address (https://app.terraform.io) is used.
# Sync all workspaces in an organization
$ ctrlc sync terraform --organization my-org --workspace-id 2a7c5560-75c9-4dbe-be74-04ee33bf8188
$ ctrlc sync terraform --organization my-org --workspace 2a7c5560-75c9-4dbe-be74-04ee33bf8188
`),
RunE: func(cmd *cobra.Command, args []string) error {
fmt.Println("Syncing Terraform resources into Ctrlplane")
Expand Down Expand Up @@ -110,7 +110,7 @@ func NewSyncTerraformCmd() *cobra.Command {
}

cmd.Flags().StringVarP(&organization, "organization", "o", "", "Terraform organization name")
cmd.Flags().StringVarP(&workspaceId, "workspace-id", "w", "", "Ctrlplane workspace ID")
cmd.Flags().StringVarP(&workspaceId, "workspace", "w", "", "Ctrlplane workspace ID")

return cmd
}
2 changes: 1 addition & 1 deletion docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ In order to sync Terraform resources into Ctrlplane, you need to set the followi

```sh
docker run -e TFE_TOKEN=my-token -e CTRLPLANE_API_KEY=my-api-key -e CTRLPLANE_URL=https://app.ctrlplane.dev \
ctrlplane/cli ctrlc sync terraform --organization my-org --workspace-id 2a7c5560-75c9-4dbe-be74-04ee33bf8188
ctrlplane/cli ctrlc sync terraform --organization my-org --workspace 2a7c5560-75c9-4dbe-be74-04ee33bf8188
```

0 comments on commit da19621

Please sign in to comment.