feat(cli): add ffm flag to enable-autostart

The user dumbhighrank mentioned on Discord that it was not possible to
call enable-autostart with the --ffm flag, as one might expect to be
able to do, given that it is accepted by the start command. This commit
introduces the --ffm flag for the enable-autostart command.
This commit is contained in:
LGUG2Z
2023-11-24 14:40:48 -08:00
parent b3e989c6c7
commit a68f3843b7

View File

@@ -718,6 +718,9 @@ struct EnableAutostart {
/// Path to a static configuration JSON file
#[clap(action, short, long)]
config: String,
/// Enable komorebi's custom focus-follows-mouse implementation
#[clap(action, short, long = "ffm")]
ffm: bool,
/// Enable autostart of whkd
#[clap(action, long)]
whkd: bool,
@@ -1173,6 +1176,10 @@ fn main() -> Result<()> {
let mut arguments = format!("start --config {}", args.config);
if args.ffm {
arguments.push_str(" --ffm");
}
if args.whkd {
arguments.push_str(" --whkd");
} else if args.ahk {