diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-11 10:15:55 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-11 10:15:55 +0900 |
| commit | 3f80f3acd90c9782420cc0d33fcf77035e522b15 (patch) | |
| tree | 028e62e45529431be846713156d93d5a208480c7 /crates/mozart/src/commands/validate.rs | |
| parent | 8441abd29aea53719c19f34ec6d542a4575a23c9 (diff) | |
| download | php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.gz php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.zst php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.zip | |
enable workspace
Diffstat (limited to 'crates/mozart/src/commands/validate.rs')
| -rw-r--r-- | crates/mozart/src/commands/validate.rs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/crates/mozart/src/commands/validate.rs b/crates/mozart/src/commands/validate.rs new file mode 100644 index 0000000..b76d479 --- /dev/null +++ b/crates/mozart/src/commands/validate.rs @@ -0,0 +1,39 @@ +use clap::Args; + +#[derive(Args)] +pub struct ValidateArgs { + /// Path to composer.json file + pub file: Option<String>, + + /// Skips checks for non-essential issues + #[arg(long)] + pub no_check_all: bool, + + /// Validates the lock file + #[arg(long)] + pub check_lock: bool, + + /// Skips lock file validation + #[arg(long)] + pub no_check_lock: bool, + + /// Skips publish-related checks + #[arg(long)] + pub no_check_publish: bool, + + /// Skips version constraint checks + #[arg(long)] + pub no_check_version: bool, + + /// Also validate all dependencies + #[arg(short = 'A', long)] + pub with_dependencies: bool, + + /// Return a non-zero exit code on warnings as well as errors + #[arg(long)] + pub strict: bool, +} + +pub fn execute(_args: &ValidateArgs) { + todo!() +} |
