- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1
Open
Description
Instead of a single executable rew with all of the filtering functionality, let's split the project into more smaller cli tools, where every tool does one separate thing.
- Previous filters will be implemented as separate rewsubcommands. For example:- tfilter becomes- rew trim [-s|--start] [-e|--end]subcommand.
- rfilter becomes- rew replace <what> [replacement]subcommand.
- cfilter becomes- rew seqsubcommand.
- Cfilter becomes- rew parent | rew countwhere- parentsubcommand prints parent directory and- countsubcommand print number of occurrences of input lines.
 
- Pipeline composition will be done using rew xsubcommand:- Former usage: rew 'img_{C}.{e|l|r:e}'
- New usage: rew 'img_{seq}.{ext | lower | replace e}'
 
- Former usage: 
- rewwill run- {a | b | ...c}pipelines in separate threads
- Every pipeline will consume/produce lines.
- Every subcommand will support -0, --nullflag to process NUL separated lines.
- There will be REW_NULLenvironment variable to enable-0, --nullbehavior globally.
- Former cli options for custom input/output line separator will be implemented as a separate subcommands splitandjoin.
- Alternative output modes (diff/json lines) will not be supported anymore.
- Auxiliary mvb/cpbtools will be dropped in favor of generation of executable shell code.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request