cmd

package
v0.1.0-beta.4 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigKey = "config"

Context key for configuration

Variables

View Source
var (
	// Version is set during build time
	Version = "dev"
	// GitCommit is set during build time
	GitCommit = "unknown"
	// BuildDate is set during build time
	BuildDate = "unknown"
)

Functions

func Execute

func Execute(embeddedDB embed.FS) error

Execute adds all child commands to the root command and sets flags appropriately.

Types

type AppConfig

type AppConfig struct {
	EmbeddedDB embed.FS
	Logger     logger.Logger
}

AppConfig holds all the shared configuration and dependencies

func NewAppConfig

func NewAppConfig(embeddedDB embed.FS, logger logger.Logger) *AppConfig

NewAppConfig creates a new configuration instance

Jump to

Keyboard shortcuts

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