Skip to content

Commit

Permalink
Rename create-gpg-key to add-gpg-key (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinwyszynski committed Jan 13, 2023
1 parent 8d16d03 commit b824943
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/spacelift-io/spacectl/internal/cmd/provider/internal"
)

func createGPGKey() cli.ActionFunc {
func addGPGKey() cli.ActionFunc {
return func(cliCtx *cli.Context) error {
keyGenerate := cliCtx.Bool(flagKeyGenerate.Name)
keyImport := cliCtx.Bool(flagKeyImport.Name)
Expand Down
6 changes: 3 additions & 3 deletions internal/cmd/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ func Command() *cli.Command {
Subcommands: []*cli.Command{
{
Category: "GPG key management",
Name: "create-gpg-key",
Usage: "Create a new GPG key for signing provider releases",
Name: "add-gpg-key",
Usage: "Adds a new GPG key for signing provider releases",
Flags: []cli.Flag{
flagKeyEmail,
flagKeyGenerate,
flagKeyImport,
flagKeyName,
flagKeyPath,
},
Action: createGPGKey(),
Action: addGPGKey(),
Before: authenticated.Ensure,
ArgsUsage: cmd.EmptyArgsUsage,
},
Expand Down

0 comments on commit b824943

Please sign in to comment.