common

package
v0.1.9 Latest Latest
Warning

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

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

Documentation

Overview

Package common defines flags and options shared by every Deployah command.

GlobalOptions captures persistent CLI flags such as namespace, kubeconfig, manifest path, debug mode, and operation timeout. The root command reads these values in its pre-run hook and builds a runtime.Runtime from them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlobalOptions

type GlobalOptions struct {
	Namespace  string        `nabat:"namespace"`
	Kubeconfig string        `nabat:"kubeconfig"`
	Context    string        `nabat:"context"`
	Config     string        `nabat:"config"`
	Debug      bool          `nabat:"debug"`
	Timeout    time.Duration `nabat:"timeout"`
}

GlobalOptions are the persistent flags shared by all commands. Used exclusively in the OnPreRun hook to construct the runtime.

Jump to

Keyboard shortcuts

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