MCPcopy Index your code
hub / github.com/cli/cli / printArgs

Function printArgs

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

Source from the content-addressed store, hash-verified

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

Callers 2

OutputMethod · 0.85
RunMethod · 0.85

Calls 1

BaseMethod · 0.80

Tested by

no test coverage detected