stillbox/pkg/cmd/admin/admin.go
Daniel Ponte 8ea82bf7d4 switchpart (#62)
Reviewed-on: #62
Co-authored-by: Daniel Ponte <amigan@gmail.com>
Co-committed-by: Daniel Ponte <amigan@gmail.com>
2024-12-01 17:26:10 -05:00

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
}