mirror of
https://github.com/semaphoreui/semaphore.git
synced 2024-12-12 03:01:06 +01:00
30 lines
393 B
Go
30 lines
393 B
Go
package cmd
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
"os"
|
|
)
|
|
|
|
type userArgs struct {
|
|
login string
|
|
name string
|
|
email string
|
|
password string
|
|
admin bool
|
|
}
|
|
|
|
var targetUserArgs userArgs
|
|
|
|
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)
|
|
},
|
|
}
|