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

run cargo fmt after code generation #993

Merged
merged 1 commit into from
Aug 9, 2022
Merged

run cargo fmt after code generation #993

merged 1 commit into from
Aug 9, 2022

Conversation

ctaggart
Copy link
Contributor

@ctaggart ctaggart commented Aug 9, 2022

USAGE:
    azure-autorust.exe [OPTIONS]

OPTIONS:
        --fmt <FMT>            Run `cargo fmt` after generating the code [default: true] [possible
                               values: true, false]
    -h, --help                 Print help information
    -p, --package <PACKAGE>    Specify specific package to generate. Multiple accepted
        --publish              Generate the publish GitHub workflows

@@ -18,6 +18,10 @@ struct Args {
/// Specify specific package to generate. Multiple accepted.
#[clap(long = "package", short = 'p')]
package: Vec<String>,

/// Run `cargo fmt` after generating the code
#[clap(long, default_value = "true", action = clap::ArgAction::Set)]
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks to clap-rs/clap#1649.

@cataggar cataggar merged commit 0e9fd03 into Azure:main Aug 9, 2022
@ctaggart ctaggart deleted the fmt branch September 7, 2022 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants