config

package
v0.0.0-...-9b09fdb Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Path int = 1 << iota
	Hash
	CWD

	Actions
	Crypto
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Path           string
	Hash           string
	CWD            string
	FileNameFormat string

	Actions actionsConfig
	Crypto  cryptoConfig
}

func LoadConfig

func LoadConfig(cfgPath string) (*Config, error)

func (*Config) Cd

func (c *Config) Cd()

func (*Config) Require

func (c *Config) Require(fields int)

func (*Config) Validate

func (c *Config) Validate(fields int)

Jump to

Keyboard shortcuts

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