1
0
Fork 0
mirror of https://github.com/imjasonh/testscript-rs synced 2026-07-21 22:39:49 +00:00
testscript-rs/examples/sample-cli/testdata/basic_functionality.txt

19 lines
349 B
Text
Raw Permalink Normal View History

# Test basic sample-cli functionality
# Test help output
exec ./sample-cli --help
stdout ".*sample CLI tool.*"
# Test version
exec ./sample-cli --version
stdout "sample-cli 1.0"
# Test no command shows info
exec ./sample-cli
stdout ".*demonstration CLI tool.*"
stdout ".*--help.*"
-- test_file.txt --
Hello world
This is line two
Line three here