-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow setting working directory for exec.Run
Fixes #536 Closes #537 cuelang/cue#537 GitOrigin-RevId: 5bb80f0ec131e8d1c9cdbe9abdb37429bb1f8359 Change-Id: I4d93e6930c82ea29454b3c53c898b60d70155be6 Reviewed-on: https://cue-review.googlesource.com/c/cue/+/9922 Reviewed-by: CUE cueckoo <cueckoo@gmail.com> Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
- Loading branch information
Showing
5 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
cue cmd ls | ||
cmp stdout expect-stdout | ||
|
||
-- expect-stdout -- | ||
a.txt | ||
b.txt | ||
|
||
-- ls-work-dir/a.txt -- | ||
-- ls-work-dir/b.txt -- | ||
|
||
-- ls_tool.cue -- | ||
package ls | ||
|
||
command: ls: { | ||
ls: { | ||
kind: "exec" | ||
cmd: "ls" | ||
dir: "ls-work-dir" | ||
stdout: string | ||
} | ||
|
||
task: display: { | ||
kind: "print" | ||
text: ls.stdout | ||
} | ||
} | ||
|
||
-- cue.mod -- |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.