config

package
v0.0.0-...-06265ad Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clean

type Clean struct {
	Identifier string `json:"identifier"`
}

type Commit

type Commit struct {
	CopyToClipboard bool    `json:"copyToClipboard"`
	RemoveText      bool    `json:"removeText"`
	Output          *Output `json:"output,omitempty"`
}

type Config

type Config struct {
	Commit *Commit `json:"commit,omitempty"`
	Clean  *Clean  `json:"clean,omitempty"`
	DryRun bool    `json:"-"`
}

func LoadConfig

func LoadConfig(flags Flags) *Config

func (*Config) FillEnvs

func (c *Config) FillEnvs(dir string)

type Flags

type Flags struct {
	DryRun          bool
	CopyToClipboard bool
	RemoveText      bool
	Title           string
}

type Output

type Output struct {
	Prefix      string `json:"prefix"`
	TitlePrefix string `json:"titlePrefix"`
}

Jump to

Keyboard shortcuts

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