From 5a6d882df12238ea40dca65a0649f61c1d7d650a Mon Sep 17 00:00:00 2001 From: Simone Basso Date: Mon, 9 Dec 2024 00:34:12 +0100 Subject: [PATCH] x --- pkg/cli/version/version.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cli/version/version.go b/pkg/cli/version/version.go index ebb157c..228f5bc 100644 --- a/pkg/cli/version/version.go +++ b/pkg/cli/version/version.go @@ -25,11 +25,13 @@ func NewCommand() cliutils.Command { type command struct{} +// Help implements [cliutils.Command]. func (cmd command) Help(env cliutils.Environment, argv ...string) error { fmt.Fprintf(env.Stdout(), "%s\n", markdown.MaybeRender(readme)) return nil } +// Main implements [cliutils.Command]. func (cmd command) Main(ctx context.Context, env cliutils.Environment, argv ...string) error { // 1. honour requests for printing the help if cliutils.HelpRequested(argv...) {