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

Error coder sh commands if the env requires a rebuild #163

Merged
merged 4 commits into from
Oct 29, 2020
Merged
Changes from 1 commit
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
Prev Previous commit
fixup! Error coder sh commands if the env requires a rebuild
  • Loading branch information
cmoog committed Oct 29, 2020
commit 04e36f81468e287b94323ad84fc7bbcb118423ef
4 changes: 2 additions & 2 deletions internal/cmd/secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func secretsCmd() *cobra.Command {
Use: "rm [...secret_name]",
Short: "Remove one or more secrets by name",
Args: cobra.MinimumNArgs(1),
RunE: remoteSecretsCmd(&user),
RunE: removeSecretsCmd(&user),
Example: "coder secrets rm mysql-password mysql-user",
},
&cobra.Command{
Expand Down Expand Up @@ -196,7 +196,7 @@ func viewSecretCmd(userEmail *string) func(cmd *cobra.Command, args []string) er
}
}

func remoteSecretsCmd(userEmail *string) func(c *cobra.Command, args []string) error {
func removeSecretsCmd(userEmail *string) func(c *cobra.Command, args []string) error {
return func(cmd *cobra.Command, args []string) error {
client, err := newClient()
if err != nil {
Expand Down