MCPcopy Create free account
hub / github.com/cli/cli / printArgs

Function printArgs

internal/run/run.go:90–97  ·  view source on GitHub ↗
(w io.Writer, args []string)

Source from the content-addressed store, hash-verified

88}
89
90func printArgs(w io.Writer, args []string) error {
91 if len(args) > 0 {
92 // print commands, but omit the full path to an executable
93 args = append([]string{filepath.Base(args[0])}, args[1:]...)
94 }
95 _, err := fmt.Fprintf(w, "%v\n", args)
96 return err
97}

Callers 2

OutputMethod · 0.85
RunMethod · 0.85

Calls 1

BaseMethod · 0.80

Tested by

no test coverage detected