Documentation
¶
Index ¶
- func Cmds(rootCmd *cobra.Command) []*cobra.Command
- func DomainAncestor(domain string, n int) string
- func RenderFile(tmplFile string, data interface{}) (bytes.Buffer, error)
- func RenderFileTo(tmplFile string, data interface{}, outputFile string) error
- func RenderFileWithConfig(env, tmplFile, outputFile string) error
- func Spec(targets []string, onlyChanged bool) error
- func SpecAll() error
- type Config
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DomainAncestor ¶ added in v1.0.4
DomainAncestor return the N'th ancestor of domain
Example ¶
fmt.Println(DomainAncestor(`a.b.c.com`, 0)) fmt.Println(DomainAncestor(`a.b.c.com`, 1)) fmt.Println(DomainAncestor(`a.b.c.com`, 2)) fmt.Println(DomainAncestor(`a.b.c.com`, 3)) fmt.Println(DomainAncestor(`a.b.c.com`, 4))
Output: a.b.c.com b.c.com c.com com com
func RenderFile ¶ added in v1.0.2
func RenderFileTo ¶ added in v1.0.2
func RenderFileWithConfig ¶ added in v1.0.9
Types ¶
Click to show internal directories.
Click to hide internal directories.