From fab60da8ac0fab9e9e17ba5e01ba8b917ada6417 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 16 Sep 2024 09:39:57 +0000 Subject: feat(rui): qol aliases --- flake.nix | 2 +- rui.go | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6e5b131..415469b 100644 --- a/flake.nix +++ b/flake.nix @@ -33,7 +33,7 @@ { packages.default = pkgs.buildGoModule { pname = "rui"; - version = "2024-09-15"; + version = "2024-09-16"; src = pkgs.lib.cleanSource ./.; vendorHash = "sha256-mN/QjzJ4eGfbW1H92cCKvC0wDhCR6IUes2HCZ5YBdPA="; diff --git a/rui.go b/rui.go index ffe4ffc..edf4c18 100644 --- a/rui.go +++ b/rui.go @@ -29,6 +29,22 @@ func main() { }, Suggest: true, Commands: []*cli.Command{ + { + Name: "hs", + Action: func(c *cli.Context) error { + return c.App.Command("home").Command("switch").Run(c) + }, + Hidden: true, + Description: "Alias for `home switch`", + }, + { + Name: "osw", + Action: func(c *cli.Context) error { + return c.App.Command("os").Command("switch").Run(c) + }, + Hidden: true, + Usage: "Alias for `os switch`", + }, { Name: "home", Subcommands: []*cli.Command{ -- cgit v1.2.3