application

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package application config contains configuration struct

Index

Constants

This section is empty.

Variables

View Source
var SupportedFeatures = []string{"ssh_config"}

SupportedFeatures contains a list of application features that can be enabled or disabled.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	AppHome               string `env:"GG_HOME"`
	LogLevel              string `env:"GG_LOG_LEVEL" envDefault:"info"`
	SSHConfigFilePath     string `env:"GG_SSH_CONFIG_FILE_PATH"`
	DisplayVersionAndExit bool
	EnableFeature         FeatureFlag
	DisableFeature        FeatureFlag
}

Configuration structs contains user-definable parameters.

type FeatureFlag

type FeatureFlag string

FeatureFlag represents application feature flag that can be enabled or disabled.

func (*FeatureFlag) Set

func (ff *FeatureFlag) Set(value string) error

Set validates and sets the feature flag value.

func (*FeatureFlag) String

func (ff *FeatureFlag) String() string

Jump to

Keyboard shortcuts

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