shared

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package shared provides shared configuration structures and utilities used across different commands. Package shared provides shared configuration types and validation logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Tracker `mapstructure:"-" yaml:"-"`

	Output   string
	Strategy strategy.Strategy
	Source   sources.Type
	OS       string
	Arch     string
	Hints    []string
	Pre      bool
}

Common contains configuration fields shared across multiple commands. Common represents a shared configuration structure that provides command-line arguments, show functionality, and validation.

type Tracker

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

Tracker manages tracking of configuration values and their sources.

func (*Tracker) IsSet

func (t *Tracker) IsSet(name string) bool

IsSet checks if a configuration value with the given name has been explicitly set.

func (*Tracker) Retrieve

func (t *Tracker) Retrieve() *koanfx.Tracker

Retrieve returns the stored koanfx.Tracker instance.

func (*Tracker) Store

func (t *Tracker) Store(tracker *koanfx.Tracker)

Store saves the provided koanfx.Tracker instance.

func (*Tracker) Validate

func (t *Tracker) Validate() error

Validate performs validation on the tracker configuration.

Jump to

Keyboard shortcuts

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