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

Fixes #18168: command line rework #3207

Conversation

gpoblon
Copy link
Contributor

@gpoblon gpoblon commented Sep 10, 2020

let result = match action {
Action::Compile => compile_file(&ctx, true),
Action::Translate => generate(&ctx),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where does the generate call go ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

disappears in next PR, unused since actions are not Translate and Compile anymore

}
// TODO might try to merge io.rs in here
impl IOContext {
pub fn set(action: Action, opt: &GenericOptions, format: Option<Format>) -> Result<Self> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

set is a too generic name, what does it do ?
isn't thei a new() ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, will be updated

@Normation-Quality-Assistant
Copy link
Contributor

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit 3cc1888 into Normation:master Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants