Skip to content

Commit

Permalink
chore(gnodev): show link to docs upon 'h' key (gnolang#2497)
Browse files Browse the repository at this point in the history
I propose we have "h" commandin gnodev mention a link to the full help
of gnodev. This is a possible implementation.

Tried a few variants, this one seems simple enough:


![ksnip_20240704-134249](https://github.com/gnolang/gno/assets/350354/f97bf22a-1028-45ad-a1b3-3f80b8b3d68f)

@gfanton feel free to suggest changes :)

---------

Co-authored-by: grepsuzette <grepsuzette@users.noreply.github.com>
Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 4, 2024
1 parent da59516 commit 5f6b311
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 2 additions & 0 deletions contribs/gnodev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

`gnodev` is designed to be a robust and user-friendly tool in your realm package development journey, streamlining your workflow and enhancing productivity.

We will only give a quick overview below. You may find the official documentation at [docs/gno-tooling/gnodev.md](../../docs/gno-tooling/cli/gnodev.md).

### Synopsis
**gnodev** [**-minimal**] [**-no-watch**] [**PKG_PATH ...**]

Expand Down
8 changes: 5 additions & 3 deletions contribs/gnodev/cmd/gnodev/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,11 +309,13 @@ func execDev(cfg *devCfg, args []string, io commands.IO) (err error) {
return runEventLoop(ctx, logger, book, rt, devNode, watcher)
}

var helper string = `
var helper string = `For more in-depth documentation, visit the GNO Tooling CLI documentation:
https://docs.gno.land/gno-tooling/cli/gno-tooling-gnodev
A Accounts - Display known accounts and balances
H Help - Display this message
R Reload - Reload all packages to take change into account.
Ctrl+R Reset - Reset application state.
R Reload - Reload all packages to take change into account
Ctrl+R Reset - Reset application state
Ctrl+C Exit - Exit the application
`

Expand Down

0 comments on commit 5f6b311

Please sign in to comment.