Add -A CLI flag to show all tasks

This commit is contained in:
josh committed 2022-02-27 12:41:47 -05:00
1 parent ea66501311
commit 59f1a89f4f
3 files changed
+33 -5

No files matched your search

+20
View File
@@ -2956,6 +2956,26 @@ EOF
expect(result.stdout).to_not match /^\s*one\b/
expect(result.stdout).to_not match /^\s*two\b/
end
context "with -A flag" do
it "displays all tasks and their parameters" do
test_dir "tasks"
result = run_rscons(args: %w[-f tasks.rb -AT])
expect(result.stderr).to eq ""
expect(result.status).to eq 0
verify_lines(lines(result.stdout), [
"Tasks:",
/\bone\b/,
/\btwo\b/,
/\bthree\b\s+Task three/,
/\bfour\b\s+Task four/,
/--myparam=MYPARAM\s+My special parameter/,
/--myp2\s+My parameter 2/,
/\bfive\b/,
/\bsix\b/,
])
end
end
end
context "download script method" do