diff --git a/pkg/tool/exec/exec.cue b/pkg/tool/exec/exec.cue index ee77df3a8..a4485c8ba 100644 --- a/pkg/tool/exec/exec.cue +++ b/pkg/tool/exec/exec.cue @@ -14,13 +14,15 @@ package exec -// Run executes the given shell command. +// Run executes a program with the given arguments. Run: { $id: *"tool/exec.Run" | "exec" // exec for backwards compatibility - // cmd is the command to run. + // cmd is a non-empty list holding the program name to run + // and the arguments to be passed to it. + // // Simple commands can use a string, which is split by white space characters. - // If any arguments include white space, use the list form. + // If any arguments include white space, or for clarity, use the list form. cmd: string | [string, ...string] // dir specifies the working directory of the command. diff --git a/pkg/tool/exec/pkg.go b/pkg/tool/exec/pkg.go index c8c968dd0..fbe3062fb 100644 --- a/pkg/tool/exec/pkg.go +++ b/pkg/tool/exec/pkg.go @@ -4,13 +4,15 @@ // // These are the supported tasks: // -// // Run executes the given shell command. +// // Run executes a program with the given arguments. // Run: { // $id: *"tool/exec.Run" | "exec" // exec for backwards compatibility // -// // cmd is the command to run. +// // cmd is a non-empty list holding the program name to run +// // and the arguments to be passed to it. +// // // // Simple commands can use a string, which is split by white space characters. -// // If any arguments include white space, use the list form. +// // If any arguments include white space, or for clarity, use the list form. // cmd: string | [string, ...string] // // // dir specifies the working directory of the command.