MCPcopy Create free account
hub / github.com/chriswalz/bit / RunInTerminalWithColor

Function RunInTerminalWithColor

cmd/util.go:23–29  ·  view source on GitHub ↗
(cmdName string, args []string)

Source from the content-addressed store, hash-verified

21)
22
23func RunInTerminalWithColor(cmdName string, args []string) error {
24 dir, err := os.Getwd()
25 if err != nil {
26 return err
27 }
28 return RunInTerminalWithColorInDir(cmdName, dir, args)
29}
30
31func RunInTerminalWithColorInDir(cmdName string, dir string, args []string) error {
32 log.Debug().Msg(cmdName + " " + strings.Join(args, " "))

Callers 8

release.goFile · 0.85
RunGitCommandWithArgsFunction · 0.85
HijackGitCommandOccurredFunction · 0.85
PrintGitVersionFunction · 0.85
sync.goFile · 0.85
saveFunction · 0.85
info.goFile · 0.85
RunScriptWithStringFunction · 0.85

Calls 1

Tested by

no test coverage detected