Skip to content

Commit

Permalink
Merge pull request #375 from CircleCI-Public/unhide-contexts
Browse files Browse the repository at this point in the history
Unhide the `context` command
  • Loading branch information
marcomorain authored Mar 4, 2020
2 parents 8753e63 + f4741ef commit 67c7d52
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions cmd/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@ func newContextCommand(config *settings.Config) *cobra.Command {
}

command := &cobra.Command{
Hidden: true,
Use: "context",
Short: "Contexts provide a mechanism for securing and sharing environment variables across projects. The environment variables are defined as name/value pairs and are injected at runtime.",
Use: "context",
Short: "Contexts provide a mechanism for securing and sharing environment variables across projects. The environment variables are defined as name/value pairs and are injected at runtime.",
}

listCommand := &cobra.Command{
Short: "List contexts",
Short: "List all contexts",
Use: "list <vcs-type> <org-name>",
PreRun: initClient,
RunE: func(cmd *cobra.Command, args []string) error {
Expand All @@ -51,7 +50,7 @@ func newContextCommand(config *settings.Config) *cobra.Command {
}

storeCommand := &cobra.Command{
Short: "Store an new secret in the named context. The value is read from stdin.",
Short: "Store a new environment variable in the named context. The value is read from stdin.",
Use: "store-secret <vcs-type> <org-name> <context-name> <secret name>",
PreRun: initClient,
RunE: func(cmd *cobra.Command, args []string) error {
Expand All @@ -61,7 +60,7 @@ func newContextCommand(config *settings.Config) *cobra.Command {
}

removeCommand := &cobra.Command{
Short: "Remove a secret from the named context",
Short: "Remove an environment variable from the named context",
Use: "remove-secret <vcs-type> <org-name> <context-name> <secret name>",
PreRun: initClient,
RunE: func(cmd *cobra.Command, args []string) error {
Expand Down

0 comments on commit 67c7d52

Please sign in to comment.