aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/commands/require.rs
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2026-02-11 10:15:55 +0900
committernsfisis <nsfisis@gmail.com>2026-02-11 10:15:55 +0900
commit3f80f3acd90c9782420cc0d33fcf77035e522b15 (patch)
tree028e62e45529431be846713156d93d5a208480c7 /src/commands/require.rs
parent8441abd29aea53719c19f34ec6d542a4575a23c9 (diff)
downloadphp-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.gz
php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.tar.zst
php-mozart-3f80f3acd90c9782420cc0d33fcf77035e522b15.zip
enable workspace
Diffstat (limited to 'src/commands/require.rs')
-rw-r--r--src/commands/require.rs123
1 files changed, 0 insertions, 123 deletions
diff --git a/src/commands/require.rs b/src/commands/require.rs
deleted file mode 100644
index 3b8cceb..0000000
--- a/src/commands/require.rs
+++ /dev/null
@@ -1,123 +0,0 @@
-use clap::Args;
-
-#[derive(Args)]
-pub struct RequireArgs {
- /// Package(s) to require
- pub packages: Vec<String>,
-
- /// Add requirement to require-dev
- #[arg(long)]
- pub dev: bool,
-
- /// Only output what would be changed, do not modify files
- #[arg(long)]
- pub dry_run: bool,
-
- /// Forces installation from package sources when possible
- #[arg(long)]
- pub prefer_source: bool,
-
- /// Forces installation from package dist
- #[arg(long)]
- pub prefer_dist: bool,
-
- /// Forces usage of a specific install method (dist, source, auto)
- #[arg(long)]
- pub prefer_install: Option<String>,
-
- /// Pin the exact version instead of a range
- #[arg(long)]
- pub fixed: bool,
-
- /// [Deprecated] Do not show install suggestions
- #[arg(long)]
- pub no_suggest: bool,
-
- /// Do not output download progress
- #[arg(long)]
- pub no_progress: bool,
-
- /// Disables the automatic update of the lock file
- #[arg(long)]
- pub no_update: bool,
-
- /// Skip the install step
- #[arg(long)]
- pub no_install: bool,
-
- /// Skip the audit step
- #[arg(long)]
- pub no_audit: bool,
-
- /// Audit output format
- #[arg(long)]
- pub audit_format: Option<String>,
-
- /// Do not block on security advisories
- #[arg(long)]
- pub no_security_blocking: bool,
-
- /// Run the dependency update with the --no-dev option
- #[arg(long)]
- pub update_no_dev: bool,
-
- /// [Deprecated] Use --with-dependencies instead
- #[arg(short = 'w', long)]
- pub update_with_dependencies: bool,
-
- /// [Deprecated] Use --with-all-dependencies instead
- #[arg(short = 'W', long)]
- pub update_with_all_dependencies: bool,
-
- /// Update also dependencies of newly required packages
- #[arg(long)]
- pub with_dependencies: bool,
-
- /// Update all dependencies including root requirements
- #[arg(long)]
- pub with_all_dependencies: bool,
-
- /// Ignore a specific platform requirement
- #[arg(long)]
- pub ignore_platform_req: Vec<String>,
-
- /// Ignore all platform requirements
- #[arg(long)]
- pub ignore_platform_reqs: bool,
-
- /// Prefer stable versions of dependencies
- #[arg(long)]
- pub prefer_stable: bool,
-
- /// Prefer lowest versions of dependencies
- #[arg(long)]
- pub prefer_lowest: bool,
-
- /// Prefer minimal restriction updates
- #[arg(short = 'm', long)]
- pub minimal_changes: bool,
-
- /// Sort packages in composer.json
- #[arg(long)]
- pub sort_packages: bool,
-
- /// Optimizes PSR-0 and PSR-4 packages to be loaded with classmaps
- #[arg(short, long)]
- pub optimize_autoloader: bool,
-
- /// Autoload classes from the classmap only
- #[arg(short = 'a', long)]
- pub classmap_authoritative: bool,
-
- /// Use APCu to cache found/not-found classes
- #[arg(long)]
- pub apcu_autoloader: bool,
-
- /// Use a custom prefix for the APCu autoloader cache
- #[arg(long)]
- pub apcu_autoloader_prefix: Option<String>,
-}
-
-pub fn execute(_args: &RequireArgs) {
- todo!()
-}