diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-05-28 22:49:24 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-05-28 22:49:24 +0800 |
| commit | 1cb8efb80e7d05ab14d5ed31227aa20373977fa2 (patch) | |
| tree | 8a72d47e456b7a959162d7668ed942711e37996e /examples/test-examples.toml | |
| parent | 30369cc87d44c646e9541174fbe7c1fd36cee223 (diff) | |
Add example for clap binding integration
Diffstat (limited to 'examples/test-examples.toml')
| -rw-r--r-- | examples/test-examples.toml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/test-examples.toml b/examples/test-examples.toml index 68285fd..6f45048 100644 --- a/examples/test-examples.toml +++ b/examples/test-examples.toml @@ -182,3 +182,18 @@ expect.result = "" command = "greet World --repeat 1" expect.exit-code = 0 expect.result = "Hello, World!" + +[[test.example-clap-binding]] +command = "greet" +expect.exit-code = 0 +expect.result = "Hello, World!" + +[[test.example-clap-binding]] +command = "greet Alice" +expect.exit-code = 0 +expect.result = "Hello, Alice!" + +[[test.example-clap-binding]] +command = "greet Alice -r 5" +expect.exit-code = 0 +expect.result = "Hello, Alice, Alice, Alice, Alice, Alice!" |
