diff options
| author | Fuwn <[email protected]> | 2024-09-16 02:39:57 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-09-16 02:44:33 -0700 |
| commit | ff17db2307df76628c121611f3ab114a150069af (patch) | |
| tree | 13cab2150df36456336f3c9e28d98aea480507a1 | |
| parent | 1df6715b2eb4d8c2bd547fe2fb108fbb499570c0 (diff) | |
| download | rui-ff17db2307df76628c121611f3ab114a150069af.tar.xz rui-ff17db2307df76628c121611f3ab114a150069af.zip | |
feat(rui): qol aliases
| -rw-r--r-- | flake.nix | 2 | ||||
| -rw-r--r-- | rui.go | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -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="; @@ -30,6 +30,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{ { |