-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postprocessors #383
base: master
Are you sure you want to change the base?
postprocessors #383
Conversation
Can you add a line in the Readme about the bash dependency checker? There is already one about shfmt. |
/// How it will pass bash code to the postprocessor | ||
#[derive(Debug, Clone)] | ||
pub enum PostProcessorInput { | ||
/// Passes the data to the postprocessor's stdin | ||
Stdin | ||
} | ||
|
||
/// How it will get the processed code from the postprocessor | ||
#[derive(Debug, Clone)] | ||
pub enum PostProcessorOutput { | ||
/// Reads postprocessor's stdout | ||
Stdout | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the point of these? What other variants can be added here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
like pass as an argument processor -arg "CODE"
or as a file or something like that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No but why create output enum with just stdout as variant. Same for stdin. Let's scale the code only when it needs to be scaled. Otherwise we'll have a lot of over engineered code
I want to report that clippy is warning about some function unused. |
this removes code from #128 and closes #377, #149, #107, #95
the implementation is no different than the one from #128, but it also can be defined as a serializeable schema in case we want to make some sort of a config file for those.
closes #476, #377, #149, #107, #95