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

Hide secrets command #171

Merged
merged 1 commit into from
Nov 3, 2020
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
1 change: 1 addition & 0 deletions ci/integration/secrets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
func TestSecrets(t *testing.T) {
t.Parallel()
run(t, "secrets-cli-tests", func(t *testing.T, ctx context.Context, c *tcli.ContainerRunner) {
t.Skip()
headlessLogin(ctx, t, c)

c.Run(ctx, "coder secrets ls").Assert(t,
Expand Down
1 change: 0 additions & 1 deletion docs/coder.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ coder provides a CLI for working with an existing Coder Enterprise installation
* [coder envs](coder_envs.md) - Interact with Coder environments
* [coder login](coder_login.md) - Authenticate this client for future operations
* [coder logout](coder_logout.md) - Remove local authentication credentials if any exist
* [coder secrets](coder_secrets.md) - Interact with Coder Secrets
* [coder sh](coder_sh.md) - Open a shell and execute commands in a Coder environment
* [coder sync](coder_sync.md) - Establish a one way directory sync to a Coder environment
* [coder urls](coder_urls.md) - Interact with environment DevURLs
Expand Down
29 changes: 0 additions & 29 deletions docs/coder_secrets.md

This file was deleted.

41 changes: 0 additions & 41 deletions docs/coder_secrets_create.md

This file was deleted.

25 changes: 0 additions & 25 deletions docs/coder_secrets_ls.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/coder_secrets_rm.md

This file was deleted.

31 changes: 0 additions & 31 deletions docs/coder_secrets_view.md

This file was deleted.

16 changes: 13 additions & 3 deletions internal/cmd/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,19 @@ import (
func secretsCmd() *cobra.Command {
var user string
cmd := &cobra.Command{
Use: "secrets",
Short: "Interact with Coder Secrets",
Long: "Interact with secrets objects owned by the active user.",
Use: "secrets",
Short: "Interact with Coder Secrets",
Long: "Interact with secrets objects owned by the active user.",
Hidden: true,
PersistentPreRun: func(cmd *cobra.Command, args []string) {
clog.LogWarn(
"The 'secrets' command is now deprecated",
"It will be removed in the next minor release",
)
},
Run: func(cmd *cobra.Command, args []string) {
_ = cmd.Help()
},
}
cmd.PersistentFlags().StringVar(&user, "user", coder.Me, "Specify the user whose resources to target")
cmd.AddCommand(
Expand Down