Skip to content

Commit

Permalink
Merge pull request #326 from authzed/use-completion
Browse files Browse the repository at this point in the history
cmd: add autocomplete to `zed use`
  • Loading branch information
josephschorr authored Jan 9, 2024
2 parents 41fc514 + f75c8d3 commit dcaded1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions internal/cmd/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,11 @@ func Run() {

// Register root-level aliases
rootCmd.AddCommand(&cobra.Command{
Use: "use <context>",
Short: "an alias for `zed context use`",
Args: cobra.MaximumNArgs(1),
RunE: contextUseCmdFunc,
Use: "use <context>",
Short: "an alias for `zed context use`",
Args: cobra.MaximumNArgs(1),
RunE: contextUseCmdFunc,
ValidArgsFunction: ContextGet,
})

// Register CLI-only commands.
Expand Down

0 comments on commit dcaded1

Please sign in to comment.