add

package
v0.0.0-...-0c0b971 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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