Skip to content
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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

postprocessors #383

wants to merge 12 commits into from

Conversation

b1ek
Copy link
Member

@b1ek b1ek commented Jul 31, 2024

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

@b1ek b1ek added enhancement New feature or request compiler labels Jul 31, 2024
@b1ek b1ek requested review from Mte90 and Ph0enixKM July 31, 2024 00:29
@b1ek b1ek self-assigned this Jul 31, 2024
@Mte90
Copy link
Member

Mte90 commented Jul 31, 2024

Can you add a line in the Readme about the bash dependency checker? There is already one about shfmt.

src/main.rs Show resolved Hide resolved
src/tests/cli.rs Show resolved Hide resolved
@b1ek b1ek marked this pull request as ready for review September 7, 2024 06:11
@Mte90 Mte90 requested review from mks-h and KrosFire September 9, 2024 08:21
@Mte90 Mte90 mentioned this pull request Sep 9, 2024
Comment on lines +8 to +20
/// 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
}
Copy link
Member

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?

Copy link
Member Author

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

Copy link
Member

@Ph0enixKM Ph0enixKM Sep 17, 2024

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

@Mte90
Copy link
Member

Mte90 commented Sep 19, 2024

I want to report that clippy is warning about some function unused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Postprocessors
3 participants