aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-16 02:39:57 -0700
committerFuwn <[email protected]>2024-09-16 02:44:33 -0700
commitff17db2307df76628c121611f3ab114a150069af (patch)
tree13cab2150df36456336f3c9e28d98aea480507a1
parent1df6715b2eb4d8c2bd547fe2fb108fbb499570c0 (diff)
downloadrui-ff17db2307df76628c121611f3ab114a150069af.tar.xz
rui-ff17db2307df76628c121611f3ab114a150069af.zip
feat(rui): qol aliases
-rw-r--r--flake.nix2
-rw-r--r--rui.go16
2 files changed, 17 insertions, 1 deletions
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
@@ -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{
{