cli

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 32 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConfigNotFound = errors.New(heredoc.Doc(`
	Config file not found. Loading from defaults...

	Run "compass config init" to initialize a new configuration file 
	Run "compass help environment" for more information.

	Alternatively, make a "compass.yaml" file in the current directory from the example given
`))
View Source
var (
	Version string
)

Version of the current build. overridden by the build system. see "Makefile" for more information

Functions

func LoadConfigFromFlag

func LoadConfigFromFlag(cfgFile string, cfg *Config) error

func LoadFromCurrentDir

func LoadFromCurrentDir(cfg *Config) error

func New

func New(cliConfig *Config) *cobra.Command

Types

type Config

type Config struct {
	// Log
	LogLevel string `yaml:"log_level" mapstructure:"log_level" default:"info"`

	// OpenTelemetry and Newrelic
	Telemetry telemetry.Config `mapstructure:"telemetry"`

	// Deprecated: Use Config.Telemetry instead
	NewRelic telemetry.NewRelicConfig `mapstructure:"newrelic"`

	// Elasticsearch
	Elasticsearch esStore.Config `mapstructure:"elasticsearch"`

	// Database
	DB postgres.Config `mapstructure:"db"`

	// Service
	Service server.Config `mapstructure:"service"`

	// Async worker
	Worker workermanager.Config `mapstructure:"worker"`

	// Client
	Client client.Config `mapstructure:"client"`

	// Column search excluded keyword list
	ColSearchExclusionKeywords string `yaml:"col_search_excluded_keywords" mapstructure:"col_search_excluded_keywords"`

	Asset asset.Config `mapstructure:"asset"`

	// Cleanup jobs
	Cleanup cleanup.Config `mapstructure:"cleanup"`
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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