(w io.Writer, args []string)
| 89 | } |
| 90 | |
| 91 | func 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 | } |