Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DXCDT-271: Fix generated docs #563

Merged
merged 3 commits into from
Dec 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ $(GO_BIN)/auth0:
.PHONY: docs docs-start docs-clean

docs: docs-clean ## Build the documentation
@go run ./cmd/build_doc
@go run ./cmd/doc-gen
@mv ./docs/auth0.md ./docs/index.md

docs-start: ## Start the doc site locally for testing purposes
Expand Down
7 changes: 4 additions & 3 deletions cmd/build_doc/main.go → cmd/doc-gen/main.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package main

import (
"log"

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

func main() {
err := cli.BuildDoc()
if err != nil {
panic(err)
if err := cli.GenerateDocs(); err != nil {
log.Fatal(err)
}
}
1 change: 0 additions & 1 deletion docs/auth0_actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Manage resources for actions.

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_actions_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=val
-c, --code string Code content for the action.
-d, --dependency stringToString Third party npm module, and it version, that the action depends on. (default [])
-h, --help help for create
--json Output in json format.
-n, --name string Name of the action.
-s, --secret stringToString Secret to be used in the action. (default [])
-t, --trigger string Trigger of the action. At this time, an action can only target a single trigger at a time.
Expand All @@ -38,7 +39,6 @@ auth0 actions create -n myaction -t post-login -d "lodash=4.0.0" -s "API_KEY=val

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_actions_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ auth0 actions delete <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_actions_deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ auth0 actions deploy <id>

```
-h, --help help for deploy
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_actions_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ auth0 actions ls

```
-h, --help help for list
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_actions_open.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ auth0 actions open <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_actions_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ auth0 actions show <id>

```
-h, --help help for show
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_actions_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -s "API_KE
-c, --code string Code content for the action.
-d, --dependency stringToString Third party npm module, and it version, that the action depends on. (default [])
-h, --help help for update
--json Output in json format.
-n, --name string Name of the action.
-s, --secret stringToString Secret to be used in the action. (default [])
-t, --trigger string Trigger of the action. At this time, an action can only target a single trigger at a time.
Expand All @@ -38,7 +39,6 @@ auth0 actions update <id> -n myaction -t post-login -d "lodash=4.0.0" -s "API_KE

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ cat data.json | auth0 api post clients

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apis.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Manage resources for APIs.

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apis_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ auth0 apis create -n myapi -e 6100 --offline-access=true
```
-h, --help help for create
-i, --identifier string Identifier of the API. Cannot be changed once set.
--json Output in json format.
-n, --name string Name of the API.
-o, --offline-access Whether Refresh Tokens can be issued for this API (true) or not (false).
-s, --scopes strings Comma-separated list of scopes (permissions).
Expand All @@ -38,7 +39,6 @@ auth0 apis create -n myapi -e 6100 --offline-access=true

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apis_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ auth0 apis delete <id|audience>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apis_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ auth0 apis ls -n 100

```
-h, --help help for list
--json Output in json format.
-n, --number int Number of apps to retrieve (default 50)
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apis_open.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ auth0 apis open <id|audience>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apis_scopes.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Manage resources for API scopes.

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apis_scopes_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ auth0 apis scopes ls <id|audience>

```
-h, --help help for list
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apis_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ auth0 apis show <id|audience>

```
-h, --help help for show
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apis_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ auth0 apis update -n myapi -e 6100 --offline-access=true

```
-h, --help help for update
--json Output in json format.
-n, --name string Name of the API.
-o, --offline-access Whether Refresh Tokens can be issued for this API (true) or not (false).
-s, --scopes strings Comma-separated list of scopes (permissions).
Expand All @@ -37,7 +38,6 @@ auth0 apis update -n myapi -e 6100 --offline-access=true

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Manage resources for applications.

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apps_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ auth0 apps create -n myapp -t [native|spa|regular|m2m] --description <descriptio
-d, --description string Description of the application. Max character count is 140.
-g, --grants strings List of grant types supported for this application. Can include code, implicit, refresh-token, credentials, password, password-realm, mfa-oob, mfa-otp, mfa-recovery-code, and device-code.
-h, --help help for create
--json Output in json format.
-l, --logout-urls strings Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains.
-n, --name string Name of the application.
-o, --origins strings Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs.
Expand All @@ -46,7 +47,6 @@ auth0 apps create -n myapp -t [native|spa|regular|m2m] --description <descriptio

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apps_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ auth0 apps delete <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apps_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ auth0 apps ls -n 100

```
-h, --help help for list
--json Output in json format.
-n, --number int Number of apps to retrieve (default 50)
-r, --reveal Display the Client Secret as part of the command output.
```
Expand All @@ -34,7 +35,6 @@ auth0 apps ls -n 100

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apps_open.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ auth0 apps open <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apps_show.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@ auth0 apps show <id>

```
-h, --help help for show
--json Output in json format.
-r, --reveal Display the Client Secret as part of the command output.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_apps_update.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ auth0 apps update <id> -n myapp --type [native|spa|regular|m2m]
-d, --description string Description of the application. Max character count is 140.
-g, --grants strings List of grant types supported for this application. Can include code, implicit, refresh-token, credentials, password, password-realm, mfa-oob, mfa-otp, mfa-recovery-code, and device-code.
-h, --help help for update
--json Output in json format.
-l, --logout-urls strings Comma-separated list of URLs that are valid to redirect to after logout from Auth0. Wildcards are allowed for subdomains.
-n, --name string Name of the application.
-o, --origins strings Comma-separated list of URLs allowed to make requests from JavaScript to Auth0 API (typically used with CORS). By default, all your callback URLs will be allowed. This field allows you to enter other origins if necessary. You can also use wildcards at the subdomain level (e.g., https://*.contoso.com). Query strings and hash information are not taken into account when validating these URLs.
Expand All @@ -45,7 +46,6 @@ auth0 apps update <id> -n myapp --type [native|spa|regular|m2m]

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_apps_use.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ auth0 apps use <client-id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_completion.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ auth0 completion

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_domains.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ Manage custom domains.

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_domains_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ auth0 domains create <id>
-d, --domain string Domain name.
-h, --help help for create
-i, --ip-header string The HTTP header to fetch the client's IP address.
--json Output in json format.
-p, --policy string The TLS version policy. Can be either 'compatible' or 'recommended'.
-t, --type string Custom domain provisioning type. Must be 'auth0' for Auth0-managed certs or 'self' for self-managed certs.
-v, --verification string Custom domain verification method. Must be 'txt'.
Expand All @@ -35,7 +36,6 @@ auth0 domains create <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
1 change: 0 additions & 1 deletion docs/auth0_domains_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ auth0 domains delete <id>

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
2 changes: 1 addition & 1 deletion docs/auth0_domains_list.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ auth0 domains ls

```
-h, --help help for list
--json Output in json format.
```

### Options inherited from parent commands

```
--debug Enable debug mode.
--json Output in json format.
--no-color Disable colors.
--no-input Disable interactivity.
--tenant string Specific tenant to use.
Expand Down
Loading