Documentation ¶
Index ¶
- Constants
- type Application
- type Paths
- func (paths *Paths) DefaultPaths(workingDir string)
- func (paths *Paths) DiscoverProjectPaths(workingDir string)
- func (paths *Paths) DiscoverUserPaths()
- func (paths *Paths) Init()
- func (paths *Paths) OrderedConfPathKeys() []string
- func (paths *Paths) Path(key string) (path string, found bool)
- func (paths *Paths) SetPath(key string, path string, isConf bool)
Constants ¶
View Source
const ( WUNDERTOOLS_PROJECT_CONF_FOLDER = ".wundertools" WUNDERTOOLS_USER_CONF_SUBPATH = "wundertools" )
View Source
const (
WUNDERTOOLS_CONFIG_APPLICATION_YAML_PATH = "settings.yml"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
Configuration for an application
func DefaultApplication ¶
func DefaultApplication(workingDir string) *Application
func (*Application) AlterService ¶
func (app *Application) AlterService(service *libCompose_config.ServiceConfig)
*
- clean up a service based on this app
type Paths ¶
type Paths struct {
// contains filtered or unexported fields
}
Struct used to keep path information
func (*Paths) DefaultPaths ¶
do some discovery of paths based on a pwd
func (*Paths) DiscoverProjectPaths ¶
*
- Discover project paths *
- Recursively navigate up the file path until we discover a folder that
- has the key configuration subfolder in it. That path is marked as the
- application root, and the subfolder is marked as a conf path
func (*Paths) DiscoverUserPaths ¶
func (paths *Paths) DiscoverUserPaths()
*
- Discover some user paths *
- @NOTE we have to play some games for different OSes here *
- dependening on OS, determine if the user has any settings
- if so, add a conf path for them.
func (*Paths) OrderedConfPathKeys ¶
get all of the conf path keys in order
Click to show internal directories.
Click to hide internal directories.