mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 05:41:16 +01:00
refactor(cli): name the komorebi and komorebi-bar commands explicitly
clap derives the command name from CARGO_PKG_NAME. The packages are about to be renamed (komorebi-windows, komorebi-linux, komorebi-macos, komorebi-bar-macos) while the binaries keep their names, so the name is written in #[clap(name = ...)] on the three daemons and the two bars. komorebic already names itself in komorebic-core. Not behaviour: the names are the ones the packages give now. Verified: KDE tests/version.rs is the test that reads the name (run in the next revisions); fast-check below. Not verified: macOS and Windows runs.
This commit is contained in:
1 parent
d6030db53d
commit
4e0a7171ec
5 files changed
+5
-5
No files matched your search
@@ -40,7 +40,7 @@ use windows_core::BOOL;
|
||||
pub use komorebi_bar_core::statics::*;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(author, about, version)]
|
||||
#[clap(name = "komorebi-bar", author, about, version)]
|
||||
struct Opts {
|
||||
/// Print the JSON schema of the configuration file and exit
|
||||
#[clap(long)]
|
||||
|
||||
@@ -218,7 +218,7 @@ impl From<KeyPlanMode> for PlanMode {
|
||||
|
||||
/// A tiling window manager for KDE Plasma.
|
||||
#[derive(Parser)]
|
||||
#[clap(author, about, version = version::LONG_VERSION)]
|
||||
#[clap(name = "komorebi", author, about, version = version::LONG_VERSION)]
|
||||
struct Opts {
|
||||
/// Level of log output verbosity
|
||||
#[clap(long, value_enum, default_value_t=LogLevel::Info)]
|
||||
|
||||
@@ -38,7 +38,7 @@ use tracing_subscriber::EnvFilter;
|
||||
pub use komorebi_bar_core::statics::*;
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(author, about, version)]
|
||||
#[clap(name = "komorebi-bar", author, about, version)]
|
||||
struct Opts {
|
||||
/// Print the JSON schema of the configuration file and exit
|
||||
#[clap(long)]
|
||||
|
||||
@@ -186,7 +186,7 @@ enum LogLevel {
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(author, about, version = version::LONG_VERSION)]
|
||||
#[clap(name = "komorebi", author, about, version = version::LONG_VERSION)]
|
||||
struct Opts {
|
||||
/// Path to a static configuration JSON file
|
||||
#[clap(short, long)]
|
||||
|
||||
@@ -172,7 +172,7 @@ enum LogLevel {
|
||||
}
|
||||
|
||||
#[derive(Parser)]
|
||||
#[clap(author, about, version = komorebi::build::CLAP_LONG_VERSION)]
|
||||
#[clap(name = "komorebi", author, about, version = komorebi::build::CLAP_LONG_VERSION)]
|
||||
struct Opts {
|
||||
/// Allow the use of komorebi's custom focus-follows-mouse implementation
|
||||
#[clap(short, long = "ffm")]
|
||||
|
||||
Reference in new issue
Block a user