Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultsCmd = cli.Command{ Name: "defaults", Usage: "Prints and optionally writes the defaults for a folder", Action: defaults, Flags: []cli.Flag{ cli.BoolFlag{ Name: "w, write", Usage: "Writes default config to set configuration file or default location.", }, }, }
DefaultsCmd is the command that detects the type of environment we are dealing with. It optionally writes the default config file.
Functions ¶
This section is empty.
Types ¶
type DefaultGuesser ¶
type DefaultGuesser []Default
DefaultGuesser is the type kicks of the matching if a folder matches an adequate default
func (DefaultGuesser) Find ¶
func (d DefaultGuesser) Find(dir string) Default
Find on DefaultGuesser checks a folder for all available preset defaults
type GolangDefault ¶
type GolangDefault struct {
// contains filtered or unexported fields
}
func NewGolangDefault ¶
func NewGolangDefault(util *defaultsUtil) *GolangDefault
func (GolangDefault) Name ¶
func (g GolangDefault) Name() string
func (GolangDefault) Test ¶
func (g GolangDefault) Test(dir string) bool
type JavaMavenDefault ¶
type JavaMavenDefault struct {
// contains filtered or unexported fields
}
func NewJavaMavenDefault ¶
func NewJavaMavenDefault(util *defaultsUtil) *JavaMavenDefault
func (JavaMavenDefault) Name ¶
func (j JavaMavenDefault) Name() string
func (JavaMavenDefault) Test ¶
func (j JavaMavenDefault) Test(dir string) bool
type NodeNpmDefault ¶
type NodeNpmDefault struct {
// contains filtered or unexported fields
}
func NewNodeNpmDefault ¶
func NewNodeNpmDefault(defUtil *defaultsUtil) *NodeNpmDefault
func (NodeNpmDefault) Name ¶
func (nn NodeNpmDefault) Name() string
func (NodeNpmDefault) Test ¶
func (nn NodeNpmDefault) Test(dir string) bool
type NodePackage ¶ added in v0.1.0
type NodePackage struct { Name string `json:"name"` Version string `json:"version"` Scripts map[string]string `json:"scripts"` }
func LoadNodePackage ¶ added in v0.1.0
func LoadNodePackage(pkgFile string) (*NodePackage, error)
func (*NodePackage) FillPipeline ¶ added in v0.1.0
func (n *NodePackage) FillPipeline(c *config.Config, cmd string)
type NodeYarnDefault ¶
type NodeYarnDefault struct {
// contains filtered or unexported fields
}
func NewNodeYarnDefault ¶
func NewNodeYarnDefault(util *defaultsUtil) *NodeYarnDefault
func (NodeYarnDefault) Name ¶
func (ny NodeYarnDefault) Name() string
func (NodeYarnDefault) Test ¶
func (ny NodeYarnDefault) Test(dir string) bool
Click to show internal directories.
Click to hide internal directories.