Commit graph libervia-backend/frontends/src/jp/cmd_input.py
Author SHA1 Message Date
Goffi
394f7b85c2 jp (input/csv): fixed encoding issue in debug mode 2017-06-30 01:08:13 +02:00
Goffi
b983d39069 jp (input): log improvments + empty filter:
- more colors in debug logs
    - read values are printed if verbosity is >= 2
    - stdout and stderr of each command can be written in files using --log and --log-err
    - --empty option allow to ignore arguments if its value is empty, or skip the whole row
2017-06-28 23:49:55 +02:00
Goffi
9322d617d4 jp (input): input command first draft:
this is an experimental command to use external data as input arguments.
A series of data is used (only CSV is implemented so far), and it is used to fill argument of a command according to a sequence.
The sequence is given using input arguments, with types corresponding to the data found (short option, long option, stdin).
e.g. if a CSV file has row with 3 columns, we can say that column 1 is subject (long option), column 2 is body (stdin), and column 3 is language (short option -l).
A filter can be used after each option type, to transform read value.
Finally a static part is used to have the main command and non dynamic arguments to use.
2017-06-28 01:28:41 +02:00