remove

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: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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