Skip to content

fix: improve provisioner key cli usability #14834

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Sep 27, 2024
Merged
Show file tree
Hide file tree
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
Next Next commit
fix
  • Loading branch information
f0ssel committed Sep 26, 2024
commit 23e90de65d691ff28d2bdbc66962df74785fc561
15 changes: 11 additions & 4 deletions enterprise/cli/provisionerdaemons.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,18 @@ func (r *RootCmd) provisionerDaemons() *serpent.Command {
}

// The provisionerd command group is deprecated and hidden but kept around
// for backwards compatibility.
// for backwards compatibility with the start command.
func (r *RootCmd) provisionerd() *serpent.Command {
cmd := r.provisionerDaemons()
cmd.Use = "provisionerd"
cmd.Hidden = true
cmd := &serpent.Command{
Use: "provisionerd",
Short: "Manage provisioner daemons",
Handler: func(inv *serpent.Invocation) error {
return inv.Command.HelpHandler(inv)
},
Children: []*serpent.Command{
r.provisionerDaemonStart(),
},
}

return cmd
}
2 changes: 1 addition & 1 deletion enterprise/cli/provisionerkeys.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ func (r *RootCmd) provisionerKeysList() *serpent.Command {
}

type provisionerKeyListItem struct {
Name string `json:"name" table:"name,default_sort"`
CreatedAt time.Time `json:"created_at" table:"created at" format:"date-time"`
Name string `json:"name" table:"name,default_sort"`
Tags string `json:"tags" table:"tags"`
}

Expand Down
Loading