mirror of
https://github.com/pesde-pkg/pesde.git
synced 2025-04-09 21:30:56 +01:00
refactor: reorder commands in help message
Reorders the commands in the help message so they appear in a more logical order.
This commit is contained in:
parent
b30f9ecdeb
commit
2154fc0e84
1 changed files with 31 additions and 31 deletions
|
@ -38,18 +38,29 @@ pub enum Subcommand {
|
||||||
/// Initializes a manifest file in the current directory
|
/// Initializes a manifest file in the current directory
|
||||||
Init(init::InitCommand),
|
Init(init::InitCommand),
|
||||||
|
|
||||||
/// Runs a script, an executable package, or a file with Lune
|
/// Adds a dependency to the project
|
||||||
Run(run::RunCommand),
|
Add(add::AddCommand),
|
||||||
|
|
||||||
/// Installs all dependencies for the project
|
/// Installs all dependencies for the project
|
||||||
Install(install::InstallCommand),
|
Install(install::InstallCommand),
|
||||||
|
|
||||||
|
/// Updates the project's lockfile. Run install to apply changes
|
||||||
|
Update(update::UpdateCommand),
|
||||||
|
|
||||||
|
/// Checks for outdated dependencies
|
||||||
|
Outdated(outdated::OutdatedCommand),
|
||||||
|
|
||||||
|
/// Runs a script, an executable package, or a file with Lune
|
||||||
|
Run(run::RunCommand),
|
||||||
|
|
||||||
/// Publishes the project to the registry
|
/// Publishes the project to the registry
|
||||||
Publish(publish::PublishCommand),
|
Publish(publish::PublishCommand),
|
||||||
|
|
||||||
/// Installs the pesde binary and scripts
|
/// Yanks a package from the registry
|
||||||
#[cfg(feature = "version-management")]
|
Yank(yank::YankCommand),
|
||||||
SelfInstall(self_install::SelfInstallCommand),
|
|
||||||
|
/// Deprecates a package from the registry
|
||||||
|
Deprecate(deprecate::DeprecateCommand),
|
||||||
|
|
||||||
/// Sets up a patching environment for a package
|
/// Sets up a patching environment for a package
|
||||||
#[cfg(feature = "patches")]
|
#[cfg(feature = "patches")]
|
||||||
|
@ -59,28 +70,17 @@ pub enum Subcommand {
|
||||||
#[cfg(feature = "patches")]
|
#[cfg(feature = "patches")]
|
||||||
PatchCommit(patch_commit::PatchCommitCommand),
|
PatchCommit(patch_commit::PatchCommitCommand),
|
||||||
|
|
||||||
/// Installs the latest version of pesde
|
|
||||||
#[cfg(feature = "version-management")]
|
|
||||||
SelfUpgrade(self_upgrade::SelfUpgradeCommand),
|
|
||||||
|
|
||||||
/// Adds a dependency to the project
|
|
||||||
Add(add::AddCommand),
|
|
||||||
|
|
||||||
/// Updates the project's lockfile. Run install to apply changes
|
|
||||||
Update(update::UpdateCommand),
|
|
||||||
|
|
||||||
/// Checks for outdated dependencies
|
|
||||||
Outdated(outdated::OutdatedCommand),
|
|
||||||
|
|
||||||
/// Executes a binary package without needing to be run in a project directory
|
/// Executes a binary package without needing to be run in a project directory
|
||||||
#[clap(name = "x", visible_alias = "execute", visible_alias = "exec")]
|
#[clap(name = "x", visible_alias = "execute", visible_alias = "exec")]
|
||||||
Execute(execute::ExecuteCommand),
|
Execute(execute::ExecuteCommand),
|
||||||
|
|
||||||
/// Yanks a package from the registry
|
/// Installs the pesde binary and scripts
|
||||||
Yank(yank::YankCommand),
|
#[cfg(feature = "version-management")]
|
||||||
|
SelfInstall(self_install::SelfInstallCommand),
|
||||||
|
|
||||||
/// Deprecates a package from the registry
|
/// Installs the latest version of pesde
|
||||||
Deprecate(deprecate::DeprecateCommand),
|
#[cfg(feature = "version-management")]
|
||||||
|
SelfUpgrade(self_upgrade::SelfUpgradeCommand),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Subcommand {
|
impl Subcommand {
|
||||||
|
@ -90,23 +90,23 @@ impl Subcommand {
|
||||||
Subcommand::Config(config) => config.run().await,
|
Subcommand::Config(config) => config.run().await,
|
||||||
Subcommand::Cas(cas) => cas.run(project).await,
|
Subcommand::Cas(cas) => cas.run(project).await,
|
||||||
Subcommand::Init(init) => init.run(project).await,
|
Subcommand::Init(init) => init.run(project).await,
|
||||||
Subcommand::Run(run) => run.run(project).await,
|
Subcommand::Add(add) => add.run(project).await,
|
||||||
Subcommand::Install(install) => install.run(project, reqwest).await,
|
Subcommand::Install(install) => install.run(project, reqwest).await,
|
||||||
|
Subcommand::Update(update) => update.run(project, reqwest).await,
|
||||||
|
Subcommand::Outdated(outdated) => outdated.run(project).await,
|
||||||
|
Subcommand::Run(run) => run.run(project).await,
|
||||||
Subcommand::Publish(publish) => publish.run(project, reqwest).await,
|
Subcommand::Publish(publish) => publish.run(project, reqwest).await,
|
||||||
#[cfg(feature = "version-management")]
|
Subcommand::Yank(yank) => yank.run(project, reqwest).await,
|
||||||
Subcommand::SelfInstall(self_install) => self_install.run().await,
|
Subcommand::Deprecate(deprecate) => deprecate.run(project, reqwest).await,
|
||||||
#[cfg(feature = "patches")]
|
#[cfg(feature = "patches")]
|
||||||
Subcommand::Patch(patch) => patch.run(project, reqwest).await,
|
Subcommand::Patch(patch) => patch.run(project, reqwest).await,
|
||||||
#[cfg(feature = "patches")]
|
#[cfg(feature = "patches")]
|
||||||
Subcommand::PatchCommit(patch_commit) => patch_commit.run(project).await,
|
Subcommand::PatchCommit(patch_commit) => patch_commit.run(project).await,
|
||||||
|
Subcommand::Execute(execute) => execute.run(project, reqwest).await,
|
||||||
|
#[cfg(feature = "version-management")]
|
||||||
|
Subcommand::SelfInstall(self_install) => self_install.run().await,
|
||||||
#[cfg(feature = "version-management")]
|
#[cfg(feature = "version-management")]
|
||||||
Subcommand::SelfUpgrade(self_upgrade) => self_upgrade.run(reqwest).await,
|
Subcommand::SelfUpgrade(self_upgrade) => self_upgrade.run(reqwest).await,
|
||||||
Subcommand::Add(add) => add.run(project).await,
|
|
||||||
Subcommand::Update(update) => update.run(project, reqwest).await,
|
|
||||||
Subcommand::Outdated(outdated) => outdated.run(project).await,
|
|
||||||
Subcommand::Execute(execute) => execute.run(project, reqwest).await,
|
|
||||||
Subcommand::Yank(yank) => yank.run(project, reqwest).await,
|
|
||||||
Subcommand::Deprecate(deprecate) => deprecate.run(project, reqwest).await,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue