Skip to content

Commit

Permalink
chore: fix doc on env create
Browse files Browse the repository at this point in the history
  • Loading branch information
raulb committed Oct 28, 2021
1 parent 836109b commit caa5d04
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmd/meroxa/root/environments/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ type Create struct {
Type string `long:"type" usage:"environment type, when not specified"`
Provider string `long:"provider" usage:"environment cloud provider to use"`
Region string `long:"region" usage:"environment region"`
Config string `short:"c" long:"config" usage:"environment configuration based on type and provider (e.g.: --config {\"aws_access_key_id\":\"my_access_key\", \"aws_access_secret\":\"my_access_secret\"})"` // nolint:lll
Config string `short:"c" long:"config" usage:"environment configuration based on type and provider (e.g.: --config '{\"aws_access_key_id\":\"my_access_key\", \"aws_secret_access_key\":\"my_secret_access_key\"}')"` // nolint:lll
}

envCfg map[string]interface{}
Expand Down Expand Up @@ -268,7 +268,11 @@ func (c *Create) Docs() builder.Docs {
return builder.Docs{
Short: "Create an environment",
Example: `
meroxa env create my-env --type hosted --provider aws --region us-east-1 --config aws_access_key_id=1234 --config aws_secret_access_key=5678
meroxa env create my-env \
--type hosted \
--provider aws \
--region us-east-1 \
--config '{\"aws_access_key_id\":\"my_access_key\", \"aws_secret_access_key\":\"my_secret_access_key\"}'
`,
}
}

0 comments on commit caa5d04

Please sign in to comment.