Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remyleone committed Aug 30, 2024
1 parent 0ba31ff commit d56537d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/scw-doc-gen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"fmt"
"os"

"github.com/scaleway/scaleway-cli/v2/commands"
"github.com/scaleway/scaleway-cli/v2/internal/docgen"
"github.com/scaleway/scaleway-cli/v2/internal/namespaces"
)

// This command is used to generate markdown documentation for each commands (custom or generated) of the CLI
func main() {
commands := namespaces.GetCommands()
cmds := commands.GetCommands()

outDir := flag.String("outdir", "./docs/commands", "Directory where markdown will be created")
flag.Parse()
Expand All @@ -25,7 +25,7 @@ func main() {
panic(fmt.Errorf("outdir %s must be a valid directory", *outDir))
}

err = docgen.GenerateDocs(commands, *outDir)
err = docgen.GenerateDocs(cmds, *outDir)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit d56537d

Please sign in to comment.