diff --git a/cmd/admins.go b/cmd/admins.go deleted file mode 100644 index 3c5a51f..0000000 --- a/cmd/admins.go +++ /dev/null @@ -1,9 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -func registerAdminsCommand() *cobra.Command { - return &cobra.Command{} -} diff --git a/cmd/auth_tokens.go b/cmd/auth_tokens.go deleted file mode 100644 index 7a99558..0000000 --- a/cmd/auth_tokens.go +++ /dev/null @@ -1,9 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -func registerAuthTokensCommand() *cobra.Command { - return &cobra.Command{} -} diff --git a/cmd/commands.go b/cmd/commands.go index a3f04b4..d47c567 100644 --- a/cmd/commands.go +++ b/cmd/commands.go @@ -50,6 +50,7 @@ func getGoCDCliCommands() *cobra.Command { command.commands = append(command.commands, registerAuthConfigCommand()) command.commands = append(command.commands, registerMaterialsCommand()) command.commands = append(command.commands, registerWhoAmICommand()) + command.commands = append(command.commands, registerServerConfigCommand()) return command.prepareCommands() } diff --git a/cmd/roles.go b/cmd/roles.go deleted file mode 100644 index c2bd92e..0000000 --- a/cmd/roles.go +++ /dev/null @@ -1,9 +0,0 @@ -package cmd - -import ( - "github.com/spf13/cobra" -) - -func registerRolesCommand() *cobra.Command { - return &cobra.Command{} -} diff --git a/cmd/server_configurations.go b/cmd/server_configurations.go new file mode 100644 index 0000000..4efc6f6 --- /dev/null +++ b/cmd/server_configurations.go @@ -0,0 +1,402 @@ +package cmd + +import ( + "encoding/json" + "fmt" + + "github.com/nikhilsbhat/gocd-cli/pkg/errors" + "github.com/nikhilsbhat/gocd-cli/pkg/render" + "github.com/nikhilsbhat/gocd-sdk-go" + "github.com/spf13/cobra" + "gopkg.in/yaml.v3" +) + +func registerServerConfigCommand() *cobra.Command { + serverCommand := &cobra.Command{ + Use: "server-config", + Short: "Command to operate on GoCD server's configurations", + Long: `Command leverages GoCD apis': +https://api.gocd.org/current/#update-artifacts-config, +https://api.gocd.org/current/#create-or-update-mailserver-config, +https://api.gocd.org/current/#update-job-timeout-config, +https://api.gocd.org/current/#create-or-update-siteurls-config + +to operate on GoCD server's configuration`, + RunE: func(cmd *cobra.Command, args []string) error { + if err := cmd.Usage(); err != nil { + return err + } + + return nil + }, + } + + serverCommand.SetUsageTemplate(getUsageTemplate()) + serverCommand.AddCommand(registerSiteCommand()) + serverCommand.AddCommand(registerArtifactManagementCommand()) + serverCommand.AddCommand(registerJobTimeoutCommand()) + serverCommand.AddCommand(registerMailServerConfigCommand()) + + for _, command := range serverCommand.Commands() { + command.SilenceUsage = true + } + + return serverCommand +} + +func registerArtifactManagementCommand() *cobra.Command { + registerArtifactManagementCmd := &cobra.Command{ + Use: "artifact-config", + Short: "Command to operate on GoCD server's artifact configuration", + Long: `Command leverages GoCD apis': +https://api.gocd.org/current/#get-artifacts-config, +https://api.gocd.org/current/#update-artifacts-config +to operate on artifacts in GoCD`, + RunE: func(cmd *cobra.Command, args []string) error { + if err := cmd.Usage(); err != nil { + return err + } + + return nil + }, + } + + registerArtifactManagementCmd.SetUsageTemplate(getUsageTemplate()) + registerArtifactManagementCmd.AddCommand(artifactConfigGetCommand()) + registerArtifactManagementCmd.AddCommand(artifactConfigUpdateCommand()) + + for _, command := range registerArtifactManagementCmd.Commands() { + command.SilenceUsage = true + } + + return registerArtifactManagementCmd +} + +func registerSiteCommand() *cobra.Command { + serverCommand := &cobra.Command{ + Use: "site-url", + Short: "Command to operate on GoCD server's site-url configuration", + Long: `Command leverages GoCD apis': +https://api.gocd.org/current/#update-artifacts-config, +https://api.gocd.org/current/#create-or-update-mailserver-config + +to operate on GoCD's site-url configuration`, + RunE: func(cmd *cobra.Command, args []string) error { + if err := cmd.Usage(); err != nil { + return err + } + + return nil + }, + } + + serverCommand.SetUsageTemplate(getUsageTemplate()) + serverCommand.AddCommand(getSiteURLSCommand()) + serverCommand.AddCommand(createUpdateSiteURLSCommand()) + + for _, command := range serverCommand.Commands() { + command.SilenceUsage = true + } + + return serverCommand +} + +func registerJobTimeoutCommand() *cobra.Command { + registerJobTimeoutCmd := &cobra.Command{ + Use: "job-timeout", + Short: "Command to operate on GoCD server's default job timeout", + Long: `Command leverages GoCD apis': +https://api.gocd.org/current/#get-jobtimeout-config, +https://api.gocd.org/current/#update-job-timeout-config + +to operate on GoCD's default job timeout configuration`, + RunE: func(cmd *cobra.Command, args []string) error { + if err := cmd.Usage(); err != nil { + return err + } + + return nil + }, + } + + registerJobTimeoutCmd.SetUsageTemplate(getUsageTemplate()) + registerJobTimeoutCmd.AddCommand(getJobTimeoutCommand()) + registerJobTimeoutCmd.AddCommand(updateJobTimeoutCommand()) + + for _, command := range registerJobTimeoutCmd.Commands() { + command.SilenceUsage = true + } + + return registerJobTimeoutCmd +} + +func registerMailServerConfigCommand() *cobra.Command { + registerJobTimeoutCmd := &cobra.Command{ + Use: "mail-server-config", + Short: "Command to operate on GoCD server's mail-server configuration", + Long: `Command leverages GoCD apis': +https://api.gocd.org/current/#get-mailserver-config, +https://api.gocd.org/current/#create-or-update-mailserver-config, +https://api.gocd.org/current/#delete-mailserver-config + +to operate on GoCD server's mail-server configuration'`, + RunE: func(cmd *cobra.Command, args []string) error { + if err := cmd.Usage(); err != nil { + return err + } + + return nil + }, + } + + registerJobTimeoutCmd.SetUsageTemplate(getUsageTemplate()) + registerJobTimeoutCmd.AddCommand(getMailServerConfigCommand()) + registerJobTimeoutCmd.AddCommand(createUpdateMailServerConfigCommand()) + registerJobTimeoutCmd.AddCommand(deleteMailServerConfigCommand()) + + for _, command := range registerJobTimeoutCmd.Commands() { + command.SilenceUsage = true + } + + return registerJobTimeoutCmd +} + +func getSiteURLSCommand() *cobra.Command { + getSiteURLSCmd := &cobra.Command{ + Use: "get", + Short: "Command to get site urls configured in GoCD server [https://api.gocd.org/current/#get-siteurls-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + response, err := client.GetSiteURL() + if err != nil { + return err + } + + return cliRenderer.Render(response) + }, + } + + return getSiteURLSCmd +} + +func createUpdateSiteURLSCommand() *cobra.Command { + var siteURL, secureSiteURL string + + createUpdateSiteURLSCmd := &cobra.Command{ + Use: "create-or-update", + Short: "Command to create/update site urls configured in GoCD server [https://api.gocd.org/current/#create-or-update-siteurls-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + siteURLConfig := gocd.SiteURLConfig{ + SiteURL: siteURL, + SecureSiteURL: secureSiteURL, + } + + response, err := client.CreateOrUpdateSiteURL(siteURLConfig) + if err != nil { + return err + } + + return cliRenderer.Render(response) + }, + } + + createUpdateSiteURLSCmd.PersistentFlags().StringVarP(&siteURL, "url", "", "", + "the site URL to be used by GoCD Server to generate links for emails, feeds, etc. Format: [protocol]://[host]:[port]") + createUpdateSiteURLSCmd.PersistentFlags().StringVarP(&secureSiteURL, "secure-url", "", "", + "if you wish that your primary site URL be HTTP, but still want to have HTTPS endpoints for the features that require SSL") + + if err := createUpdateSiteURLSCmd.MarkPersistentFlagRequired("url"); err != nil { + cliLogger.Fatalf("%v", err) + } + + return createUpdateSiteURLSCmd +} + +func artifactConfigGetCommand() *cobra.Command { + artifactConfigGetCmd := &cobra.Command{ + Use: "get", + Short: "Command to get artifact configurations from GoCD server [https://api.gocd.org/current/#get-artifacts-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + response, err := client.GetArtifactConfig() + if err != nil { + return err + } + + return cliRenderer.Render(response) + }, + } + + return artifactConfigGetCmd +} + +func artifactConfigUpdateCommand() *cobra.Command { + var artifactDir string + var purgeStartDiskSpace, purgeUptoDiskSpace float64 + + artifactConfigUpdateCmd := &cobra.Command{ + Use: "update", + Short: "Command to UPDATE the artifact configuration in GoCd [https://api.gocd.org/current/#update-artifacts-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + response, err := client.GetArtifactConfig() + if err != nil { + return err + } + + if len(artifactDir) != 0 { + response.ArtifactsDir = artifactDir + } + + response.PurgeSettings.PurgeStartDiskSpace = purgeStartDiskSpace + response.PurgeSettings.PurgeUptoDiskSpace = purgeUptoDiskSpace + + env, err := client.UpdateArtifactConfig(response) + if err != nil { + return err + } + + if err = cliRenderer.Render("artifact config updated successfully"); err != nil { + return err + } + + return cliRenderer.Render(env) + }, + } + + artifactConfigUpdateCmd.PersistentFlags().StringVarP(&artifactDir, "artifacts-dir", "", "", + "the directory where GoCD has to store its information, including artefacts published by jobs, "+ + "can be an absolute path or a relative path, which will take the server-installed directory as the root") + artifactConfigUpdateCmd.PersistentFlags().Float64VarP(&purgeStartDiskSpace, "purge-start-disk-space", "", 0, + "GoCD starts purging artefacts when disk space is lower than this value") + artifactConfigUpdateCmd.PersistentFlags().Float64VarP(&purgeUptoDiskSpace, "purge-upto-disk-space", "", 0, + "GoCD purges artefacts until available disk space is greater than this value") + + return artifactConfigUpdateCmd +} + +func getJobTimeoutCommand() *cobra.Command { + getJobTimeoutCmd := &cobra.Command{ + Use: "get", + Short: "Command to get default job timeout GoCD server [https://api.gocd.org/current/#get-jobtimeout-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + response, err := client.GetDefaultJobTimeout() + if err != nil { + return fmt.Errorf("fetching default job timeout errored with: %w", err) + } + + return cliRenderer.Render(response) + }, + } + + return getJobTimeoutCmd +} + +func updateJobTimeoutCommand() *cobra.Command { + var jobTimeout int + + updateJobTimeoutCmd := &cobra.Command{ + Use: "update", + Short: "Command to update default job timeout in GoCD server [https://api.gocd.org/current/#update-job-timeout-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + if err := client.UpdateDefaultJobTimeout(jobTimeout); err != nil { + return fmt.Errorf("updating default job timeout errored with: %w", err) + } + + return cliRenderer.Render("default job timeout updated successfully") + }, + } + + updateJobTimeoutCmd.PersistentFlags().IntVarP(&jobTimeout, "timeout", "", 0, + "default timeout value in minutes for cancelling the hung jobs.") + + if err := updateJobTimeoutCmd.MarkPersistentFlagRequired("timeout"); err != nil { + cliLogger.Fatalf("%v", err) + } + + return updateJobTimeoutCmd +} + +func getMailServerConfigCommand() *cobra.Command { + getMailServerConfigCmd := &cobra.Command{ + Use: "get", + Short: "Command to get mail server configuration in GoCD server [https://api.gocd.org/current/#get-mailserver-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + response, err := client.GetMailServerConfig() + if err != nil { + return err + } + + return cliRenderer.Render(response) + }, + } + + return getMailServerConfigCmd +} + +func createUpdateMailServerConfigCommand() *cobra.Command { + createUpdateMailServerConfigCmd := &cobra.Command{ + Use: "create-or-update", + Short: "Command to create/update mail server config in GoCD server [https://api.gocd.org/current/#create-or-update-mailserver-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + var mailConfig gocd.MailServerConfig + object, err := readObject(cmd) + if err != nil { + return err + } + + switch objType := object.CheckFileType(cliLogger); objType { + case render.FileTypeYAML: + if err = yaml.Unmarshal([]byte(object), &mailConfig); err != nil { + return err + } + case render.FileTypeJSON: + if err = json.Unmarshal([]byte(object), &mailConfig); err != nil { + return err + } + default: + return &errors.UnknownObjectTypeError{Name: objType} + } + + output, err := client.CreateOrUpdateMailServerConfig(mailConfig) + if err != nil { + return err + } + + return cliRenderer.Render(output) + }, + } + + return createUpdateMailServerConfigCmd +} + +func deleteMailServerConfigCommand() *cobra.Command { + deleteMailServerConfigCmd := &cobra.Command{ + Use: "delete", + Short: "Command to delete mail server configuration in GoCD server [https://api.gocd.org/current/#delete-mailserver-config]", + Args: cobra.NoArgs, + PreRunE: setCLIClient, + RunE: func(cmd *cobra.Command, args []string) error { + if err := client.DeleteMailServerConfig(); err != nil { + return err + } + + return cliRenderer.Render("mail server configuration was deleted successfully from GoCD server") + }, + } + + return deleteMailServerConfigCmd +} diff --git a/docs/doc/gocd-cli.md b/docs/doc/gocd-cli.md index abcb4b5..41c1551 100644 --- a/docs/doc/gocd-cli.md +++ b/docs/doc/gocd-cli.md @@ -48,9 +48,10 @@ gocd-cli [flags] * [gocd-cli pipeline-group](gocd-cli_pipeline-group.md) - Command to operate on pipeline groups present in GoCD [https://api.gocd.org/current/#pipeline-group-config] * [gocd-cli plugin](gocd-cli_plugin.md) - Command to operate on plugins present in GoCD * [gocd-cli server](gocd-cli_server.md) - Command to operate on GoCD server health status +* [gocd-cli server-config](gocd-cli_server-config.md) - Command to operate on GoCD server's configurations * [gocd-cli stage](gocd-cli_stage.md) - Command to operate on stages of a pipeline present in GoCD * [gocd-cli user](gocd-cli_user.md) - Command to operate on users in GoCD [https://api.gocd.org/current/#users] * [gocd-cli version](gocd-cli_version.md) - Command to fetch the version of gocd-cli installed * [gocd-cli who-am-i](gocd-cli_who-am-i.md) - Command to check which user being used by GoCD Command line interface -###### Auto generated by spf13/cobra on 17-Jul-2023 +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config.md b/docs/doc/gocd-cli_server-config.md new file mode 100644 index 0000000..3fc433c --- /dev/null +++ b/docs/doc/gocd-cli_server-config.md @@ -0,0 +1,52 @@ +## gocd-cli server-config + +Command to operate on GoCD server's configurations + +### Synopsis + +Command leverages GoCD apis': +https://api.gocd.org/current/#update-artifacts-config, +https://api.gocd.org/current/#create-or-update-mailserver-config, +https://api.gocd.org/current/#update-job-timeout-config, +https://api.gocd.org/current/#create-or-update-siteurls-config + +to operate on GoCD server's configuration + +``` +gocd-cli server-config [flags] +``` + +### Options + +``` + -h, --help help for server-config +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli](gocd-cli.md) - Command line interface for GoCD +* [gocd-cli server-config artifact-config](gocd-cli_server-config_artifact-config.md) - Command to operate on GoCD server's artifact configuration +* [gocd-cli server-config job-timeout](gocd-cli_server-config_job-timeout.md) - Command to operate on GoCD server's default job timeout +* [gocd-cli server-config mail-server-config](gocd-cli_server-config_mail-server-config.md) - Command to operate on GoCD server's mail-server configuration +* [gocd-cli server-config site-url](gocd-cli_server-config_site-url.md) - Command to operate on GoCD server's site-url configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_artifact-config.md b/docs/doc/gocd-cli_server-config_artifact-config.md new file mode 100644 index 0000000..0902195 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_artifact-config.md @@ -0,0 +1,47 @@ +## gocd-cli server-config artifact-config + +Command to operate on GoCD server's artifact configuration + +### Synopsis + +Command leverages GoCD apis': +https://api.gocd.org/current/#get-artifacts-config, +https://api.gocd.org/current/#update-artifacts-config +to operate on artifacts in GoCD + +``` +gocd-cli server-config artifact-config [flags] +``` + +### Options + +``` + -h, --help help for artifact-config +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config](gocd-cli_server-config.md) - Command to operate on GoCD server's configurations +* [gocd-cli server-config artifact-config get](gocd-cli_server-config_artifact-config_get.md) - Command to get artifact configurations from GoCD server [https://api.gocd.org/current/#get-artifacts-config] +* [gocd-cli server-config artifact-config update](gocd-cli_server-config_artifact-config_update.md) - Command to UPDATE the artifact configuration in GoCd [https://api.gocd.org/current/#update-artifacts-config] + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_artifact-config_get.md b/docs/doc/gocd-cli_server-config_artifact-config_get.md new file mode 100644 index 0000000..46701b2 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_artifact-config_get.md @@ -0,0 +1,38 @@ +## gocd-cli server-config artifact-config get + +Command to get artifact configurations from GoCD server [https://api.gocd.org/current/#get-artifacts-config] + +``` +gocd-cli server-config artifact-config get [flags] +``` + +### Options + +``` + -h, --help help for get +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config artifact-config](gocd-cli_server-config_artifact-config.md) - Command to operate on GoCD server's artifact configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_artifact-config_update.md b/docs/doc/gocd-cli_server-config_artifact-config_update.md new file mode 100644 index 0000000..3ba9120 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_artifact-config_update.md @@ -0,0 +1,41 @@ +## gocd-cli server-config artifact-config update + +Command to UPDATE the artifact configuration in GoCd [https://api.gocd.org/current/#update-artifacts-config] + +``` +gocd-cli server-config artifact-config update [flags] +``` + +### Options + +``` + --artifacts-dir string the directory where GoCD has to store its information, including artefacts published by jobs, can be an absolute path or a relative path, which will take the server-installed directory as the root + -h, --help help for update + --purge-start-disk-space float GoCD starts purging artefacts when disk space is lower than this value + --purge-upto-disk-space float GoCD purges artefacts until available disk space is greater than this value +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config artifact-config](gocd-cli_server-config_artifact-config.md) - Command to operate on GoCD server's artifact configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_job-timeout.md b/docs/doc/gocd-cli_server-config_job-timeout.md new file mode 100644 index 0000000..3ec8df7 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_job-timeout.md @@ -0,0 +1,48 @@ +## gocd-cli server-config job-timeout + +Command to operate on GoCD server's default job timeout + +### Synopsis + +Command leverages GoCD apis': +https://api.gocd.org/current/#get-jobtimeout-config, +https://api.gocd.org/current/#update-job-timeout-config + +to operate on GoCD's default job timeout configuration + +``` +gocd-cli server-config job-timeout [flags] +``` + +### Options + +``` + -h, --help help for job-timeout +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config](gocd-cli_server-config.md) - Command to operate on GoCD server's configurations +* [gocd-cli server-config job-timeout get](gocd-cli_server-config_job-timeout_get.md) - Command to get default job timeout GoCD server [https://api.gocd.org/current/#get-jobtimeout-config] +* [gocd-cli server-config job-timeout update](gocd-cli_server-config_job-timeout_update.md) - Command to update default job timeout in GoCD server [https://api.gocd.org/current/#update-job-timeout-config] + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_job-timeout_get.md b/docs/doc/gocd-cli_server-config_job-timeout_get.md new file mode 100644 index 0000000..d926ca0 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_job-timeout_get.md @@ -0,0 +1,38 @@ +## gocd-cli server-config job-timeout get + +Command to get default job timeout GoCD server [https://api.gocd.org/current/#get-jobtimeout-config] + +``` +gocd-cli server-config job-timeout get [flags] +``` + +### Options + +``` + -h, --help help for get +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config job-timeout](gocd-cli_server-config_job-timeout.md) - Command to operate on GoCD server's default job timeout + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_job-timeout_update.md b/docs/doc/gocd-cli_server-config_job-timeout_update.md new file mode 100644 index 0000000..f8409a9 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_job-timeout_update.md @@ -0,0 +1,39 @@ +## gocd-cli server-config job-timeout update + +Command to update default job timeout in GoCD server [https://api.gocd.org/current/#update-job-timeout-config] + +``` +gocd-cli server-config job-timeout update [flags] +``` + +### Options + +``` + -h, --help help for update + --timeout int default timeout value in minutes for cancelling the hung jobs. +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config job-timeout](gocd-cli_server-config_job-timeout.md) - Command to operate on GoCD server's default job timeout + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_mail-server-config.md b/docs/doc/gocd-cli_server-config_mail-server-config.md new file mode 100644 index 0000000..e6c51a9 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_mail-server-config.md @@ -0,0 +1,50 @@ +## gocd-cli server-config mail-server-config + +Command to operate on GoCD server's mail-server configuration + +### Synopsis + +Command leverages GoCD apis': +https://api.gocd.org/current/#get-mailserver-config, +https://api.gocd.org/current/#create-or-update-mailserver-config, +https://api.gocd.org/current/#delete-mailserver-config + +to operate on GoCD server's mail-server configuration' + +``` +gocd-cli server-config mail-server-config [flags] +``` + +### Options + +``` + -h, --help help for mail-server-config +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config](gocd-cli_server-config.md) - Command to operate on GoCD server's configurations +* [gocd-cli server-config mail-server-config create-or-update](gocd-cli_server-config_mail-server-config_create-or-update.md) - Command to create/update mail server config in GoCD server [https://api.gocd.org/current/#create-or-update-mailserver-config] +* [gocd-cli server-config mail-server-config delete](gocd-cli_server-config_mail-server-config_delete.md) - Command to delete mail server configuration in GoCD server [https://api.gocd.org/current/#delete-mailserver-config] +* [gocd-cli server-config mail-server-config get](gocd-cli_server-config_mail-server-config_get.md) - Command to get mail server configuration in GoCD server [https://api.gocd.org/current/#get-mailserver-config] + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_mail-server-config_create-or-update.md b/docs/doc/gocd-cli_server-config_mail-server-config_create-or-update.md new file mode 100644 index 0000000..049406d --- /dev/null +++ b/docs/doc/gocd-cli_server-config_mail-server-config_create-or-update.md @@ -0,0 +1,38 @@ +## gocd-cli server-config mail-server-config create-or-update + +Command to create/update mail server config in GoCD server [https://api.gocd.org/current/#create-or-update-mailserver-config] + +``` +gocd-cli server-config mail-server-config create-or-update [flags] +``` + +### Options + +``` + -h, --help help for create-or-update +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config mail-server-config](gocd-cli_server-config_mail-server-config.md) - Command to operate on GoCD server's mail-server configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_mail-server-config_delete.md b/docs/doc/gocd-cli_server-config_mail-server-config_delete.md new file mode 100644 index 0000000..b2ff890 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_mail-server-config_delete.md @@ -0,0 +1,38 @@ +## gocd-cli server-config mail-server-config delete + +Command to delete mail server configuration in GoCD server [https://api.gocd.org/current/#delete-mailserver-config] + +``` +gocd-cli server-config mail-server-config delete [flags] +``` + +### Options + +``` + -h, --help help for delete +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config mail-server-config](gocd-cli_server-config_mail-server-config.md) - Command to operate on GoCD server's mail-server configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_mail-server-config_get.md b/docs/doc/gocd-cli_server-config_mail-server-config_get.md new file mode 100644 index 0000000..b458151 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_mail-server-config_get.md @@ -0,0 +1,38 @@ +## gocd-cli server-config mail-server-config get + +Command to get mail server configuration in GoCD server [https://api.gocd.org/current/#get-mailserver-config] + +``` +gocd-cli server-config mail-server-config get [flags] +``` + +### Options + +``` + -h, --help help for get +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config mail-server-config](gocd-cli_server-config_mail-server-config.md) - Command to operate on GoCD server's mail-server configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_site-url.md b/docs/doc/gocd-cli_server-config_site-url.md new file mode 100644 index 0000000..dffdaee --- /dev/null +++ b/docs/doc/gocd-cli_server-config_site-url.md @@ -0,0 +1,48 @@ +## gocd-cli server-config site-url + +Command to operate on GoCD server's site-url configuration + +### Synopsis + +Command leverages GoCD apis': +https://api.gocd.org/current/#update-artifacts-config, +https://api.gocd.org/current/#create-or-update-mailserver-config + +to operate on GoCD's site-url configuration + +``` +gocd-cli server-config site-url [flags] +``` + +### Options + +``` + -h, --help help for site-url +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config](gocd-cli_server-config.md) - Command to operate on GoCD server's configurations +* [gocd-cli server-config site-url create-or-update](gocd-cli_server-config_site-url_create-or-update.md) - Command to create/update site urls configured in GoCD server [https://api.gocd.org/current/#create-or-update-siteurls-config] +* [gocd-cli server-config site-url get](gocd-cli_server-config_site-url_get.md) - Command to get site urls configured in GoCD server [https://api.gocd.org/current/#get-siteurls-config] + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_site-url_create-or-update.md b/docs/doc/gocd-cli_server-config_site-url_create-or-update.md new file mode 100644 index 0000000..343210b --- /dev/null +++ b/docs/doc/gocd-cli_server-config_site-url_create-or-update.md @@ -0,0 +1,40 @@ +## gocd-cli server-config site-url create-or-update + +Command to create/update site urls configured in GoCD server [https://api.gocd.org/current/#create-or-update-siteurls-config] + +``` +gocd-cli server-config site-url create-or-update [flags] +``` + +### Options + +``` + -h, --help help for create-or-update + --secure-url string if you wish that your primary site URL be HTTP, but still want to have HTTPS endpoints for the features that require SSL + --url string the site URL to be used by GoCD Server to generate links for emails, feeds, etc. Format: [protocol]://[host]:[port] +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config site-url](gocd-cli_server-config_site-url.md) - Command to operate on GoCD server's site-url configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/docs/doc/gocd-cli_server-config_site-url_get.md b/docs/doc/gocd-cli_server-config_site-url_get.md new file mode 100644 index 0000000..6080c65 --- /dev/null +++ b/docs/doc/gocd-cli_server-config_site-url_get.md @@ -0,0 +1,38 @@ +## gocd-cli server-config site-url get + +Command to get site urls configured in GoCD server [https://api.gocd.org/current/#get-siteurls-config] + +``` +gocd-cli server-config site-url get [flags] +``` + +### Options + +``` + -h, --help help for get +``` + +### Options inherited from parent commands + +``` + -t, --auth-token string token to authenticate with GoCD server, should not be co-used with basic auth (username/password) + --ca-file-path string path to file containing CA cert used to authenticate GoCD server, if you have one + --from-file string file containing configurations of objects that needs to be created in GoCD, config-repo/pipeline-group/environment and etc. + --json enable this to Render output in JSON format + -l, --log-level string log level for gocd cli, log levels supported by [https://github.com/sirupsen/logrus] will work (default "info") + --no-color enable this to Render output in YAML format + -p, --password string password to authenticate with GoCD server + -q, --query string query to filter the results, ex: '.material.attributes.type | id eq git'. this uses library gojsonq beneath + more queries can be found here https://github.com/thedevsaddam/gojsonq/wiki/Queries + --server-url string GoCD server URL base path (default "http://localhost:8153/go") + --skip-cache-config if enabled locally save auth configs would not be used to authenticate GoCD server (path: $HOME/.gocd/auth_config.yaml) + --to-file string file to which the output needs to be written to + -u, --username string username to authenticate with GoCD server + --yaml enable this to Render output in YAML format +``` + +### SEE ALSO + +* [gocd-cli server-config site-url](gocd-cli_server-config_site-url.md) - Command to operate on GoCD server's site-url configuration + +###### Auto generated by spf13/cobra on 10-Aug-2023 diff --git a/go.mod b/go.mod index 970aae0..0de373f 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.19 require ( github.com/ghodss/yaml v1.0.0 - github.com/nikhilsbhat/gocd-sdk-go v0.1.7 + github.com/nikhilsbhat/gocd-sdk-go v0.1.8-0.20230810120458-385cbf32bfe1 github.com/sirupsen/logrus v1.9.3 github.com/spf13/cobra v1.6.1 github.com/stretchr/testify v1.8.2 @@ -24,7 +24,7 @@ require ( github.com/rogpeppe/go-internal v1.9.0 // indirect github.com/russross/blackfriday/v2 v2.1.0 // indirect github.com/spf13/pflag v1.0.5 // indirect - golang.org/x/net v0.12.0 // indirect - golang.org/x/sys v0.10.0 // indirect + golang.org/x/net v0.14.0 // indirect + golang.org/x/sys v0.11.0 // indirect gopkg.in/yaml.v2 v2.4.0 // indirect ) diff --git a/go.sum b/go.sum index 55ee7dd..ec63e93 100644 --- a/go.sum +++ b/go.sum @@ -16,8 +16,8 @@ github.com/jinzhu/copier v0.3.5/go.mod h1:DfbEm0FYsaqBcKcFuvmOZb218JkPGtvSHsKg8S github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE= github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= -github.com/nikhilsbhat/gocd-sdk-go v0.1.7 h1:4pfQpwLHnby1bilJ8aatx3mYz50TxsgjOWxG+DvXKCU= -github.com/nikhilsbhat/gocd-sdk-go v0.1.7/go.mod h1:bIE3Xr7rRzOo0xSX/oa13kXNdFTgCR3JtCh/SontbwM= +github.com/nikhilsbhat/gocd-sdk-go v0.1.8-0.20230810120458-385cbf32bfe1 h1:74wWSQC5aAq1XYoCYUxBX5NJlPyu0NTVGF7uSkvmu0o= +github.com/nikhilsbhat/gocd-sdk-go v0.1.8-0.20230810120458-385cbf32bfe1/go.mod h1:bIE3Xr7rRzOo0xSX/oa13kXNdFTgCR3JtCh/SontbwM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 h1:Jamvg5psRIccs7FGNTlIRMkT8wgtp5eCXdBlqhYGL6U= github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= @@ -45,13 +45,13 @@ github.com/thedevsaddam/gojsonq/v2 v2.5.2/go.mod h1:bv6Xa7kWy82uT0LnXPE2SzGqTj33 github.com/thoas/go-funk v0.9.3 h1:7+nAEx3kn5ZJcnDm2Bh23N2yOtweO14bi//dvRtgLpw= github.com/thoas/go-funk v0.9.3/go.mod h1:+IWnUfUmFO1+WVYQWQtIJHeRRdaIyyYglZN7xzUPe4Q= golang.org/x/net v0.0.0-20211029224645-99673261e6eb/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.12.0 h1:cfawfvKITfUsFCeJIHJrbSxpeu/E81khclypR0GVT50= -golang.org/x/net v0.12.0/go.mod h1:zEVYFnQC7m/vmpQFELhcD1EWkZlX69l4oqgmer6hfKA= +golang.org/x/net v0.14.0 h1:BONx9s002vGdD9umnlX1Po8vOZmrgH34qlHcD1MfK14= +golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.10.0 h1:SqMFp9UcQJZa+pmYuAKjd9xq1f0j5rLcDIk0mj4qAsA= -golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.11.0 h1:eG7RXZHdqOJ1i+0lgLgCpSXAp6M3LYlAo6osgSi0xOM= +golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=