Skip to content

Commit

Permalink
Merge branch 'v1' into DXCDT-267-consolidate-add-tenants-into-login-cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
willvedd authored Dec 7, 2022
2 parents 5e4d316 + ce78674 commit 8cff7fe
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 39 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ jobs:
AUTH0_CLI_CLIENT_DOMAIN: ${{ secrets.AUTH0_CLI_CLIENT_DOMAIN }}
AUTH0_CLI_CLIENT_ID: ${{ secrets.AUTH0_CLI_CLIENT_ID }}
AUTH0_CLI_CLIENT_SECRET: ${{ secrets.AUTH0_CLI_CLIENT_SECRET }}
AUTH0_CLI_REUSE_CONFIG: ${{ secrets.AUTH0_CLI_REUSE_CONFIG }}
AUTH0_CLI_OVERWRITE: ${{ secrets.AUTH0_CLI_OVERWRITE }}

build:
name: Build
Expand Down
11 changes: 1 addition & 10 deletions cmd/build_doc/main.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
package main

import (
"github.com/joeshaw/envdecode"

"github.com/auth0/auth0-cli/internal/cli"
)

func main() {
var cfg struct {
Path string `env:"AUTH0_CLI_DOCS_PATH,default=./docs/"`
}
if err := envdecode.StrictDecode(&cfg); err != nil {
panic(err)
}

err := cli.BuildDoc(cfg.Path)
err := cli.BuildDoc()
if err != nil {
panic(err)
}
Expand Down
25 changes: 0 additions & 25 deletions docs/ci.md

This file was deleted.

6 changes: 4 additions & 2 deletions internal/cli/build_doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra/doc"
)

func BuildDoc(path string) error {
func BuildDoc() error {
cli := &cli{}

rootCmd := &cobra.Command{
Expand All @@ -20,8 +20,10 @@ func BuildDoc(path string) error {
addPersistentFlags(rootCmd, cli)
addSubcommands(rootCmd, cli)

docsPath := "./docs/"

err := doc.GenMarkdownTreeCustom(rootCmd,
path,
docsPath,
func(fileName string) string {
// prepend to the generated markdown
if strings.HasSuffix(fileName, "auth0.md") {
Expand Down

0 comments on commit 8cff7fe

Please sign in to comment.