From 3f0c28014c73296f5752e44422f7fbb3e5046614 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Sun, 6 Oct 2024 15:34:14 +0000 Subject: [PATCH] feat: add command aliases --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 9a3ced5..cb6d2a5 100644 --- a/main.go +++ b/main.go @@ -35,13 +35,13 @@ type CLI struct { cmd.Globals Pew cmd.PewCmd `cmd:"" help:"build, run, and test module/exploit"` - Kernel cmd.KernelCmd `cmd:"" help:"manipulate kernels"` + Kernel cmd.KernelCmd `cmd:"" aliases:"kernels" help:"manipulate kernels"` Debug cmd.DebugCmd `cmd:"" help:"debug environment"` Log cmd.LogCmd `cmd:"" help:"query logs"` Pack cmd.PackCmd `cmd:"" help:"exploit pack test"` Gen cmd.GenCmd `cmd:"" help:"generate .out-of-tree.toml skeleton"` - Image cmd.ImageCmd `cmd:"" help:"manage images"` - Container cmd.ContainerCmd `cmd:"" help:"manage containers"` + Image cmd.ImageCmd `cmd:"" aliases:"images" help:"manage images"` + Container cmd.ContainerCmd `cmd:"" aliases:"containers" help:"manage containers"` Distro cmd.DistroCmd `cmd:"" help:"distro-related helpers"` Daemon cmd.DaemonCmd `cmd:"" help:"run daemon"`