Documentation ¶
Index ¶
- Variables
- func BoolStatus(b bool) string
- func BoolString(b bool) string
- func BoolYesNo(b bool) string
- func BoxSealAnonymous(key, msg *string) *string
- func CurrentDirBase() string
- func DebugEnv() bool
- func DebugLog(msg ...interface{})
- func ErrCheck(e error)
- func GitRemote(v bool) *[]string
- func GitRemoteExist(name string) bool
- func GitRemoteRemoveAll()
- func JsonIndentSp(baP *[]byte, endl bool) *string
- func Report(data any, title string, skipEmpty bool)
- func ReportDebug(data any, title string, skipEmpty bool)
- func ReportSp(data any, title string, skipEmpty bool) *string
- func ReportStatus(data bool, title string)
- func StrArrayPtrContain(aP *[]string, sP *string) bool
- func StrArrayPtrPrintln(saP *[]string)
- func StrArrayPtrRemoveEmpty(saP *[]string) *[]string
- func StrPToArrayP(sP *string) *[]string
- type MyCmd
- func GitInit() *MyCmd
- func GitPush(optionsP []string) *MyCmd
- func GitRemoteAdd(name string, git string) *MyCmd
- func GitRemoteRemove(name string) *MyCmd
- func MyCmdRun(name string, argsP *[]string) *MyCmd
- func MyCmdRunWg(name string, argsP *[]string, title *string, wgP *sync.WaitGroup, output bool) *MyCmd
- type ReportT
Constants ¶
This section is empty.
Variables ¶
View Source
var Debug bool = false
Functions ¶
func BoxSealAnonymous ¶
func CurrentDirBase ¶
func CurrentDirBase() string
func GitRemoteExist ¶
Check if specified remote exist in repository
func JsonIndentSp ¶
func ReportDebug ¶
func ReportStatus ¶
func StrArrayPtrContain ¶
func StrArrayPtrPrintln ¶
func StrArrayPtrPrintln(saP *[]string)
func StrArrayPtrRemoveEmpty ¶
Remove empty lines in a strng array
func StrPToArrayP ¶
Types ¶
type MyCmd ¶
type MyCmd struct { ArgsP *[]string `json:"ArgsP"` // Command args Name string `json:"Name"` // Command name CmdLn string `json:"CmdLn"` // Out: Command Line Err error `json:"Err"` // Out: run error Stdout bytes.Buffer `json:"Stdout"` // Out: Stdout Stderr bytes.Buffer `json:"Stderr"` // Out: Stderr }
func GitRemoteAdd ¶
func GitRemoteRemove ¶
Remove specified remotes from repository
func MyCmdRunWg ¶
Click to show internal directories.
Click to hide internal directories.