Documentation ¶
Index ¶
- func ClearTerm()
- func GetBoolFlag(cmd *cobra.Command, name string, defaultValue bool) bool
- func GetIntFlag(cmd *cobra.Command, name string, allowedValues []int, defaultValue int) int
- func GetStringFlag(cmd *cobra.Command, name string, allowedValues []string, defaultValue string) string
- func GetWorkingDir() string
- func IndexOf(word string, data []string) int
- func IndexOfInt(num int, data []int) int
- func RunCommand(args []string, cwd string) error
- func ZeroPad(num int, total int) string
- func ZeroPadString(in string, total string) string
- type PathObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntFlag ¶
func GetStringFlag ¶
func GetWorkingDir ¶
func GetWorkingDir() string
func IndexOfInt ¶
func RunCommand ¶
func ZeroPadString ¶
Types ¶
type PathObject ¶
func GetPathObj ¶
func GetPathObj(f string) PathObject
func (PathObject) UpdateDir ¶
func (p PathObject) UpdateDir(dir string) PathObject
func (PathObject) UpdateExt ¶
func (p PathObject) UpdateExt(ext string) PathObject
func (PathObject) UpdateName ¶
func (p PathObject) UpdateName(name string) PathObject
Click to show internal directories.
Click to hide internal directories.