Documentation
¶
Index ¶
Constants ¶
View Source
const (
// Filename names the config file
Filename = ".bumpy-ride"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
NoFetch bool `json:"noFetch"`
NoCommit bool `json:"noCommit"`
SaveVersion bool `json:"saveVersion"`
NPMPrefixes []string `json:"npmPrefixes"`
}
Config defines the bumpy-ride configuration file
func (*Config) Load ¶
func (cfg *Config) Load() (fn git.RestoreCwdFunc, err error)
Load loads the configuration file, which must exist
func (*Config) LoadOrCreate ¶
func (cfg *Config) LoadOrCreate() (created bool, fn git.RestoreCwdFunc, err error)
LoadOrCreate loads the configuration file if it exists, or creates it otherwise
Click to show internal directories.
Click to hide internal directories.