docs: remove cobra auto gen tags (#3937)

pull/3938/head^2
James Elliott 2022-09-01 12:24:47 +10:00 committed by GitHub
parent 426ac3c3af
commit f17268ee80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
99 changed files with 131 additions and 74 deletions

View File

@ -9,6 +9,8 @@ func newAllCmd() *cobra.Command {
Use: "all", Use: "all",
Short: "Run all generators with default options", Short: "Run all generators with default options",
RunE: allRunE, RunE: allRunE,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -9,6 +9,8 @@ func newCodeCmd() *cobra.Command {
Use: "code", Use: "code",
Short: "Generate code", Short: "Generate code",
RunE: codeRunE, RunE: codeRunE,
DisableAutoGenTag: true,
} }
cmd.AddCommand(newCodeKeysCmd()) cmd.AddCommand(newCodeKeysCmd())

View File

@ -21,6 +21,8 @@ func newCodeKeysCmd() *cobra.Command {
Use: "keys", Use: "keys",
Short: "Generate the list of valid configuration keys", Short: "Generate the list of valid configuration keys",
RunE: codeKeysRunE, RunE: codeKeysRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("file", "f", "./internal/configuration/schema/keys.go", "Sets the path of the keys file") cmd.Flags().StringP("file", "f", "./internal/configuration/schema/keys.go", "Sets the path of the keys file")

View File

@ -9,6 +9,8 @@ func newDocsCmd() *cobra.Command {
Use: "docs", Use: "docs",
Short: "Generate docs", Short: "Generate docs",
RunE: docsRunE, RunE: docsRunE,
DisableAutoGenTag: true,
} }
cmd.PersistentFlags().StringP("cwd", "C", "", "Sets the CWD for git commands") cmd.PersistentFlags().StringP("cwd", "C", "", "Sets the CWD for git commands")

View File

@ -19,6 +19,8 @@ func newDocsCLICmd() *cobra.Command {
Use: "cli", Use: "cli",
Short: "Generate CLI docs", Short: "Generate CLI docs",
RunE: docsCLIRunE, RunE: docsCLIRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("directory", "d", "./docs/content/en/reference/cli", "The directory to store the markdown in") cmd.Flags().StringP("directory", "d", "./docs/content/en/reference/cli", "The directory to store the markdown in")

View File

@ -20,6 +20,8 @@ func newDocsDateCmd() *cobra.Command {
Use: "date", Use: "date",
Short: "Generate doc dates", Short: "Generate doc dates",
RunE: docsDateRunE, RunE: docsDateRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("directory", "d", "./docs/content", "The directory to modify") cmd.Flags().StringP("directory", "d", "./docs/content", "The directory to modify")

View File

@ -19,6 +19,8 @@ func newRootCmd() *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "authelia-gen", Use: "authelia-gen",
Short: "Authelia's generator tooling", Short: "Authelia's generator tooling",
DisableAutoGenTag: true,
} }
cmd.AddCommand(newAllCmd(), newCodeCmd(), newDocsCmd()) cmd.AddCommand(newAllCmd(), newCodeCmd(), newDocsCmd())

View File

@ -20,6 +20,8 @@ func newBootstrapCmd() (cmd *cobra.Command) {
Example: cmdBootstrapExample, Example: cmdBootstrapExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdBootstrapRun, Run: cmdBootstrapRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -20,6 +20,8 @@ func newBuildCmd() (cmd *cobra.Command) {
Example: cmdBuildExample, Example: cmdBuildExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdBuildRun, Run: cmdBuildRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -15,6 +15,8 @@ func newCICmd() (cmd *cobra.Command) {
Example: cmdCIExample, Example: cmdCIExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdCIRun, Run: cmdCIRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -15,6 +15,8 @@ func newCleanCmd() (cmd *cobra.Command) {
Example: cmdCleanExample, Example: cmdCleanExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdCleanRun, Run: cmdCleanRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -31,6 +31,8 @@ func newDockerCmd() (cmd *cobra.Command) {
Example: cmdDockerExample, Example: cmdDockerExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdDockerBuildRun, Run: cmdDockerBuildRun,
DisableAutoGenTag: true,
} }
cmd.AddCommand(newDockerBuildCmd(), newDockerPushManifestCmd()) cmd.AddCommand(newDockerBuildCmd(), newDockerPushManifestCmd())
@ -46,6 +48,8 @@ func newDockerBuildCmd() (cmd *cobra.Command) {
Example: cmdDockerBuildExample, Example: cmdDockerBuildExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdDockerBuildRun, Run: cmdDockerBuildRun,
DisableAutoGenTag: true,
} }
cmd.PersistentFlags().StringVar(&container, "container", defaultContainer, "target container among: "+strings.Join(containers, ", ")) cmd.PersistentFlags().StringVar(&container, "container", defaultContainer, "target container among: "+strings.Join(containers, ", "))
@ -61,6 +65,8 @@ func newDockerPushManifestCmd() (cmd *cobra.Command) {
Example: cmdDockerPushManifestExample, Example: cmdDockerPushManifestExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdDockerPushManifestRun, Run: cmdDockerPushManifestRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -12,6 +12,8 @@ func NewRootCmd() (cmd *cobra.Command) {
Short: cmdRootShort, Short: cmdRootShort,
Long: cmdRootLong, Long: cmdRootLong,
Example: cmdRootExample, Example: cmdRootExample,
DisableAutoGenTag: true,
} }
cmd.PersistentFlags().Bool("buildkite", false, "Set CI flag for Buildkite") cmd.PersistentFlags().Bool("buildkite", false, "Set CI flag for Buildkite")

View File

@ -15,6 +15,8 @@ func newServeCmd() (cmd *cobra.Command) {
Example: cmdServeExample, Example: cmdServeExample,
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
Run: cmdServeRun, Run: cmdServeRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -31,6 +31,8 @@ func newSuitesCmd() (cmd *cobra.Command) {
Example: cmdSuitesExample, Example: cmdSuitesExample,
Run: cmdSuitesListRun, Run: cmdSuitesListRun,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand(newSuitesListCmd(), newSuitesSetupCmd(), newSuitesTestCmd(), newSuitesTeardownCmd()) cmd.AddCommand(newSuitesListCmd(), newSuitesSetupCmd(), newSuitesTestCmd(), newSuitesTeardownCmd())
@ -46,6 +48,8 @@ func newSuitesListCmd() (cmd *cobra.Command) {
Example: cmdSuitesListExample, Example: cmdSuitesListExample,
Run: cmdSuitesListRun, Run: cmdSuitesListRun,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -59,6 +63,8 @@ func newSuitesSetupCmd() (cmd *cobra.Command) {
Example: cmdSuitesSetupExample, Example: cmdSuitesSetupExample,
Run: cmdSuitesSetupRun, Run: cmdSuitesSetupRun,
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -72,6 +78,8 @@ func newSuitesTeardownCmd() (cmd *cobra.Command) {
Example: cmdSuitesTeardownExample, Example: cmdSuitesTeardownExample,
Run: cmdSuitesTeardownRun, Run: cmdSuitesTeardownRun,
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -85,6 +93,8 @@ func newSuitesTestCmd() (cmd *cobra.Command) {
Example: cmdSuitesTestExample, Example: cmdSuitesTestExample,
Run: cmdSuitesTestRun, Run: cmdSuitesTestRun,
Args: cobra.MaximumNArgs(1), Args: cobra.MaximumNArgs(1),
DisableAutoGenTag: true,
} }
cmd.Flags().BoolVar(&failfast, "failfast", false, "Stops tests on first failure") cmd.Flags().BoolVar(&failfast, "failfast", false, "Stops tests on first failure")

View File

@ -17,6 +17,8 @@ func newUnitTestCmd() (cmd *cobra.Command) {
Example: cmdUnitTestExample, Example: cmdUnitTestExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdUnitTestRun, Run: cmdUnitTestRun,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -16,6 +16,8 @@ func newXFlagsCmd() (cmd *cobra.Command) {
Example: cmdXFlagsExample, Example: cmdXFlagsExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
Run: cmdXFlagsRun, Run: cmdXFlagsRun,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("build", "b", "0", "Sets the BuildNumber flag value") cmd.Flags().StringP("build", "b", "0", "Sets the BuildNumber flag value")

View File

@ -26,30 +26,40 @@ func init() {
func main() { func main() {
rootCmd := &cobra.Command{ rootCmd := &cobra.Command{
Use: "authelia-suites", Use: "authelia-suites",
DisableAutoGenTag: true,
} }
startCmd := &cobra.Command{ startCmd := &cobra.Command{
Use: "setup [suite]", Use: "setup [suite]",
Short: "Setup the suite environment", Short: "Setup the suite environment",
Run: setupSuite, Run: setupSuite,
DisableAutoGenTag: true,
} }
setupTimeoutCmd := &cobra.Command{ setupTimeoutCmd := &cobra.Command{
Use: "timeout [suite]", Use: "timeout [suite]",
Short: "Run the OnSetupTimeout callback when setup times out", Short: "Run the OnSetupTimeout callback when setup times out",
Run: setupTimeoutSuite, Run: setupTimeoutSuite,
DisableAutoGenTag: true,
} }
errorCmd := &cobra.Command{ errorCmd := &cobra.Command{
Use: "error [suite]", Use: "error [suite]",
Short: "Run the OnError callback when some tests fail", Short: "Run the OnError callback when some tests fail",
Run: runErrorCallback, Run: runErrorCallback,
DisableAutoGenTag: true,
} }
stopCmd := &cobra.Command{ stopCmd := &cobra.Command{
Use: "teardown [suite]", Use: "teardown [suite]",
Short: "Teardown the suite environment", Short: "Teardown the suite environment",
Run: teardownSuite, Run: teardownSuite,
DisableAutoGenTag: true,
} }
rootCmd.AddCommand(startCmd) rootCmd.AddCommand(startCmd)

View File

@ -2,7 +2,7 @@
title: "Apache Guacamole" title: "Apache Guacamole"
description: "Integrating Apache Guacamole with the Authelia OpenID Connect Provider." description: "Integrating Apache Guacamole with the Authelia OpenID Connect Provider."
lead: "" lead: ""
date: 2022-07-13T03:42:47+10:00 date: 2022-07-31T13:09:05+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -2,7 +2,7 @@
title: "Argo CD" title: "Argo CD"
description: "Integrating Argo CD with the Authelia OpenID Connect Provider." description: "Integrating Argo CD with the Authelia OpenID Connect Provider."
lead: "" lead: ""
date: 2022-07-13T03:42:47+10:00 date: 2022-07-13T04:27:30+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -2,7 +2,7 @@
title: "Komga" title: "Komga"
description: "Integrating Komga with the Authelia OpenID Connect Provider." description: "Integrating Komga with the Authelia OpenID Connect Provider."
lead: "" lead: ""
date: 2022-06-15T17:51:47+10:00 date: 2022-08-26T11:39:00+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -2,7 +2,7 @@
title: "Outline" title: "Outline"
description: "Integrating Outline with the Authelia OpenID Connect Provider." description: "Integrating Outline with the Authelia OpenID Connect Provider."
lead: "" lead: ""
date: 2022-06-15T17:51:47+10:00 date: 2022-08-12T09:11:42+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -2,7 +2,7 @@
title: "Seafile" title: "Seafile"
description: "Trusted Header SSO Integration for Seafile" description: "Trusted Header SSO Integration for Seafile"
lead: "" lead: ""
date: 2022-06-15T17:51:47+10:00 date: 2022-08-26T11:34:56+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -28,4 +28,3 @@ Authelia's generator tooling
* [authelia-gen code](authelia-gen_code.md) - Generate code * [authelia-gen code](authelia-gen_code.md) - Generate code
* [authelia-gen docs](authelia-gen_docs.md) - Generate docs * [authelia-gen docs](authelia-gen_docs.md) - Generate docs
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -30,4 +30,3 @@ authelia-gen all [flags]
* [authelia-gen](authelia-gen.md) - Authelia's generator tooling * [authelia-gen](authelia-gen.md) - Authelia's generator tooling
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -31,4 +31,3 @@ authelia-gen code [flags]
* [authelia-gen](authelia-gen.md) - Authelia's generator tooling * [authelia-gen](authelia-gen.md) - Authelia's generator tooling
* [authelia-gen code keys](authelia-gen_code_keys.md) - Generate the list of valid configuration keys * [authelia-gen code keys](authelia-gen_code_keys.md) - Generate the list of valid configuration keys
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -32,4 +32,3 @@ authelia-gen code keys [flags]
* [authelia-gen code](authelia-gen_code.md) - Generate code * [authelia-gen code](authelia-gen_code.md) - Generate code
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -33,4 +33,3 @@ authelia-gen docs [flags]
* [authelia-gen docs cli](authelia-gen_docs_cli.md) - Generate CLI docs * [authelia-gen docs cli](authelia-gen_docs_cli.md) - Generate CLI docs
* [authelia-gen docs date](authelia-gen_docs_date.md) - Generate doc dates * [authelia-gen docs date](authelia-gen_docs_date.md) - Generate doc dates
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -37,4 +37,3 @@ authelia-gen docs cli [flags]
* [authelia-gen docs](authelia-gen_docs.md) - Generate docs * [authelia-gen docs](authelia-gen_docs.md) - Generate docs
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts help
* [authelia-scripts unittest](authelia-scripts_unittest.md) - Run unit tests * [authelia-scripts unittest](authelia-scripts_unittest.md) - Run unit tests
* [authelia-scripts xflags](authelia-scripts_xflags.md) - Generate X LDFlags for building Authelia * [authelia-scripts xflags](authelia-scripts_xflags.md) - Generate X LDFlags for building Authelia
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts bootstrap
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts build
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts ci
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts clean
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts docker
* [authelia-scripts docker build](authelia-scripts_docker_build.md) - Build the docker image of Authelia * [authelia-scripts docker build](authelia-scripts_docker_build.md) - Build the docker image of Authelia
* [authelia-scripts docker push-manifest](authelia-scripts_docker_push-manifest.md) - Push Authelia docker manifest to the Docker registries * [authelia-scripts docker push-manifest](authelia-scripts_docker_push-manifest.md) - Push Authelia docker manifest to the Docker registries
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -48,4 +48,3 @@ authelia-scripts docker build
* [authelia-scripts docker](authelia-scripts_docker.md) - Commands related to building and publishing docker image * [authelia-scripts docker](authelia-scripts_docker.md) - Commands related to building and publishing docker image
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts docker push-manifest
* [authelia-scripts docker](authelia-scripts_docker.md) - Commands related to building and publishing docker image * [authelia-scripts docker](authelia-scripts_docker.md) - Commands related to building and publishing docker image
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts serve test.yml
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -51,4 +51,3 @@ authelia-scripts suites
* [authelia-scripts suites teardown](authelia-scripts_suites_teardown.md) - Teardown a test suite environment * [authelia-scripts suites teardown](authelia-scripts_suites_teardown.md) - Teardown a test suite environment
* [authelia-scripts suites test](authelia-scripts_suites_test.md) - Run a test suite * [authelia-scripts suites test](authelia-scripts_suites_test.md) - Run a test suite
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts suites list
* [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management * [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts suites setup Standalone
* [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management * [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts suites setup Standalone
* [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management * [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -52,4 +52,3 @@ authelia-scripts suites test Standalone
* [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management * [authelia-scripts suites](authelia-scripts_suites.md) - Commands related to suites management
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia-scripts unittest
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia-scripts xflags
* [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process. * [authelia-scripts](authelia-scripts.md) - A utility used in the Authelia development process.
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -54,4 +54,3 @@ authelia --config /etc/authelia/config/
* [authelia storage](authelia_storage.md) - Manage the Authelia storage * [authelia storage](authelia_storage.md) - Manage the Authelia storage
* [authelia validate-config](authelia_validate-config.md) - Check a configuration against the internal configuration validation mechanisms * [authelia validate-config](authelia_validate-config.md) - Check a configuration against the internal configuration validation mechanisms
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -37,4 +37,3 @@ authelia access-control --help
* [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown) * [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown)
* [authelia access-control check-policy](authelia_access-control_check-policy.md) - Checks a request against the access control rules to determine what policy would be applied * [authelia access-control check-policy](authelia_access-control_check-policy.md) - Checks a request against the access control rules to determine what policy would be applied
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -67,4 +67,3 @@ authelia access-control check-policy --config config.yml --url https://example.c
* [authelia access-control](authelia_access-control.md) - Helpers for the access control system * [authelia access-control](authelia_access-control.md) - Helpers for the access control system
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -49,4 +49,3 @@ authelia build-info
* [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown) * [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown)
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -40,4 +40,3 @@ authelia crypto --help
* [authelia crypto certificate](authelia_crypto_certificate.md) - Perform certificate cryptographic operations * [authelia crypto certificate](authelia_crypto_certificate.md) - Perform certificate cryptographic operations
* [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations * [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -41,4 +41,3 @@ authelia crypto certificate --help
* [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations * [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations
* [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations * [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -40,4 +40,3 @@ authelia crypto certificate ecdsa --help
* [authelia crypto certificate ecdsa generate](authelia_crypto_certificate_ecdsa_generate.md) - Generate an ECDSA private key and certificate * [authelia crypto certificate ecdsa generate](authelia_crypto_certificate_ecdsa_generate.md) - Generate an ECDSA private key and certificate
* [authelia crypto certificate ecdsa request](authelia_crypto_certificate_ecdsa_request.md) - Generate an ECDSA private key and certificate signing request * [authelia crypto certificate ecdsa request](authelia_crypto_certificate_ecdsa_request.md) - Generate an ECDSA private key and certificate signing request
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -63,4 +63,3 @@ authelia crypto certificate ecdsa generate --help
* [authelia crypto certificate ecdsa](authelia_crypto_certificate_ecdsa.md) - Perform ECDSA certificate cryptographic operations * [authelia crypto certificate ecdsa](authelia_crypto_certificate_ecdsa.md) - Perform ECDSA certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -58,4 +58,3 @@ authelia crypto certificate ecdsa request --help
* [authelia crypto certificate ecdsa](authelia_crypto_certificate_ecdsa.md) - Perform ECDSA certificate cryptographic operations * [authelia crypto certificate ecdsa](authelia_crypto_certificate_ecdsa.md) - Perform ECDSA certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -40,4 +40,3 @@ authelia crypto certificate ed25519 --help
* [authelia crypto certificate ed25519 generate](authelia_crypto_certificate_ed25519_generate.md) - Generate an Ed25519 private key and certificate * [authelia crypto certificate ed25519 generate](authelia_crypto_certificate_ed25519_generate.md) - Generate an Ed25519 private key and certificate
* [authelia crypto certificate ed25519 request](authelia_crypto_certificate_ed25519_request.md) - Generate an Ed25519 private key and certificate signing request * [authelia crypto certificate ed25519 request](authelia_crypto_certificate_ed25519_request.md) - Generate an Ed25519 private key and certificate signing request
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -62,4 +62,3 @@ authelia crypto certificate ed25519 request --help
* [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations * [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -57,4 +57,3 @@ authelia crypto certificate ed25519 request --help
* [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations * [authelia crypto certificate ed25519](authelia_crypto_certificate_ed25519.md) - Perform Ed25519 certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -40,4 +40,3 @@ authelia crypto certificate rsa --help
* [authelia crypto certificate rsa generate](authelia_crypto_certificate_rsa_generate.md) - Generate an RSA private key and certificate * [authelia crypto certificate rsa generate](authelia_crypto_certificate_rsa_generate.md) - Generate an RSA private key and certificate
* [authelia crypto certificate rsa request](authelia_crypto_certificate_rsa_request.md) - Generate an RSA private key and certificate signing request * [authelia crypto certificate rsa request](authelia_crypto_certificate_rsa_request.md) - Generate an RSA private key and certificate signing request
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -63,4 +63,3 @@ authelia crypto certificate rsa generate --help
* [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations * [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -58,4 +58,3 @@ authelia crypto certificate rsa request --help
* [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations * [authelia crypto certificate rsa](authelia_crypto_certificate_rsa.md) - Perform RSA certificate cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -41,4 +41,3 @@ authelia crypto pair --help
* [authelia crypto pair ed25519](authelia_crypto_pair_ed25519.md) - Perform Ed25519 key pair cryptographic operations * [authelia crypto pair ed25519](authelia_crypto_pair_ed25519.md) - Perform Ed25519 key pair cryptographic operations
* [authelia crypto pair rsa](authelia_crypto_pair_rsa.md) - Perform RSA key pair cryptographic operations * [authelia crypto pair rsa](authelia_crypto_pair_rsa.md) - Perform RSA key pair cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -43,4 +43,3 @@ authelia crypto pair ecdsa --help
* [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations * [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations
* [authelia crypto pair ecdsa generate](authelia_crypto_pair_ecdsa_generate.md) - Generate a cryptographic ECDSA key pair * [authelia crypto pair ecdsa generate](authelia_crypto_pair_ecdsa_generate.md) - Generate a cryptographic ECDSA key pair
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia crypto pair ecdsa generate --help
* [authelia crypto pair ecdsa](authelia_crypto_pair_ecdsa.md) - Perform ECDSA key pair cryptographic operations * [authelia crypto pair ecdsa](authelia_crypto_pair_ecdsa.md) - Perform ECDSA key pair cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -43,4 +43,3 @@ authelia crypto pair ed25519 --help
* [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations * [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations
* [authelia crypto pair ed25519 generate](authelia_crypto_pair_ed25519_generate.md) - Generate a cryptographic Ed25519 key pair * [authelia crypto pair ed25519 generate](authelia_crypto_pair_ed25519_generate.md) - Generate a cryptographic Ed25519 key pair
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -46,4 +46,3 @@ authelia crypto pair ed25519 generate --help
* [authelia crypto pair ed25519](authelia_crypto_pair_ed25519.md) - Perform Ed25519 key pair cryptographic operations * [authelia crypto pair ed25519](authelia_crypto_pair_ed25519.md) - Perform Ed25519 key pair cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -43,4 +43,3 @@ authelia crypto pair rsa --help
* [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations * [authelia crypto pair](authelia_crypto_pair.md) - Perform key pair cryptographic operations
* [authelia crypto pair rsa generate](authelia_crypto_pair_rsa_generate.md) - Generate a cryptographic RSA key pair * [authelia crypto pair rsa generate](authelia_crypto_pair_rsa_generate.md) - Generate a cryptographic RSA key pair
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -47,4 +47,3 @@ authelia crypto pair rsa generate --help
* [authelia crypto pair rsa](authelia_crypto_pair_rsa.md) - Perform RSA key pair cryptographic operations * [authelia crypto pair rsa](authelia_crypto_pair_rsa.md) - Perform RSA key pair cryptographic operations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -53,4 +53,3 @@ authelia hash-password --key-length=64 -- 'mypass'
* [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown) * [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown)
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -62,4 +62,3 @@ authelia storage --help
* [authelia storage schema-info](authelia_storage_schema-info.md) - Show the storage information * [authelia storage schema-info](authelia_storage_schema-info.md) - Show the storage information
* [authelia storage user](authelia_storage_user.md) - Manages user settings * [authelia storage user](authelia_storage_user.md) - Manages user settings
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -63,4 +63,3 @@ authelia storage encryption --help
* [authelia storage encryption change-key](authelia_storage_encryption_change-key.md) - Changes the encryption key * [authelia storage encryption change-key](authelia_storage_encryption_change-key.md) - Changes the encryption key
* [authelia storage encryption check](authelia_storage_encryption_check.md) - Checks the encryption key against the database data * [authelia storage encryption check](authelia_storage_encryption_check.md) - Checks the encryption key against the database data
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -67,4 +67,3 @@ authelia storage encryption change-key --encryption-key b3453fde-ecc2-4a1f-9422-
* [authelia storage encryption](authelia_storage_encryption.md) - Manage storage encryption * [authelia storage encryption](authelia_storage_encryption.md) - Manage storage encryption
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -69,4 +69,3 @@ authelia storage encryption check --verbose --encryption-key b3453fde-ecc2-4a1f-
* [authelia storage encryption](authelia_storage_encryption.md) - Manage storage encryption * [authelia storage encryption](authelia_storage_encryption.md) - Manage storage encryption
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -66,4 +66,3 @@ authelia storage migrate --help
* [authelia storage migrate list-up](authelia_storage_migrate_list-up.md) - List the up migrations available * [authelia storage migrate list-up](authelia_storage_migrate_list-up.md) - List the up migrations available
* [authelia storage migrate up](authelia_storage_migrate_up.md) - Perform a migration up * [authelia storage migrate up](authelia_storage_migrate_up.md) - Perform a migration up
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -71,4 +71,3 @@ authelia storage migrate down --target 20 --encryption-key b3453fde-ecc2-4a1f-94
* [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations * [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -67,4 +67,3 @@ authelia storage migrate history --encryption-key b3453fde-ecc2-4a1f-9422-2707dd
* [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations * [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -68,4 +68,3 @@ authelia storage migrate list-down --encryption-key b3453fde-ecc2-4a1f-9422-2707
* [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations * [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -68,4 +68,3 @@ authelia storage migrate list-up --encryption-key b3453fde-ecc2-4a1f-9422-2707dd
* [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations * [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -70,4 +70,3 @@ authelia storage migrate up --encryption-key b3453fde-ecc2-4a1f-9422-2707ddbed49
* [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations * [authelia storage migrate](authelia_storage_migrate.md) - Perform or list migrations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -67,4 +67,3 @@ authelia storage schema-info --encryption-key b3453fde-ecc2-4a1f-9422-2707ddbed4
* [authelia storage](authelia_storage.md) - Manage the Authelia storage * [authelia storage](authelia_storage.md) - Manage the Authelia storage
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -63,4 +63,3 @@ authelia storage user --help
* [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers * [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers
* [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations * [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -65,4 +65,3 @@ authelia storage user identifiers --help
* [authelia storage user identifiers generate](authelia_storage_user_identifiers_generate.md) - Generate opaque identifiers in bulk * [authelia storage user identifiers generate](authelia_storage_user_identifiers_generate.md) - Generate opaque identifiers in bulk
* [authelia storage user identifiers import](authelia_storage_user_identifiers_import.md) - Import the identifiers from a YAML file * [authelia storage user identifiers import](authelia_storage_user_identifiers_import.md) - Import the identifiers from a YAML file
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -70,4 +70,3 @@ authelia storage user identifiers add john --identifier f0919359-9d15-4e15-bcba-
* [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers * [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -69,4 +69,3 @@ authelia storage user identifiers export --file export.yaml --encryption-key b34
* [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers * [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -72,4 +72,3 @@ authelia storage user identifiers generate --users john,mary --services openid -
* [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers * [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -72,4 +72,3 @@ authelia storage user identifiers import --file export.yaml --encryption-key b34
* [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers * [authelia storage user identifiers](authelia_storage_user_identifiers.md) - Manage user opaque identifiers
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -64,4 +64,3 @@ authelia storage user totp --help
* [authelia storage user totp export](authelia_storage_user_totp_export.md) - Perform exports of the TOTP configurations * [authelia storage user totp export](authelia_storage_user_totp_export.md) - Perform exports of the TOTP configurations
* [authelia storage user totp generate](authelia_storage_user_totp_generate.md) - Generate a TOTP configuration for a user * [authelia storage user totp generate](authelia_storage_user_totp_generate.md) - Generate a TOTP configuration for a user
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -67,4 +67,3 @@ authelia storage user totp delete john --encryption-key b3453fde-ecc2-4a1f-9422-
* [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations * [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -70,4 +70,3 @@ authelia storage user totp export --format png --dir ./totp-qr --encryption-key
* [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations * [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -79,4 +79,3 @@ authelia storage user totp generate john --algorithm SHA512 --config config.yml
* [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations * [authelia storage user totp](authelia_storage_user_totp.md) - Manage TOTP configurations
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -45,4 +45,3 @@ authelia validate-config --config config.yml
* [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown) * [authelia](authelia.md) - authelia untagged-unknown-dirty (master, unknown)
###### Auto generated by spf13/cobra on 27-Jun-2022

View File

@ -2,7 +2,7 @@
title: "Domain Sanitization" title: "Domain Sanitization"
description: "This guide describes and helps users sanitize provided files to hide their domain" description: "This guide describes and helps users sanitize provided files to hide their domain"
lead: "This guide describes and helps users sanitize provided files to hide their domain." lead: "This guide describes and helps users sanitize provided files to hide their domain."
date: 2022-06-20T10:05:55+10:00 date: 2022-08-26T13:50:51+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -2,7 +2,7 @@
title: "HTTP Archive Files" title: "HTTP Archive Files"
description: "This guide describes and helps users create HTTP Archive (HAR) files" description: "This guide describes and helps users create HTTP Archive (HAR) files"
lead: "This guide describes and helps users create HTTP Archive (HAR) files." lead: "This guide describes and helps users create HTTP Archive (HAR) files."
date: 2022-06-20T10:05:55+10:00 date: 2022-08-26T13:50:51+10:00
draft: false draft: false
images: [] images: []
menu: menu:

View File

@ -21,6 +21,8 @@ func newAccessControlCommand() (cmd *cobra.Command) {
Short: cmdAutheliaAccessControlShort, Short: cmdAutheliaAccessControlShort,
Long: cmdAutheliaAccessControlLong, Long: cmdAutheliaAccessControlLong,
Example: cmdAutheliaAccessControlExample, Example: cmdAutheliaAccessControlExample,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -37,6 +39,8 @@ func newAccessControlCheckCommand() (cmd *cobra.Command) {
Long: cmdAutheliaAccessControlCheckPolicyLong, Long: cmdAutheliaAccessControlCheckPolicyLong,
Example: cmdAutheliaAccessControlCheckPolicyExample, Example: cmdAutheliaAccessControlCheckPolicyExample,
RunE: accessControlCheckRunE, RunE: accessControlCheckRunE,
DisableAutoGenTag: true,
} }
cmdWithConfigFlags(cmd, false, []string{"configuration.yml"}) cmdWithConfigFlags(cmd, false, []string{"configuration.yml"})

View File

@ -17,6 +17,8 @@ func newBuildInfoCmd() (cmd *cobra.Command) {
Example: cmdAutheliaBuildInfoExample, Example: cmdAutheliaBuildInfoExample,
RunE: cmdBuildInfoRunE, RunE: cmdBuildInfoRunE,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
return cmd return cmd

View File

@ -22,6 +22,8 @@ func newCryptoCmd() (cmd *cobra.Command) {
Long: cmdAutheliaCryptoLong, Long: cmdAutheliaCryptoLong,
Example: cmdAutheliaCryptoExample, Example: cmdAutheliaCryptoExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -39,6 +41,8 @@ func newCryptoCertificateCmd() (cmd *cobra.Command) {
Long: cmdAutheliaCryptoCertificateLong, Long: cmdAutheliaCryptoCertificateLong,
Example: cmdAutheliaCryptoCertificateExample, Example: cmdAutheliaCryptoCertificateExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -72,6 +76,8 @@ func newCryptoCertificateSubCmd(use string) (cmd *cobra.Command) {
Long: fmt.Sprintf(fmtCmdAutheliaCryptoCertificateSubLong, useFmt, useFmt), Long: fmt.Sprintf(fmtCmdAutheliaCryptoCertificateSubLong, useFmt, useFmt),
Example: example, Example: example,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand(newCryptoGenerateCmd(cmdUseCertificate, use), newCryptoCertificateRequestCmd(use)) cmd.AddCommand(newCryptoGenerateCmd(cmdUseCertificate, use), newCryptoCertificateRequestCmd(use))
@ -84,6 +90,8 @@ func newCryptoCertificateRequestCmd(algorithm string) (cmd *cobra.Command) {
Use: cmdUseRequest, Use: cmdUseRequest,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: cryptoCertificateRequestRunE, RunE: cryptoCertificateRequestRunE,
DisableAutoGenTag: true,
} }
cmdFlagsCryptoPrivateKey(cmd) cmdFlagsCryptoPrivateKey(cmd)
@ -120,6 +128,8 @@ func newCryptoPairCmd() (cmd *cobra.Command) {
Long: cmdAutheliaCryptoPairLong, Long: cmdAutheliaCryptoPairLong,
Example: cmdAutheliaCryptoPairExample, Example: cmdAutheliaCryptoPairExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -154,6 +164,8 @@ func newCryptoPairSubCmd(use string) (cmd *cobra.Command) {
Example: example, Example: example,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: cryptoGenerateRunE, RunE: cryptoGenerateRunE,
DisableAutoGenTag: true,
} }
cmd.AddCommand(newCryptoGenerateCmd(cmdUsePair, use)) cmd.AddCommand(newCryptoGenerateCmd(cmdUsePair, use))
@ -166,6 +178,8 @@ func newCryptoGenerateCmd(category, algorithm string) (cmd *cobra.Command) {
Use: cmdUseGenerate, Use: cmdUseGenerate,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: cryptoGenerateRunE, RunE: cryptoGenerateRunE,
DisableAutoGenTag: true,
} }
cmdFlagsCryptoPrivateKey(cmd) cmdFlagsCryptoPrivateKey(cmd)

View File

@ -20,6 +20,8 @@ func newHashPasswordCmd() (cmd *cobra.Command) {
Example: cmdAutheliaHashPasswordExample, Example: cmdAutheliaHashPasswordExample,
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
RunE: cmdHashPasswordRunE, RunE: cmdHashPasswordRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().BoolP("sha512", "z", false, fmt.Sprintf("use sha512 as the algorithm (changes iterations to %d, change with -i)", schema.DefaultPasswordSHA512Configuration.Iterations)) cmd.Flags().BoolP("sha512", "z", false, fmt.Sprintf("use sha512 as the algorithm (changes iterations to %d, change with -i)", schema.DefaultPasswordSHA512Configuration.Iterations))

View File

@ -35,6 +35,8 @@ func NewRootCmd() (cmd *cobra.Command) {
Args: cobra.NoArgs, Args: cobra.NoArgs,
PreRun: newCmdWithConfigPreRun(true, true, true), PreRun: newCmdWithConfigPreRun(true, true, true),
Run: cmdRootRun, Run: cmdRootRun,
DisableAutoGenTag: true,
} }
cmdWithConfigFlags(cmd, false, []string{}) cmdWithConfigFlags(cmd, false, []string{})

View File

@ -17,6 +17,8 @@ func newStorageCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageExample, Example: cmdAutheliaStorageExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
PersistentPreRunE: storagePersistentPreRunE, PersistentPreRunE: storagePersistentPreRunE,
DisableAutoGenTag: true,
} }
cmdWithConfigFlags(cmd, true, []string{"configuration.yml"}) cmdWithConfigFlags(cmd, true, []string{"configuration.yml"})
@ -58,6 +60,8 @@ func newStorageEncryptionCmd() (cmd *cobra.Command) {
Short: cmdAutheliaStorageEncryptionShort, Short: cmdAutheliaStorageEncryptionShort,
Long: cmdAutheliaStorageEncryptionLong, Long: cmdAutheliaStorageEncryptionLong,
Example: cmdAutheliaStorageEncryptionExample, Example: cmdAutheliaStorageEncryptionExample,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -75,6 +79,8 @@ func newStorageEncryptionCheckCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageEncryptionCheckLong, Long: cmdAutheliaStorageEncryptionCheckLong,
Example: cmdAutheliaStorageEncryptionCheckExample, Example: cmdAutheliaStorageEncryptionCheckExample,
RunE: storageSchemaEncryptionCheckRunE, RunE: storageSchemaEncryptionCheckRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().Bool("verbose", false, "enables verbose checking of every row of encrypted data") cmd.Flags().Bool("verbose", false, "enables verbose checking of every row of encrypted data")
@ -89,6 +95,8 @@ func newStorageEncryptionChangeKeyCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageEncryptionChangeKeyLong, Long: cmdAutheliaStorageEncryptionChangeKeyLong,
Example: cmdAutheliaStorageEncryptionChangeKeyExample, Example: cmdAutheliaStorageEncryptionChangeKeyExample,
RunE: storageSchemaEncryptionChangeKeyRunE, RunE: storageSchemaEncryptionChangeKeyRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().String("new-encryption-key", "", "the new key to encrypt the data with") cmd.Flags().String("new-encryption-key", "", "the new key to encrypt the data with")
@ -102,6 +110,8 @@ func newStorageUserCmd() (cmd *cobra.Command) {
Short: cmdAutheliaStorageUserShort, Short: cmdAutheliaStorageUserShort,
Long: cmdAutheliaStorageUserLong, Long: cmdAutheliaStorageUserLong,
Example: cmdAutheliaStorageUserExample, Example: cmdAutheliaStorageUserExample,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -118,6 +128,8 @@ func newStorageUserIdentifiersCmd() (cmd *cobra.Command) {
Short: cmdAutheliaStorageUserIdentifiersShort, Short: cmdAutheliaStorageUserIdentifiersShort,
Long: cmdAutheliaStorageUserIdentifiersLong, Long: cmdAutheliaStorageUserIdentifiersLong,
Example: cmdAutheliaStorageUserIdentifiersExample, Example: cmdAutheliaStorageUserIdentifiersExample,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -137,6 +149,8 @@ func newStorageUserIdentifiersExportCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageUserIdentifiersExportLong, Long: cmdAutheliaStorageUserIdentifiersExportLong,
Example: cmdAutheliaStorageUserIdentifiersExportExample, Example: cmdAutheliaStorageUserIdentifiersExportExample,
RunE: storageUserIdentifiersExport, RunE: storageUserIdentifiersExport,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("file", "f", "user-opaque-identifiers.yml", "The file name for the YAML export") cmd.Flags().StringP("file", "f", "user-opaque-identifiers.yml", "The file name for the YAML export")
@ -151,6 +165,8 @@ func newStorageUserIdentifiersImportCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageUserIdentifiersImportLong, Long: cmdAutheliaStorageUserIdentifiersImportLong,
Example: cmdAutheliaStorageUserIdentifiersImportExample, Example: cmdAutheliaStorageUserIdentifiersImportExample,
RunE: storageUserIdentifiersImport, RunE: storageUserIdentifiersImport,
DisableAutoGenTag: true,
} }
cmd.Flags().StringP("file", "f", "user-opaque-identifiers.yml", "The file name for the YAML import") cmd.Flags().StringP("file", "f", "user-opaque-identifiers.yml", "The file name for the YAML import")
@ -165,6 +181,8 @@ func newStorageUserIdentifiersGenerateCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageUserIdentifiersGenerateLong, Long: cmdAutheliaStorageUserIdentifiersGenerateLong,
Example: cmdAutheliaStorageUserIdentifiersGenerateExample, Example: cmdAutheliaStorageUserIdentifiersGenerateExample,
RunE: storageUserIdentifiersGenerate, RunE: storageUserIdentifiersGenerate,
DisableAutoGenTag: true,
} }
cmd.Flags().StringSlice("users", nil, "The list of users to generate the opaque identifiers for") cmd.Flags().StringSlice("users", nil, "The list of users to generate the opaque identifiers for")
@ -182,6 +200,8 @@ func newStorageUserIdentifiersAddCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageUserIdentifiersAddExample, Example: cmdAutheliaStorageUserIdentifiersAddExample,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
RunE: storageUserIdentifiersAdd, RunE: storageUserIdentifiersAdd,
DisableAutoGenTag: true,
} }
cmd.Flags().String("identifier", "", "The optional version 4 UUID to use, if not set a random one will be used") cmd.Flags().String("identifier", "", "The optional version 4 UUID to use, if not set a random one will be used")
@ -197,6 +217,8 @@ func newStorageUserTOTPCmd() (cmd *cobra.Command) {
Short: cmdAutheliaStorageUserTOTPShort, Short: cmdAutheliaStorageUserTOTPShort,
Long: cmdAutheliaStorageUserTOTPLong, Long: cmdAutheliaStorageUserTOTPLong,
Example: cmdAutheliaStorageUserTOTPExample, Example: cmdAutheliaStorageUserTOTPExample,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -216,6 +238,8 @@ func newStorageUserTOTPGenerateCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageUserTOTPGenerateExample, Example: cmdAutheliaStorageUserTOTPGenerateExample,
RunE: storageTOTPGenerateRunE, RunE: storageTOTPGenerateRunE,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
DisableAutoGenTag: true,
} }
cmd.Flags().String("secret", "", "Optionally set the TOTP shared secret as base32 encoded bytes (no padding), it's recommended to not set this option unless you're restoring an TOTP config") cmd.Flags().String("secret", "", "Optionally set the TOTP shared secret as base32 encoded bytes (no padding), it's recommended to not set this option unless you're restoring an TOTP config")
@ -238,6 +262,8 @@ func newStorageUserTOTPDeleteCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageUserTOTPDeleteExample, Example: cmdAutheliaStorageUserTOTPDeleteExample,
RunE: storageTOTPDeleteRunE, RunE: storageTOTPDeleteRunE,
Args: cobra.ExactArgs(1), Args: cobra.ExactArgs(1),
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -250,6 +276,8 @@ func newStorageUserTOTPExportCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageUserTOTPExportLong, Long: cmdAutheliaStorageUserTOTPExportLong,
Example: cmdAutheliaStorageUserTOTPExportExample, Example: cmdAutheliaStorageUserTOTPExportExample,
RunE: storageTOTPExportRunE, RunE: storageTOTPExportRunE,
DisableAutoGenTag: true,
} }
cmd.Flags().String("format", storageTOTPExportFormatURI, fmt.Sprintf("sets the output format, valid values are: %s", strings.Join(validStorageTOTPExportFormats, ", "))) cmd.Flags().String("format", storageTOTPExportFormatURI, fmt.Sprintf("sets the output format, valid values are: %s", strings.Join(validStorageTOTPExportFormats, ", ")))
@ -265,6 +293,8 @@ func newStorageSchemaInfoCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageSchemaInfoLong, Long: cmdAutheliaStorageSchemaInfoLong,
Example: cmdAutheliaStorageSchemaInfoExample, Example: cmdAutheliaStorageSchemaInfoExample,
RunE: storageSchemaInfoRunE, RunE: storageSchemaInfoRunE,
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -278,6 +308,8 @@ func newStorageMigrateCmd() (cmd *cobra.Command) {
Long: cmdAutheliaStorageMigrateLong, Long: cmdAutheliaStorageMigrateLong,
Example: cmdAutheliaStorageMigrateExample, Example: cmdAutheliaStorageMigrateExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
DisableAutoGenTag: true,
} }
cmd.AddCommand( cmd.AddCommand(
@ -297,6 +329,8 @@ func newStorageMigrateHistoryCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageMigrateHistoryExample, Example: cmdAutheliaStorageMigrateHistoryExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: storageMigrateHistoryRunE, RunE: storageMigrateHistoryRunE,
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -310,6 +344,8 @@ func newStorageMigrateListUpCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageMigrateListUpExample, Example: cmdAutheliaStorageMigrateListUpExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: newStorageMigrateListRunE(true), RunE: newStorageMigrateListRunE(true),
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -323,6 +359,8 @@ func newStorageMigrateListDownCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageMigrateListDownExample, Example: cmdAutheliaStorageMigrateListDownExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: newStorageMigrateListRunE(false), RunE: newStorageMigrateListRunE(false),
DisableAutoGenTag: true,
} }
return cmd return cmd
@ -336,6 +374,8 @@ func newStorageMigrateUpCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageMigrateUpExample, Example: cmdAutheliaStorageMigrateUpExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: newStorageMigrationRunE(true), RunE: newStorageMigrationRunE(true),
DisableAutoGenTag: true,
} }
cmd.Flags().IntP("target", "t", 0, "sets the version to migrate to, by default this is the latest version") cmd.Flags().IntP("target", "t", 0, "sets the version to migrate to, by default this is the latest version")
@ -351,6 +391,8 @@ func newStorageMigrateDownCmd() (cmd *cobra.Command) {
Example: cmdAutheliaStorageMigrateDownExample, Example: cmdAutheliaStorageMigrateDownExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: newStorageMigrationRunE(false), RunE: newStorageMigrationRunE(false),
DisableAutoGenTag: true,
} }
cmd.Flags().IntP("target", "t", 0, "sets the version to migrate to") cmd.Flags().IntP("target", "t", 0, "sets the version to migrate to")

View File

@ -16,6 +16,8 @@ func newValidateConfigCmd() (cmd *cobra.Command) {
Example: cmdAutheliaValidateConfigExample, Example: cmdAutheliaValidateConfigExample,
Args: cobra.NoArgs, Args: cobra.NoArgs,
RunE: cmdValidateConfigRunE, RunE: cmdValidateConfigRunE,
DisableAutoGenTag: true,
} }
cmdWithConfigFlags(cmd, false, []string{"configuration.yml"}) cmdWithConfigFlags(cmd, false, []string{"configuration.yml"})