mirror of
https://github.com/jsiebens/ionscale.git
synced 2026-03-31 15:07:49 +01:00
33 lines
679 B
Go
33 lines
679 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func Command() *cobra.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())
|
|
rootCmd.AddCommand(systemCommand())
|
|
rootCmd.AddCommand(recorderCommand())
|
|
|
|
return rootCmd
|
|
}
|
|
|
|
func Execute() error {
|
|
return Command().Execute()
|
|
}
|
|
|
|
func rootCommand() *cobra.Command {
|
|
return &cobra.Command{
|
|
Use: "ionscale",
|
|
}
|
|
}
|