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.
This commit is contained in:
parent
e8409b13e6
commit
9322d617d4
1 changed files with 176 additions and 0 deletions
|
|
@ -38,6 +38,8 @@ class Const(constants.Const):
|
|||
# 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue