Skip to content

Commit

Permalink
add an example of "one-shot mode" to the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dylemma committed Nov 2, 2017
1 parent bc7272b commit a3de76f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ Welcome to the Code Dx CLI Client REPL.
codedx>
```

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*.

```text
$> ./codedx-client https://localhost/codedx -u johndoe projects -n "WebGoat"
password:
{"id":5,"name":"WebGoat Java","parentId":null}
{"id":8,"name":"WebGoat.NET","parentId":null}
$>
```

If you wish to run several commands at once, it's easiest to write a shell script or batch file,
but you can also pipe the commands into the program's *REPL mode* from a file,
where each line of the file is interpreted as a command.
Expand Down

0 comments on commit a3de76f

Please sign in to comment.