netmaker/cli/cmd/user/list.go
2022-11-28 18:16:56 +05:30

20 lines
372 B
Go

package user
import (
"github.com/gravitl/netmaker/cli/functions"
"github.com/spf13/cobra"
)
var userListCmd = &cobra.Command{
Use: "list",
Args: cobra.NoArgs,
Short: "List all users",
Long: `List all users`,
Run: func(cmd *cobra.Command, args []string) {
functions.PrettyPrint(functions.ListUsers())
},
}
func init() {
rootCmd.AddCommand(userListCmd)
}