stillbox/pkg/cmd/admin/admin.go

23 lines
403 B
Go
Raw Normal View History

2024-07-15 10:12:53 -04:00
package admin
import (
2024-11-03 07:19:03 -05:00
"dynatron.me/x/stillbox/pkg/config"
2024-07-15 10:12:53 -04:00
"github.com/urfave/cli/v2"
2024-07-15 10:12:53 -04:00
)
// AdminCommand is the admin command.
func AdminCommand(cfg *config.Configuration) *cli.Command {
2024-11-24 10:38:19 -05:00
userCmd := &cli.Command{
Name: "admin",
Aliases: []string{"a"},
Usage: "administers stillbox",
2024-11-24 10:38:19 -05:00
Subcommands: []*cli.Command{
UsersCommand(cfg),
DatabaseCommand(cfg),
2024-11-24 10:38:19 -05:00
},
2024-07-15 10:12:53 -04:00
}
2024-11-24 10:38:19 -05:00
return userCmd
2024-07-15 10:12:53 -04:00
}