shared

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCmd

func AddCmd(parent *cobra.Command, cmd *cobra.Command)

AddCmd adds a command, inheriting the parent's Args validator if not explicitly set. Individual commands that need different argument rules can override this by setting their own Args validator.

Types

type OutputFormat

type OutputFormat string
const (
	OutputFormatTable OutputFormat = "table"
	OutputFormatJSON  OutputFormat = "json"
	OutputFormatYAML  OutputFormat = "yaml"
)

type RootOptions

type RootOptions interface {
	GetTeamId() (int, error)
	GetOrgId() (string, error)
	GetWorkspaceId() (int, error)
	GetApiUrl() string
	GetApiToken() (string, error)
	GetVerbose() bool
	NewClient() (*api.Client, error)
}

Jump to

Keyboard shortcuts

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