Skip to content

Commit

Permalink
feat: 'pavex' and 'pavexc' check a dedicated environment variable, in…
Browse files Browse the repository at this point in the history
… addition to invocation flags, to determine if diagnostic information should be outputted
  • Loading branch information
LukeMathWalker committed Nov 11, 2024
1 parent 94e6354 commit 64e6706
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/pavex_cli/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pub enum Command {
/// Optional.
/// If provided, Pavex will serialize diagnostic information about
/// the application to the specified path.
#[clap(long, value_parser)]
#[clap(long, env = "PAVEX_DIAGNOSTICS", value_parser)]
diagnostics: Option<PathBuf>,
#[clap(long)]
/// Verify that the generated server SDK is up-to-date.
Expand Down
4 changes: 2 additions & 2 deletions libs/pavexc_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ enum Commands {
blueprint: PathBuf,
/// Optional. If provided, pavex will serialize diagnostic information about
/// the application to the specified path.
#[clap(long, value_parser)]
#[clap(long, env = "PAVEXC_DIAGNOSTICS", value_parser)]
diagnostics: Option<PathBuf>,
/// The path to the directory that will contain the manifest and the source code for the generated application crate.
/// If the provided path is relative, it is interpreted as relative to the root of the current workspace.
#[clap(short, long, value_parser)]
output: PathBuf,
#[clap(long)]
/// Verify that the generated server SDK is up-to-date.
/// Verify that the generated server SDK is up-to-date.
/// If it isn't, `pavexc` will return an error without updating
/// the server SDK code.
check: bool,
Expand Down

0 comments on commit 64e6706

Please sign in to comment.