config

package
v0.0.0-...-d160b6d Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImportCmdConfig

type ImportCmdConfig struct {
	// contains filtered or unexported fields
}

ImportCmdConfig holds configuration for the import-runs command

func NewImportCmdConfig

func NewImportCmdConfig(cliCtx *cli.Context) *ImportCmdConfig

NewImportCmdConfig creates a new import command configuration from CLI context

func (*ImportCmdConfig) Check

func (c *ImportCmdConfig) Check() error

Check validates the import configuration

func (*ImportCmdConfig) DestTag

func (c *ImportCmdConfig) DestTag() *TagConfig

DestTag returns the destination tag configuration

func (*ImportCmdConfig) NoConfirm

func (c *ImportCmdConfig) NoConfirm() bool

NoConfirm returns whether to skip confirmation prompts

func (*ImportCmdConfig) OutputDir

func (c *ImportCmdConfig) OutputDir() string

OutputDir returns the output directory path

func (*ImportCmdConfig) SourceFile

func (c *ImportCmdConfig) SourceFile() string

SourceFile returns the source metadata file path or URL

func (*ImportCmdConfig) SrcTag

func (c *ImportCmdConfig) SrcTag() *TagConfig

SrcTag returns the source tag configuration

type RunCmdConfig

type RunCmdConfig struct {
	runnerconfig.Config
}

RunCmdConfig is the config needed by run command.

func NewRunCmdConfig

func NewRunCmdConfig(ctx *cli.Context) *RunCmdConfig

NewRunCmdConfig parses the RunCmdConfig from the provided flags or environment variables.

func (*RunCmdConfig) Check

func (c *RunCmdConfig) Check() error

Check validates the config.

func (*RunCmdConfig) LogConfig

func (c *RunCmdConfig) LogConfig() oplog.CLIConfig

LogConfig returns the log config.

type TagConfig

type TagConfig struct {
	Key   string
	Value string
}

TagConfig represents a key-value tag

Jump to

Keyboard shortcuts

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