Skip to content

Commit 824f6a2

Browse files
committed
fix signin subcommand alias
1 parent ef857a6 commit 824f6a2

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

  • cmd/carapace-spec-botocore/cmd/customizations
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package customizations
2+
3+
import "github.com/carapace-sh/carapace-spec/pkg/command"
4+
5+
func init() {
6+
customizations["signin.create-oauth2-token"] = func(cmd *command.Command) error {
7+
cmd.Aliases = append(cmd.Aliases, "create-o-auth2-token")
8+
return nil
9+
}
10+
11+
customizations["translate.import-terminology"] = func(cmd *command.Command) error {
12+
cmd.AddFlag(command.Flag{
13+
Longhand: "data-file",
14+
Description: "The path to the file of the code you are uploading.",
15+
Value: true,
16+
Required: true,
17+
})
18+
return nil
19+
}
20+
}

0 commit comments

Comments
 (0)