Petals CLI can process command using several ways:
- one command defined as argument on the command line,
- several commands entered using the mode 'console',
- several commands entered using the stdin that can be redirected (using the option '-s')
Petals CLI can't process a file of commands directly.
It should be more usable to have:
- an option to execute the command on command line, as the system tool 'su': petals-cli.sh -c <command>
- by default, the mode 'console' is displayed: petals-cli.sh
- the file of commands to execute is set as argument on command line: petals-cli.sh <my-command-file>
- to use the stdin as stream of commands, use the 'special' filename '-', that is the standard way (see the system tool 'tar'): petals-cli.sh - < my-file
So the stding redirection will be clearer (see PETALSESBCLI-9)