Daniel Ponte
8ea82bf7d4
Reviewed-on: #62 Co-authored-by: Daniel Ponte <amigan@gmail.com> Co-committed-by: Daniel Ponte <amigan@gmail.com>
22 lines
403 B
Go
22 lines
403 B
Go
package admin
|
|
|
|
import (
|
|
"dynatron.me/x/stillbox/pkg/config"
|
|
|
|
"github.com/urfave/cli/v2"
|
|
)
|
|
|
|
// AdminCommand is the admin command.
|
|
func AdminCommand(cfg *config.Configuration) *cli.Command {
|
|
userCmd := &cli.Command{
|
|
Name: "admin",
|
|
Aliases: []string{"a"},
|
|
Usage: "administers stillbox",
|
|
Subcommands: []*cli.Command{
|
|
UsersCommand(cfg),
|
|
DatabaseCommand(cfg),
|
|
},
|
|
}
|
|
|
|
return userCmd
|
|
}
|