From a5f0aa3f3077cb7bf3cbf7ac9e707ba165aceb4a Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 3 Oct 2025 16:59:29 +0900 Subject: internal/app: declutter and merge small files This should make internal/app easier to work with for the upcoming params to shim. Signed-off-by: Ophestra --- cmd/hakurei/command.go | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) (limited to 'cmd') diff --git a/cmd/hakurei/command.go b/cmd/hakurei/command.go index ddd07bac..0c3e5e7a 100644 --- a/cmd/hakurei/command.go +++ b/cmd/hakurei/command.go @@ -237,25 +237,10 @@ func buildCommand(ctx context.Context, msg container.Msg, early *earlyHardeningE }).Flag(&flagShort, "short", command.BoolFlag(false), "Print instance id") } - c.Command("version", "Display version information", func(args []string) error { - fmt.Println(internal.Version()) - return errSuccess - }) - - c.Command("license", "Show full license text", func(args []string) error { - fmt.Println(license) - return errSuccess - }) - - c.Command("template", "Produce a config template", func(args []string) error { - printJSON(os.Stdout, false, hst.Template()) - return errSuccess - }) - - c.Command("help", "Show this help message", func([]string) error { - c.PrintHelp() - return errSuccess - }) + c.Command("version", "Display version information", func(args []string) error { fmt.Println(internal.Version()); return errSuccess }) + c.Command("license", "Show full license text", func(args []string) error { fmt.Println(license); return errSuccess }) + c.Command("template", "Produce a config template", func(args []string) error { printJSON(os.Stdout, false, hst.Template()); return errSuccess }) + c.Command("help", "Show this help message", func([]string) error { c.PrintHelp(); return errSuccess }) return c } -- cgit v1.3.1