cmd

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSetupControls

func AddSetupControls(parent *cobra.Command)

func AddSetupRepo

func AddSetupRepo(parent *cobra.Command)

func CheckAuth

func CheckAuth() (*auth.Authenticator, error)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type AuditMode

type AuditMode int
const (
	AuditModeBasic AuditMode = 1
	AuditModeFull  AuditMode = 2
)

func (*AuditMode) Set

func (e *AuditMode) Set(v string) error

Set must have pointer receiver so it doesn't change the value of a copy

func (*AuditMode) String

func (e *AuditMode) String() string

Enable audit mode enum String is used both by fmt.Print and by Cobra in help text

func (*AuditMode) Type

func (e *AuditMode) Type() string

Type is only used in help text

Jump to

Keyboard shortcuts

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