shared

package
v1.0.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package shared provides shared state and utilities for devnet-builder commands. This package is designed to be imported by all command subpackages without creating import cycles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppContainer

func GetAppContainer() *di.Container

GetAppContainer returns the dependency injection container.

func GetConfigPath

func GetConfigPath() string

GetConfigPath returns the configuration file path.

func GetHomeDir

func GetHomeDir() string

GetHomeDir returns the configured home directory.

func GetJSONMode

func GetJSONMode() bool

GetJSONMode returns whether JSON output mode is enabled.

func GetLoadedFileConfig

func GetLoadedFileConfig() *config.FileConfig

GetLoadedFileConfig returns the loaded file configuration.

func GetNoColor

func GetNoColor() bool

GetNoColor returns whether color output is disabled.

func GetVerbose

func GetVerbose() bool

GetVerbose returns whether verbose output is enabled.

func SetAppContainer

func SetAppContainer(container *di.Container)

SetAppContainer sets the dependency injection container.

func SetConfigPath

func SetConfigPath(path string)

SetConfigPath sets the configuration file path.

func SetHomeDir

func SetHomeDir(dir string)

SetHomeDir sets the configured home directory.

func SetJSONMode

func SetJSONMode(mode bool)

SetJSONMode enables or disables JSON output mode.

func SetLoadedFileConfig

func SetLoadedFileConfig(cfg *config.FileConfig)

SetLoadedFileConfig sets the loaded file configuration.

func SetNoColor

func SetNoColor(mode bool)

SetNoColor enables or disables color output.

func SetVerbose

func SetVerbose(mode bool)

SetVerbose enables or disables verbose output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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