Semaphore/cli/cmd/user.go

30 lines
393 B
Go
Raw Normal View History

2021-08-25 22:12:19 +02:00
package cmd
import (
"github.com/spf13/cobra"
"os"
)
2021-08-27 10:50:26 +02:00
type userArgs struct {
login string
name string
email string
password string
admin bool
2021-08-25 22:12:19 +02:00
}
var targetUserArgs userArgs
2021-08-25 22:12:19 +02:00
func init() {
rootCmd.AddCommand(userCmd)
}
var userCmd = &cobra.Command{
Use: "user",
Short: "Manage users",
Run: func(cmd *cobra.Command, args []string) {
_ = cmd.Help()
os.Exit(0)
2021-08-25 22:12:19 +02:00
},
2021-08-27 10:50:26 +02:00
}