src/server/auth/cmds/cmds.go
func Cmds(noMetrics, noPortForwarding *bool) []*cobra.Command {
	var commands []*cobra.Command

	auth := &cobra.Command{
		Short: "Auth commands manage access to data in a Pachyderm cluster",
		Long:  "Auth commands manage access to data in a Pachyderm cluster",
	}

	commands = append(commands, cmdutil.CreateAlias(auth, "auth"))
	commands = append(commands, ActivateCmd(noMetrics, noPortForwarding))
	commands = append(commands, DeactivateCmd(noMetrics, noPortForwarding))
	commands = append(commands, LoginCmd(noMetrics, noPortForwarding))
	commands = append(commands, LogoutCmd())
	commands = append(commands, WhoamiCmd(noMetrics, noPortForwarding))
	commands = append(commands, CheckCmd(noMetrics, noPortForwarding))
	commands = append(commands, SetScopeCmd(noMetrics, noPortForwarding))
	commands = append(commands, GetCmd(noMetrics, noPortForwarding))
	commands = append(commands, ListAdminsCmd(noMetrics, noPortForwarding))
	commands = append(commands, ModifyAdminsCmd(noMetrics, noPortForwarding))
	commands = append(commands, GetAuthTokenCmd(noMetrics, noPortForwarding))
	commands = append(commands, UseAuthTokenCmd())
	commands = append(commands, GetConfigCmd(noPortForwarding))
	commands = append(commands, SetConfigCmd(noPortForwarding))

	return commands
}
func Cmds(noMetrics, noPortForwarding *bool) []*cobra.Command {
	var commands []*cobra.Command

	auth := &cobra.Command{
		Short: "Auth commands manage access to data in a Pachyderm cluster",
		Long:  "Auth commands manage access to data in a Pachyderm cluster",
	}

	commands = append(commands, cmdutil.CreateAlias(auth, "auth"))
	commands = append(commands, ActivateCmd(noMetrics, noPortForwarding))
	commands = append(commands, DeactivateCmd(noMetrics, noPortForwarding))
	commands = append(commands, LoginCmd(noMetrics, noPortForwarding))
	commands = append(commands, LogoutCmd())
	commands = append(commands, WhoamiCmd(noMetrics, noPortForwarding))
	commands = append(commands, CheckCmd(noMetrics, noPortForwarding))
	commands = append(commands, SetScopeCmd(noMetrics, noPortForwarding))
	commands = append(commands, GetCmd(noMetrics, noPortForwarding))
	commands = append(commands, ListAdminsCmd(noMetrics, noPortForwarding))
	commands = append(commands, ModifyAdminsCmd(noMetrics, noPortForwarding))
	commands = append(commands, GetAuthTokenCmd(noMetrics, noPortForwarding))
	commands = append(commands, UseAuthTokenCmd())
	commands = append(commands, GetConfigCmd(noPortForwarding))
	commands = append(commands, SetConfigCmd(noPortForwarding))

	return commands
}
func Cmds ( noMetrics , noPortForwarding * bool ) [ ] * cobra . Command { var commands [ ] * cobra . Command auth := & cobra . Command { Short : " " , Long : " " , } commands = append ( commands , cmdutil . CreateAlias ( auth , " " ) ) commands = append ( commands , ActivateCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , DeactivateCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , LoginCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , LogoutCmd ( ) ) commands = append ( commands , WhoamiCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , CheckCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , SetScopeCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , GetCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , ListAdminsCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , ModifyAdminsCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , GetAuthTokenCmd ( noMetrics , noPortForwarding ) ) commands = append ( commands , UseAuthTokenCmd ( ) ) commands = append ( commands , GetConfigCmd ( noPortForwarding ) ) commands = append ( commands , SetConfigCmd ( noPortForwarding ) ) return commands }
// Cmds returns a list of cobra commands for authenticating and authorizing
// users in an auth-enabled Pachyderm cluster.
Cmds returns a list of cobra commands for authenticating and authorizing users in an auth - enabled Pachyderm cluster .