Skip to content

Commit

Permalink
chore: fix gnohealth command/subcommand help (#3555)
Browse files Browse the repository at this point in the history
This PR fixes a detail, the help descriptions of the gnohealth command
that are incorrect.
  • Loading branch information
aeddi authored Jan 20, 2025
1 parent d95ee04 commit 8702da9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 26 deletions.
24 changes: 0 additions & 24 deletions contribs/gnohealth/health.go

This file was deleted.

2 changes: 1 addition & 1 deletion contribs/gnohealth/internal/timestamp/timestamp.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func NewTimestampCmd(io commands.IO) *commands.Command {
return commands.NewCommand(
commands.Metadata{
Name: "timestamp",
ShortUsage: "[flags]",
ShortUsage: "timestamp [flags]",
ShortHelp: "check if block timestamps are drifting",
LongHelp: "This command checks if block timestamps are drifting on a blockchain by connecting to a specified node via RPC.",
},
Expand Down
15 changes: 14 additions & 1 deletion contribs/gnohealth/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@ import (
"context"
"os"

"github.com/gnolang/gno/contribs/gnohealth/internal/timestamp"
"github.com/gnolang/gno/tm2/pkg/commands"
)

func main() {
cmd := newHealthCmd(commands.NewDefaultIO())
cmd := commands.NewCommand(
commands.Metadata{
ShortUsage: "<subcommand> [flags]",
LongHelp: "Gno health check suite, to verify that different parts of Gno are working correctly",
},
commands.NewEmptyConfig(),
commands.HelpExec,
)

io := commands.NewDefaultIO()
cmd.AddSubCommands(
timestamp.NewTimestampCmd(io),
)

cmd.Execute(context.Background(), os.Args[1:])
}

0 comments on commit 8702da9

Please sign in to comment.