Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RemoveCmd = &cobra.Command{ Use: "remove", Short: "remove a user, group, or files", Run: func(cmd *cobra.Command, args []string) { removeType := struct { Type string `survey:"type"` }{} err := survey.Ask(prompt.RemovePrompt(), &removeType) helper.CheckErr(err) if removeType.Type == "Groups" { removeGroup() } else if removeType.Type == "A File" { removeFile() } else if removeType.Type == "A User" { fmt.Println(removeType.Type) } }, }
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.