flags

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package flags provides helper functions for registering and reading commonly used CLI flags across occ subcommands.

Index

Constants

View Source
const (
	ModeAPIServer  = "api-server"
	ModeFileSystem = "file-system"
)

Mode constants for the --mode flag.

Variables

This section is empty.

Functions

func AddAll

func AddAll(cmd *cobra.Command)

func AddComponent

func AddComponent(cmd *cobra.Command)

func AddComponentRelease

func AddComponentRelease(cmd *cobra.Command)

func AddControlPlane

func AddControlPlane(cmd *cobra.Command)

func AddCredentials

func AddCredentials(cmd *cobra.Command)

func AddDryRun

func AddDryRun(cmd *cobra.Command)

func AddEnvironment

func AddEnvironment(cmd *cobra.Command)

func AddFollow

func AddFollow(cmd *cobra.Command)

func AddMode

func AddMode(cmd *cobra.Command)

func AddNamespace

func AddNamespace(cmd *cobra.Command)

func AddOutputFile

func AddOutputFile(cmd *cobra.Command)

func AddOutputPath

func AddOutputPath(cmd *cobra.Command)

func AddProject

func AddProject(cmd *cobra.Command)

func AddRelease

func AddRelease(cmd *cobra.Command)

func AddResource

func AddResource(cmd *cobra.Command)

func AddRootDir

func AddRootDir(cmd *cobra.Command)

func AddSet

func AddSet(cmd *cobra.Command)

func AddSince

func AddSince(cmd *cobra.Command)

func AddTail

func AddTail(cmd *cobra.Command)

func AddTargetEnv

func AddTargetEnv(cmd *cobra.Command)

func AddTo

func AddTo(cmd *cobra.Command)

func AddURL

func AddURL(cmd *cobra.Command)

func AddUsePipeline

func AddUsePipeline(cmd *cobra.Command)

func AddWorkflowRun

func AddWorkflowRun(cmd *cobra.Command)

func GetAll

func GetAll(cmd *cobra.Command) bool

func GetComponent

func GetComponent(cmd *cobra.Command) string

func GetComponentRelease

func GetComponentRelease(cmd *cobra.Command) string

func GetControlPlane

func GetControlPlane(cmd *cobra.Command) string

func GetCredentials

func GetCredentials(cmd *cobra.Command) string

func GetDryRun

func GetDryRun(cmd *cobra.Command) bool

func GetEnvironment

func GetEnvironment(cmd *cobra.Command) string

func GetFollow

func GetFollow(cmd *cobra.Command) bool

func GetMode

func GetMode(cmd *cobra.Command) string

func GetNamespace

func GetNamespace(cmd *cobra.Command) string

func GetOutputFile

func GetOutputFile(cmd *cobra.Command) string

func GetOutputPath

func GetOutputPath(cmd *cobra.Command) string

func GetProject

func GetProject(cmd *cobra.Command) string

func GetRelease

func GetRelease(cmd *cobra.Command) string

func GetResource

func GetResource(cmd *cobra.Command) string

func GetRootDir

func GetRootDir(cmd *cobra.Command) string

func GetSet

func GetSet(cmd *cobra.Command) []string

func GetSince

func GetSince(cmd *cobra.Command) string

func GetTail

func GetTail(cmd *cobra.Command) int

func GetTargetEnv

func GetTargetEnv(cmd *cobra.Command) string

func GetTo

func GetTo(cmd *cobra.Command) string

func GetURL

func GetURL(cmd *cobra.Command) string

func GetUsePipeline

func GetUsePipeline(cmd *cobra.Command) string

func GetWorkflowRun

func GetWorkflowRun(cmd *cobra.Command) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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