Documentation
¶
Index ¶
- Constants
- Variables
- func ExpandConfigPath(path string) (string, error)
- type Config
- func (c *Config) Abs() (string, error)
- func (c *Config) Cwd() (string, error)
- func (c *Config) DeleteStore() error
- func (c *Config) HomeDir() (string, error)
- func (c *Config) Path() (string, error)
- func (c *Config) Spec() (*specs.Spec, error)
- func (c *Config) StorePath() (string, error)
- func (c *Config) Vars() []string
- type Flags
- type TaskFlags
Constants ¶
View Source
const DefaultClientID = "builder-cli"
DefaultClientID is the default client ID using the PKCE flow.
View Source
const DefaultPath = "~/.builder/builder.db"
DefaultPath is the default store file name.
View Source
const DefaultSpecFileName = ".builder.yaml"
DefaultSpecFileName is the default spec file name.
View Source
const UnknownCwd = ""
UnknownCwd is the unknown current working directory.
Variables ¶
View Source
var DefaultConfig = New()
DefaultConfig is the default configuration.
Functions ¶
func ExpandConfigPath ¶ added in v0.3.5
ExpandConfigPath expands the config path and creates the store folder.
Types ¶
type Config ¶
type Config struct {
File string
FileMode os.FileMode
Flags Flags
Stderr *os.File
Stdin *os.File
Stdout *os.File
Task TaskFlags
Verbose bool
}
Config contains the configuration.
func (*Config) Cwd ¶
Cwd return the current working directory. Which is the path in which the builder spec is located.
func (*Config) DeleteStore ¶ added in v0.3.17
DeleteStore deletes the session store.
type Flags ¶
type Flags struct {
// URL is the URL of the OIDC provider.
URL string
// Plugins contains the plugins to use.
Plugins []string
// Vars contains the variables to use.
Vars []string
// Dry indicates whether to print dry run messages.
Dry bool
// Force indicates whether to force overwrite.
Force bool
// Root is the root directory of the project.
Root bool
// Verbose indicates whether to print verbose messages.
Verbose bool
// Version indicates whether to print version.
Version bool
// TaskFlags contains the flags for a task.
TaskFlags TaskFlags
// Path is the path to the project.
Path string
}
Flags contains the command line flags.
func NewDefaultFlags ¶ added in v0.3.25
func NewDefaultFlags() Flags
NewDefaultFlags returns the default flags.
Click to show internal directories.
Click to hide internal directories.