mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-20 11:09:40 -06:00
20 lines
347 B
Go
20 lines
347 B
Go
package admincmd
|
|
|
|
import (
|
|
"github.com/shroff/phylum/server/internal/storage"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func SetupCommand(cs storage.Storage) *cobra.Command {
|
|
cmd := &cobra.Command{
|
|
Use: "admin",
|
|
Short: "Server Administration",
|
|
}
|
|
cmd.AddCommand([]*cobra.Command{
|
|
setupStorageCommand(cs),
|
|
setupUserCommand(),
|
|
}...)
|
|
|
|
return cmd
|
|
}
|