Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
bassosimone committed Dec 8, 2024
1 parent 8afafa6 commit 5a6d882
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/cli/version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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...) {
Expand Down

0 comments on commit 5a6d882

Please sign in to comment.