Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AddCmd = &cobra.Command{ Use: "add", Short: "generate user, create new group, add new files", Run: func(cmd *cobra.Command, args []string) { addType := struct { Type string `survey:"type"` }{} err := survey.Ask(prompt.AddPrompt(), &addType) helper.CheckErr(err) if addType.Type == "New Group" { addGroup() } else if addType.Type == "New Files" { addFile() } else if addType.Type == "New User" { addUser() } }, }
addUser command will add a user to specific group
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.