Skip to content

Commit

Permalink
feat(cli): remove unused 'user invite' subcommand
Browse files Browse the repository at this point in the history
The top-level invite command is used instead.
  • Loading branch information
imiric committed Apr 18, 2024
1 parent 0691605 commit 08692c7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions app/cli/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ type User struct {
Name string `arg:"" help:"The unique name of the user."`
Roles []string `help:"Names of roles to assign to this user. \n Any existing roles will be removed and replaced with this set."`
} `kong:"cmd,help='Update the configuration of a user.'"`
Invite struct {
Name string `arg:"" help:"The unique name of the user."`
} `kong:"cmd,help='Create an invitation token for a user.'"`
Ls struct {
} `kong:"cmd,help='List users.'"`
}
Expand Down Expand Up @@ -89,7 +86,6 @@ func (c *User) Run(kctx *kong.Context, appCtx *actx.Context) error {
"user '%s' has no assigned roles and won't be able to "+
"access any resources", c.Update.Name))
}
case "invite":
case "ls":
users, err := models.Users(dbCtx, appCtx.DB,
// Local users are hidden for now.
Expand Down

0 comments on commit 08692c7

Please sign in to comment.