Documentation
¶
Overview ¶
Package create implements the infractl create command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GetRootDir runs a command to determine the top level git repository and // is exported so that its behavior can be overriden by a test. GetRootDir = func() string { topLevel := exec.Command("git", "rev-parse", "--show-toplevel") out, _ := topLevel.Output() return strings.TrimSpace(string(out)) } // GetMakeTag runs a command to determine the make tag and // is exported so that its behavior can be overriden by a test. GetMakeTag = func(rootDir string) string { makeTag := exec.Command("make", "--quiet", "tag") makeTag.Dir = rootDir out, _ := makeTag.Output() return strings.TrimSpace(string(out)) } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.