cfg

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Verbose enables verbose logging.
	Verbose bool
	// Force forces the creation of the file.
	Force bool
	// File is the file to write to.
	File string
	// Root is the root configuration.
	Root Root
}

Config is the configuration for the application.

func Default

func Default() *Config

Default returns the default configuration.

func New

func New() *Config

New returns a new Config.

func (*Config) Cwd

func (c *Config) Cwd() (string, error)

Cwd is the current working directory.

type Root

type Root struct {
	// Hook is the name of the hook to run.
	Run string
}

Root is the root configuration.

Jump to

Keyboard shortcuts

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