Skip to content

Commit a3de76f

Browse files
committed
add an example of "one-shot mode" to the readme
1 parent bc7272b commit a3de76f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

readme.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,16 @@ Welcome to the Code Dx CLI Client REPL.
4848
codedx>
4949
```
5050

51+
To run a command in *one-shot mode*, enter that command and its arguments as part of the same command you would use to start *REPL mode*.
52+
53+
```text
54+
$> ./codedx-client https://localhost/codedx -u johndoe projects -n "WebGoat"
55+
password:
56+
{"id":5,"name":"WebGoat Java","parentId":null}
57+
{"id":8,"name":"WebGoat.NET","parentId":null}
58+
$>
59+
```
60+
5161
If you wish to run several commands at once, it's easiest to write a shell script or batch file,
5262
but you can also pipe the commands into the program's *REPL mode* from a file,
5363
where each line of the file is interpreted as a command.

0 commit comments

Comments
 (0)