Files
ionscale/internal/cmd/root.go
T
2022-10-04 16:06:15 +02:00

31 lines
604 B
Go

package cmd
import (
"github.com/muesli/coral"
)
func Command() *coral.Command {
rootCmd := rootCommand()
rootCmd.AddCommand(configureCommand())
rootCmd.AddCommand(keyCommand())
rootCmd.AddCommand(authCommand())
rootCmd.AddCommand(serverCommand())
rootCmd.AddCommand(versionCommand())
rootCmd.AddCommand(tailnetCommand())
rootCmd.AddCommand(authkeysCommand())
rootCmd.AddCommand(machineCommands())
rootCmd.AddCommand(userCommands())
return rootCmd
}
func Execute() error {
return Command().Execute()
}
func rootCommand() *coral.Command {
return &coral.Command{
Use: "ionscale",
}
}