create

package
v0.0.0-...-2926f53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCmd = &cobra.Command{
	Use:       "create",
	Short:     "Create a new group or user",
	ValidArgs: []string{"user", "group"},
	Args:      utils.MatchMultipleArgs(cobra.MinimumNArgs(1), cobra.OnlyValidArgs),
	Run: func(cmd *cobra.Command, args []string) {
		if args[0] == "user" {
			createUser()
		} else if args[0] == "group" {
			createGroup()
		}
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL