Skip to content

Commit

Permalink
chore: remove gnodev leftovers (#1519)
Browse files Browse the repository at this point in the history
Months after the renaming `gnodev` to `gno` (in
#585), I still found some references
of gnodev.
Fixed it.
  • Loading branch information
harry-hov authored Jan 11, 2024
1 parent 0a2ba11 commit 0f756b5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (c *docCfg) RegisterFlags(fs *flag.FlagSet) {
&c.rootDir,
"root-dir",
"",
"clone location of github.com/gnolang/gno (gnodev tries to guess it)",
"clone location of github.com/gnolang/gno (gno binary tries to guess it)",
)
}

Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func newGnocliCmd(io commands.IO) *commands.Command {
// generate
// "vm" -- starts an in-memory chain that can be interacted with?
// bug -- start a bug report
// version -- show gnodev, golang versions
// version -- show gno, golang versions
)

return cmd
Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/gnolang/gno/tm2/pkg/commands"
)

func TestMain_Gnodev(t *testing.T) {
func TestMain_Gno(t *testing.T) {
tc := []testMainCase{
{args: []string{""}, errShouldBe: "flag: help requested"},
}
Expand Down
2 changes: 1 addition & 1 deletion gnovm/cmd/gno/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (c *runCfg) RegisterFlags(fs *flag.FlagSet) {
&c.rootDir,
"root-dir",
"",
"clone location of github.com/gnolang/gno (gnodev tries to guess it)",
"clone location of github.com/gnolang/gno (gno binary tries to guess it)",
)

fs.StringVar(
Expand Down
2 changes: 1 addition & 1 deletion gnovm/pkg/doc/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (d *documentable) output(pp *pkgPrinter) (err error) {
var fpAbs = filepath.Abs

// ResolveDocumentable returns a Documentable from the given arguments.
// Refer to the documentation of gnodev doc for the formats accepted (in general
// Refer to the documentation of gno doc for the formats accepted (in general
// the same as the go doc command).
// An error may be returned even if documentation was resolved in case some
// packages in dirs could not be parsed correctly.
Expand Down
2 changes: 1 addition & 1 deletion gnovm/pkg/doc/print.go
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ func (pkg *pkgPrinter) packageClause() {
// If we did a file system scan, we knew the import path when we found the directory.
// But if we started with a directory name, we never knew the import path.
// Either way, we don't know it now, and it's cheap to (re)compute it.
/* TODO: add when supporting gnodev doc on local directories
/* TODO: add when supporting gno doc on local directories
if usingModules {
for _, root := range codeRoots() {
if pkg.build.Dir == root.dir {
Expand Down

0 comments on commit 0f756b5

Please sign in to comment.