Mercurial > libervia-backend
diff frontends/src/jp/constants.py @ 2278:489efbda377c
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.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 28 Jun 2017 01:28:41 +0200 |
parents | a29d1351bc83 |
children | 31f586d6ab16 |
line wrap: on
line diff
--- a/frontends/src/jp/constants.py Wed Jun 28 01:21:49 2017 +0200 +++ b/frontends/src/jp/constants.py Wed Jun 28 01:28:41 2017 +0200 @@ -38,6 +38,8 @@ # ANSI A_HEADER = A.BOLD + A.FG_YELLOW A_SUBHEADER = A.BOLD + A.FG_RED + A_SUCCESS = A.BOLD + A.FG_GREEN + A_FAILURE = A.BOLD + A.FG_RED # exit codes EXIT_OK = 0