aboutsummaryrefslogtreecommitdiffstats
path: root/commands/user.go
diff options
context:
space:
mode:
Diffstat (limited to 'commands/user.go')
-rw-r--r--commands/user.go11
1 files changed, 5 insertions, 6 deletions
diff --git a/commands/user.go b/commands/user.go
index 29c4e932..b6a2e485 100644
--- a/commands/user.go
+++ b/commands/user.go
@@ -18,13 +18,12 @@ func newUserCommand() *cobra.Command {
options := userOptions{}
cmd := &cobra.Command{
- Use: "user [USER-ID]",
- Short: "Display or change the user identity.",
- PreRunE: loadBackendEnsureUser(env),
- PostRunE: closeBackend(env),
- RunE: func(cmd *cobra.Command, args []string) error {
+ Use: "user [USER-ID]",
+ Short: "Display or change the user identity.",
+ PreRunE: loadBackendEnsureUser(env),
+ RunE: closeBackend(env, func(cmd *cobra.Command, args []string) error {
return runUser(env, options, args)
- },
+ }),
}
cmd.AddCommand(newUserAdoptCommand())