Files
ionscale/internal/cmd/root.go
T
Johan Siebens 5ad89ff02f initial working version
Signed-off-by: Johan Siebens <johan.siebens@gmail.com>
2022-05-09 21:54:06 +02:00

27 lines
459 B
Go

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