forked from toolshed/abra
		
	Mark command short descriptions with translators: tag
This commit is contained in:
		| @ -9,5 +9,6 @@ var AppCommand = &cobra.Command{ | |||||||
| 	// translators: `app` command group | 	// translators: `app` command group | ||||||
| 	Use:     i18n.G("app [cmd] [args] [flags]"), | 	Use:     i18n.G("app [cmd] [args] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("a")}, | 	Aliases: []string{i18n.G("a")}, | ||||||
|  | 	// translators: Short description for `app` command group | ||||||
| 	Short:   i18n.G("Manage apps"), | 	Short:   i18n.G("Manage apps"), | ||||||
| } | } | ||||||
|  | |||||||
| @ -15,6 +15,7 @@ var AppBackupListCommand = &cobra.Command{ | |||||||
| 	// translators: `app backup list` command | 	// translators: `app backup list` command | ||||||
| 	Use:     i18n.G("list <domain> [flags]"), | 	Use:     i18n.G("list <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 	// translators: Short description for `app backup list` command | ||||||
| 	Short:   i18n.G("List the contents of a snapshot"), | 	Short:   i18n.G("List the contents of a snapshot"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -66,6 +67,7 @@ var AppBackupDownloadCommand = &cobra.Command{ | |||||||
| 	// translators: `app backup download` command | 	// translators: `app backup download` command | ||||||
| 	Use:     i18n.G("download <domain> [flags]"), | 	Use:     i18n.G("download <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("d")}, | 	Aliases: []string{i18n.G("d")}, | ||||||
|  | 	// translators: Short description for `app backup download` command | ||||||
| 	Short:   i18n.G("Download a snapshot"), | 	Short:   i18n.G("Download a snapshot"), | ||||||
| 	Long: i18n.G(`Downloads a backup.tar.gz to the current working directory. | 	Long: i18n.G(`Downloads a backup.tar.gz to the current working directory. | ||||||
|  |  | ||||||
| @ -136,6 +138,7 @@ var AppBackupCreateCommand = &cobra.Command{ | |||||||
| 	// translators: `app backup create` command | 	// translators: `app backup create` command | ||||||
| 	Use:     i18n.G("create <domain> [flags]"), | 	Use:     i18n.G("create <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("c")}, | 	Aliases: []string{i18n.G("c")}, | ||||||
|  | 	// translators: Short description for `app backup create` command | ||||||
| 	Short:   i18n.G("Create a new snapshot"), | 	Short:   i18n.G("Create a new snapshot"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -181,6 +184,7 @@ var AppBackupSnapshotsCommand = &cobra.Command{ | |||||||
| 	// translators: `app backup snapshots` command | 	// translators: `app backup snapshots` command | ||||||
| 	Use:     i18n.G("snapshots <domain> [flags]"), | 	Use:     i18n.G("snapshots <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("s")}, | 	Aliases: []string{i18n.G("s")}, | ||||||
|  | 	// translators: Short description for `app backup snapshots` command | ||||||
| 	Short:   i18n.G("List all snapshots"), | 	Short:   i18n.G("List all snapshots"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -217,6 +221,7 @@ var AppBackupCommand = &cobra.Command{ | |||||||
| 	// translators: `app backup` command group | 	// translators: `app backup` command group | ||||||
| 	Use:     i18n.G("backup [cmd] [args] [flags]"), | 	Use:     i18n.G("backup [cmd] [args] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("b")}, | 	Aliases: []string{i18n.G("b")}, | ||||||
|  | 	// translators: Short description for `app backup` command group | ||||||
| 	Short:   i18n.G("Manage app backups"), | 	Short:   i18n.G("Manage app backups"), | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
| @ -17,6 +17,7 @@ var AppCheckCommand = &cobra.Command{ | |||||||
| 	// translators: `app check` command | 	// translators: `app check` command | ||||||
| 	Use:     i18n.G("check <domain> [flags]"), | 	Use:     i18n.G("check <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("chk")}, | 	Aliases: []string{i18n.G("chk")}, | ||||||
|  | 	// translators: Short description for `app check` command | ||||||
| 	Short:   i18n.G("Ensure an app is well configured"), | 	Short:   i18n.G("Ensure an app is well configured"), | ||||||
| 	Long: i18n.G(`Compare env vars in both the app ".env" and recipe ".env.sample" file. | 	Long: i18n.G(`Compare env vars in both the app ".env" and recipe ".env.sample" file. | ||||||
|  |  | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ var AppCmdCommand = &cobra.Command{ | |||||||
| 	// translators: `app command` command | 	// translators: `app command` command | ||||||
| 	Use:     i18n.G("command <domain> [service | --local] <cmd> [[args] [flags] | [flags] -- [args]]"), | 	Use:     i18n.G("command <domain> [service | --local] <cmd> [[args] [flags] | [flags] -- [args]]"), | ||||||
| 	Aliases: []string{i18n.G("cmd")}, | 	Aliases: []string{i18n.G("cmd")}, | ||||||
|  | 	// translators: Short description for `app cmd` command | ||||||
| 	Short:   i18n.G("Run app commands"), | 	Short:   i18n.G("Run app commands"), | ||||||
| 	Long: i18n.G(`Run an app specific command. | 	Long: i18n.G(`Run an app specific command. | ||||||
|  |  | ||||||
| @ -194,9 +195,10 @@ does not).`), | |||||||
| } | } | ||||||
|  |  | ||||||
| var AppCmdListCommand = &cobra.Command{ | var AppCmdListCommand = &cobra.Command{ | ||||||
| 	// translators: `app list` command | 	// translators: `app cmd list` command | ||||||
| 	Use:     i18n.G("list <domain> [flags]"), | 	Use:     i18n.G("list <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 	// translators: Short description for `app cmd list` command | ||||||
| 	Short:   i18n.G("List all available commands"), | 	Short:   i18n.G("List all available commands"), | ||||||
| 	Args:    cobra.MinimumNArgs(1), | 	Args:    cobra.MinimumNArgs(1), | ||||||
| 	Run: func(cmd *cobra.Command, args []string) { | 	Run: func(cmd *cobra.Command, args []string) { | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ var AppConfigCommand = &cobra.Command{ | |||||||
| 	// translators: `app config` command | 	// translators: `app config` command | ||||||
| 	Use:     i18n.G("config <domain> [flags]"), | 	Use:     i18n.G("config <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("cfg")}, | 	Aliases: []string{i18n.G("cfg")}, | ||||||
|  | 	// translators: Short description for `app config` command | ||||||
| 	Short:   i18n.G("Edit app config"), | 	Short:   i18n.G("Edit app config"), | ||||||
| 	Example: i18n.G("  abra config 1312.net"), | 	Example: i18n.G("  abra config 1312.net"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
|  | |||||||
| @ -29,6 +29,7 @@ var AppCpCommand = &cobra.Command{ | |||||||
| 	// translators: `app cp` command | 	// translators: `app cp` command | ||||||
| 	Use:     i18n.G("cp <domain> <src> <dst> [flags]"), | 	Use:     i18n.G("cp <domain> <src> <dst> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("c")}, | 	Aliases: []string{i18n.G("c")}, | ||||||
|  | 	// translators: Short description for `app cp` command | ||||||
| 	Short:   i18n.G("Copy files to/from a deployed app service"), | 	Short:   i18n.G("Copy files to/from a deployed app service"), | ||||||
| 	Example: i18n.G(`  # copy myfile.txt to the root of the app service | 	Example: i18n.G(`  # copy myfile.txt to the root of the app service | ||||||
|   abra app cp 1312.net myfile.txt app:/ |   abra app cp 1312.net myfile.txt app:/ | ||||||
|  | |||||||
| @ -28,6 +28,7 @@ var AppDeployCommand = &cobra.Command{ | |||||||
| 	// translators: `app deploy` command | 	// translators: `app deploy` command | ||||||
| 	Use:     i18n.G("deploy <domain> [version] [flags]"), | 	Use:     i18n.G("deploy <domain> [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("d")}, | 	Aliases: []string{i18n.G("d")}, | ||||||
|  | 	// translators: Short description for `app deploy` command | ||||||
| 	Short:   i18n.G("Deploy an app"), | 	Short:   i18n.G("Deploy an app"), | ||||||
| 	Long: i18n.G(`Deploy an app. | 	Long: i18n.G(`Deploy an app. | ||||||
|  |  | ||||||
|  | |||||||
| @ -15,6 +15,7 @@ var AppEnvCommand = &cobra.Command{ | |||||||
| 	// translators: `app env` command | 	// translators: `app env` command | ||||||
| 	Use:     i18n.G("env <domain> [flags]"), | 	Use:     i18n.G("env <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("e")}, | 	Aliases: []string{i18n.G("e")}, | ||||||
|  | 	// translators: Short description for `app env` command | ||||||
| 	Short:   i18n.G("Show app .env values"), | 	Short:   i18n.G("Show app .env values"), | ||||||
| 	Example: i18n.G("  abra app env 1312.net"), | 	Example: i18n.G("  abra app env 1312.net"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
|  | |||||||
| @ -23,6 +23,7 @@ var AppLabelsCommand = &cobra.Command{ | |||||||
| 	// translators: `app labels` command | 	// translators: `app labels` command | ||||||
| 	Use:     i18n.G("labels <domain> [flags]"), | 	Use:     i18n.G("labels <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("lb")}, | 	Aliases: []string{i18n.G("lb")}, | ||||||
|  | 	// translators: Short description for `app labels` command | ||||||
| 	Short:   i18n.G("Show deployment labels"), | 	Short:   i18n.G("Show deployment labels"), | ||||||
| 	Long:    i18n.G("Both local recipe and live deployment labels are shown."), | 	Long:    i18n.G("Both local recipe and live deployment labels are shown."), | ||||||
| 	Example: "  " + i18n.G("abra app labels 1312.net"), | 	Example: "  " + i18n.G("abra app labels 1312.net"), | ||||||
|  | |||||||
| @ -43,6 +43,7 @@ var AppListCommand = &cobra.Command{ | |||||||
| 	// translators: `app list` command | 	// translators: `app list` command | ||||||
| 	Use:     i18n.G("list [flags]"), | 	Use:     i18n.G("list [flags]"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 	// translators: Short description for `app list` command | ||||||
| 	Short:   i18n.G("List all managed apps"), | 	Short:   i18n.G("List all managed apps"), | ||||||
| 	Long: i18n.G(`Generate a report of all managed apps. | 	Long: i18n.G(`Generate a report of all managed apps. | ||||||
|  |  | ||||||
|  | |||||||
| @ -18,6 +18,7 @@ var AppLogsCommand = &cobra.Command{ | |||||||
| 	// translators: `app logs` command | 	// translators: `app logs` command | ||||||
| 	Use:     i18n.G("logs <domain> [service] [flags]"), | 	Use:     i18n.G("logs <domain> [service] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("l")}, | 	Aliases: []string{i18n.G("l")}, | ||||||
|  | 	// translators: Short description for `app logs` command | ||||||
| 	Short:   i18n.G("Tail app logs"), | 	Short:   i18n.G("Tail app logs"), | ||||||
| 	Args:    cobra.RangeArgs(1, 2), | 	Args:    cobra.RangeArgs(1, 2), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
|  | |||||||
| @ -46,6 +46,7 @@ var AppNewCommand = &cobra.Command{ | |||||||
| 	// translators: `app new` command | 	// translators: `app new` command | ||||||
| 	Use:     i18n.G("new [recipe] [version] [flags]"), | 	Use:     i18n.G("new [recipe] [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("n")}, | 	Aliases: []string{i18n.G("n")}, | ||||||
|  | 	// translators: Short description for `app new` command | ||||||
| 	Short:   i18n.G("Create a new app"), | 	Short:   i18n.G("Create a new app"), | ||||||
| 	Long:    appNewDescription, | 	Long:    appNewDescription, | ||||||
| 	Args:    cobra.RangeArgs(0, 2), | 	Args:    cobra.RangeArgs(0, 2), | ||||||
|  | |||||||
| @ -28,6 +28,7 @@ var AppPsCommand = &cobra.Command{ | |||||||
| 	// translators: `app ps` command | 	// translators: `app ps` command | ||||||
| 	Use:     i18n.G("ps <domain> [flags]"), | 	Use:     i18n.G("ps <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("p")}, | 	Aliases: []string{i18n.G("p")}, | ||||||
|  | 	// translators: Short description for `app ps` command | ||||||
| 	Short:   i18n.G("Check app deployment status"), | 	Short:   i18n.G("Check app deployment status"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
|  | |||||||
| @ -19,6 +19,7 @@ var AppRemoveCommand = &cobra.Command{ | |||||||
| 	// translators: `app remove` command | 	// translators: `app remove` command | ||||||
| 	Use:     i18n.G("remove <domain> [flags]"), | 	Use:     i18n.G("remove <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rm")}, | 	Aliases: []string{i18n.G("rm")}, | ||||||
|  | 	// translators: Short description for `app remove` command | ||||||
| 	Short:   i18n.G("Remove all app data, locally and remotely"), | 	Short:   i18n.G("Remove all app data, locally and remotely"), | ||||||
| 	Long: i18n.G(`Remove everything related to an app which is already undeployed. | 	Long: i18n.G(`Remove everything related to an app which is already undeployed. | ||||||
|  |  | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ var AppRestartCommand = &cobra.Command{ | |||||||
| 	// translators: `app restart` command | 	// translators: `app restart` command | ||||||
| 	Use:     i18n.G("restart <domain> [[service] | --all-services] [flags]"), | 	Use:     i18n.G("restart <domain> [[service] | --all-services] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("re")}, | 	Aliases: []string{i18n.G("re")}, | ||||||
|  | 	// translators: Short description for `app restart` command | ||||||
| 	Short:   i18n.G("Restart an app"), | 	Short:   i18n.G("Restart an app"), | ||||||
| 	Long: i18n.G(`This command restarts services within a deployed app. | 	Long: i18n.G(`This command restarts services within a deployed app. | ||||||
|  |  | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ var AppRestoreCommand = &cobra.Command{ | |||||||
| 	// translators: `app restore` command | 	// translators: `app restore` command | ||||||
| 	Use:     i18n.G("restore <domain> [flags]"), | 	Use:     i18n.G("restore <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rs")}, | 	Aliases: []string{i18n.G("rs")}, | ||||||
|  | 	// translators: Short description for `app restore` command | ||||||
| 	Short:   i18n.G("Restore a snapshot"), | 	Short:   i18n.G("Restore a snapshot"), | ||||||
| 	Long: i18n.G(`Snapshots are restored while apps are deployed. | 	Long: i18n.G(`Snapshots are restored while apps are deployed. | ||||||
|  |  | ||||||
|  | |||||||
| @ -25,6 +25,7 @@ var AppRollbackCommand = &cobra.Command{ | |||||||
| 	// translators: `app rollback` command | 	// translators: `app rollback` command | ||||||
| 	Use:     i18n.G("rollback <domain> [version] [flags]"), | 	Use:     i18n.G("rollback <domain> [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rl")}, | 	Aliases: []string{i18n.G("rl")}, | ||||||
|  | 	// translators: Short description for `app rollback` command | ||||||
| 	Short:   i18n.G("Roll an app back to a previous version"), | 	Short:   i18n.G("Roll an app back to a previous version"), | ||||||
| 	Long: i18n.G(`This command rolls an app back to a previous version. | 	Long: i18n.G(`This command rolls an app back to a previous version. | ||||||
|  |  | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ var AppRunCommand = &cobra.Command{ | |||||||
| 	// translators: `app run` command | 	// translators: `app run` command | ||||||
| 	Use:     i18n.G("run <domain> <service> <cmd> [[args] [flags] | [flags] -- [args]]"), | 	Use:     i18n.G("run <domain> <service> <cmd> [[args] [flags] | [flags] -- [args]]"), | ||||||
| 	Aliases: []string{i18n.G("r")}, | 	Aliases: []string{i18n.G("r")}, | ||||||
|  | 	// translators: Short description for `app run` command | ||||||
| 	Short:   i18n.G("Run a command inside a service container"), | 	Short:   i18n.G("Run a command inside a service container"), | ||||||
| 	Example: i18n.G(`  # run <cmd> with args/flags | 	Example: i18n.G(`  # run <cmd> with args/flags | ||||||
|   abra app run 1312.net app -- ls -lha |   abra app run 1312.net app -- ls -lha | ||||||
|  | |||||||
| @ -28,6 +28,7 @@ var AppSecretGenerateCommand = &cobra.Command{ | |||||||
| 	// translators: `app secret generate` command | 	// translators: `app secret generate` command | ||||||
| 	Use:     i18n.G("generate <domain> [[secret] [version] | --all] [flags]"), | 	Use:     i18n.G("generate <domain> [[secret] [version] | --all] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("g")}, | 	Aliases: []string{i18n.G("g")}, | ||||||
|  | 	// translators: Short description for `app secret generate` command | ||||||
| 	Short:   i18n.G("Generate secrets"), | 	Short:   i18n.G("Generate secrets"), | ||||||
| 	Args:    cobra.RangeArgs(1, 3), | 	Args:    cobra.RangeArgs(1, 3), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -149,6 +150,7 @@ var AppSecretInsertCommand = &cobra.Command{ | |||||||
| 	// translators: `app secret insert` command | 	// translators: `app secret insert` command | ||||||
| 	Use:     i18n.G("insert <domain> <secret> <version> [<data>] [flags]"), | 	Use:     i18n.G("insert <domain> <secret> <version> [<data>] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("i")}, | 	Aliases: []string{i18n.G("i")}, | ||||||
|  | 	// translators: Short description for `app secret insert` command | ||||||
| 	Short:   i18n.G("Insert secret"), | 	Short:   i18n.G("Insert secret"), | ||||||
| 	Long: i18n.G(`This command inserts a secret into an app environment. | 	Long: i18n.G(`This command inserts a secret into an app environment. | ||||||
|  |  | ||||||
| @ -323,6 +325,7 @@ var AppSecretRmCommand = &cobra.Command{ | |||||||
| 	// translators: `app secret remove` command | 	// translators: `app secret remove` command | ||||||
| 	Use:     i18n.G("remove <domain> [[secret] | --all] [flags]"), | 	Use:     i18n.G("remove <domain> [[secret] | --all] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rm")}, | 	Aliases: []string{i18n.G("rm")}, | ||||||
|  | 	// translators: Short description for `app secret remove` command | ||||||
| 	Short:   i18n.G("Remove a secret"), | 	Short:   i18n.G("Remove a secret"), | ||||||
| 	Long: i18n.G(`This command removes a secret from an app environment. | 	Long: i18n.G(`This command removes a secret from an app environment. | ||||||
|  |  | ||||||
| @ -437,6 +440,7 @@ var AppSecretLsCommand = &cobra.Command{ | |||||||
| 	// translators: `app secret list` command | 	// translators: `app secret list` command | ||||||
| 	Use:     i18n.G("list <domain>"), | 	Use:     i18n.G("list <domain>"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 	// translators: Short description for `app secret list` command | ||||||
| 	Short:   i18n.G("List all secrets"), | 	Short:   i18n.G("List all secrets"), | ||||||
| 	Args:    cobra.MinimumNArgs(1), | 	Args:    cobra.MinimumNArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -513,6 +517,7 @@ var AppSecretCommand = &cobra.Command{ | |||||||
| 	// translators: `app secret` command group | 	// translators: `app secret` command group | ||||||
| 	Use:     i18n.G("secret [cmd] [args] [flags]"), | 	Use:     i18n.G("secret [cmd] [args] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("s")}, | 	Aliases: []string{i18n.G("s")}, | ||||||
|  | 	// translators: Short description for `app secret` command group | ||||||
| 	Short:   i18n.G("Manage app secrets"), | 	Short:   i18n.G("Manage app secrets"), | ||||||
| } | } | ||||||
|  |  | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ var AppServicesCommand = &cobra.Command{ | |||||||
| 	// translators: `app services` command | 	// translators: `app services` command | ||||||
| 	Use:     i18n.G("services <domain> [flags]"), | 	Use:     i18n.G("services <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("sr")}, | 	Aliases: []string{i18n.G("sr")}, | ||||||
|  | 	// translators: Short description for `app services` command | ||||||
| 	Short:   i18n.G("Display all services of an app"), | 	Short:   i18n.G("Display all services of an app"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ var AppUndeployCommand = &cobra.Command{ | |||||||
| 	// translators: `app undeploy` command | 	// translators: `app undeploy` command | ||||||
| 	Use:     i18n.G("undeploy <domain> [flags]"), | 	Use:     i18n.G("undeploy <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("un")}, | 	Aliases: []string{i18n.G("un")}, | ||||||
|  | 	// translators: Short description for `app undeploy` command | ||||||
| 	Short:   i18n.G("Undeploy an app"), | 	Short:   i18n.G("Undeploy an app"), | ||||||
| 	Long: i18n.G(`This does not destroy any application data. | 	Long: i18n.G(`This does not destroy any application data. | ||||||
|  |  | ||||||
|  | |||||||
| @ -29,6 +29,7 @@ var AppUpgradeCommand = &cobra.Command{ | |||||||
| 	// translators: `app upgrade` command | 	// translators: `app upgrade` command | ||||||
| 	Use:     i18n.G("upgrade <domain> [version] [flags]"), | 	Use:     i18n.G("upgrade <domain> [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("up")}, | 	Aliases: []string{i18n.G("up")}, | ||||||
|  | 	// translators: Short description for `app upgrade` command | ||||||
| 	Short:   i18n.G("Upgrade an app"), | 	Short:   i18n.G("Upgrade an app"), | ||||||
| 	Long: i18n.G(`Upgrade an app. | 	Long: i18n.G(`Upgrade an app. | ||||||
|  |  | ||||||
|  | |||||||
| @ -19,6 +19,7 @@ var AppVolumeListCommand = &cobra.Command{ | |||||||
| 	// translators: `app volume list` command | 	// translators: `app volume list` command | ||||||
| 	Use:     i18n.G("list <domain> [flags]"), | 	Use:     i18n.G("list <domain> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 	// translators: Short description for `app list` command | ||||||
| 	Short:   i18n.G("List volumes associated with an app"), | 	Short:   i18n.G("List volumes associated with an app"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
| @ -76,6 +77,7 @@ var AppVolumeListCommand = &cobra.Command{ | |||||||
| var AppVolumeRemoveCommand = &cobra.Command{ | var AppVolumeRemoveCommand = &cobra.Command{ | ||||||
| 	// translators: `app volume remove` command | 	// translators: `app volume remove` command | ||||||
| 	Use:   i18n.G("remove <domain> [volume] [flags]"), | 	Use:   i18n.G("remove <domain> [volume] [flags]"), | ||||||
|  | 	// translators: Short description for `app volume remove` command | ||||||
| 	Short: i18n.G("Remove volume(s) associated with an app"), | 	Short: i18n.G("Remove volume(s) associated with an app"), | ||||||
| 	Long: i18n.G(`Remove volumes associated with an app. | 	Long: i18n.G(`Remove volumes associated with an app. | ||||||
|  |  | ||||||
|  | |||||||
| @ -25,6 +25,7 @@ var CatalogueSyncCommand = &cobra.Command{ | |||||||
| 	// translators: `catalogue sync` command | 	// translators: `catalogue sync` command | ||||||
| 	Use:     i18n.G("sync [flags]"), | 	Use:     i18n.G("sync [flags]"), | ||||||
| 	Aliases: []string{i18n.G("g")}, | 	Aliases: []string{i18n.G("g")}, | ||||||
|  | 	// translators: Short description for `catalogue sync` command | ||||||
| 	Short:   i18n.G("Sync recipe catalogue for latest changes"), | 	Short:   i18n.G("Sync recipe catalogue for latest changes"), | ||||||
| 	Args:    cobra.NoArgs, | 	Args:    cobra.NoArgs, | ||||||
| 	Run: func(cmd *cobra.Command, args []string) { | 	Run: func(cmd *cobra.Command, args []string) { | ||||||
| @ -44,6 +45,7 @@ var CatalogueGenerateCommand = &cobra.Command{ | |||||||
| 	// translators: `catalogue generate` command | 	// translators: `catalogue generate` command | ||||||
| 	Use:     i18n.G("generate [recipe] [flags]"), | 	Use:     i18n.G("generate [recipe] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("g")}, | 	Aliases: []string{i18n.G("g")}, | ||||||
|  | 	// translators: Short description for `catalogue generate` command | ||||||
| 	Short:   i18n.G("Generate the recipe catalogue"), | 	Short:   i18n.G("Generate the recipe catalogue"), | ||||||
| 	Long: i18n.G(`Generate a new copy of the recipe catalogue. | 	Long: i18n.G(`Generate a new copy of the recipe catalogue. | ||||||
|  |  | ||||||
| @ -266,6 +268,7 @@ your private key and enter your passphrase beforehand. | |||||||
| var CatalogueCommand = &cobra.Command{ | var CatalogueCommand = &cobra.Command{ | ||||||
| 	// translators: `catalogue` command group | 	// translators: `catalogue` command group | ||||||
| 	Use:     i18n.G("catalogue [cmd] [args] [flags]"), | 	Use:     i18n.G("catalogue [cmd] [args] [flags]"), | ||||||
|  | 	// translators: Short description for `catalogue` command group | ||||||
| 	Short:   i18n.G("Manage the recipe catalogue"), | 	Short:   i18n.G("Manage the recipe catalogue"), | ||||||
| 	Aliases: []string{"c"}, | 	Aliases: []string{"c"}, | ||||||
| } | } | ||||||
|  | |||||||
| @ -10,6 +10,7 @@ import ( | |||||||
| var AutocompleteCommand = &cobra.Command{ | var AutocompleteCommand = &cobra.Command{ | ||||||
| 	// translators: `autocomplete` command | 	// translators: `autocomplete` command | ||||||
| 	Use:   i18n.G("autocomplete [bash|zsh|fish|powershell]"), | 	Use:   i18n.G("autocomplete [bash|zsh|fish|powershell]"), | ||||||
|  | 	// translators: Short description for `autocomplete` command | ||||||
| 	Short: i18n.G("Generate autocompletion script"), | 	Short: i18n.G("Generate autocompletion script"), | ||||||
| 	Long: i18n.G(`To load completions: | 	Long: i18n.G(`To load completions: | ||||||
|  |  | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ var RecipeDiffCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe diff` command | 	// translators: `recipe diff` command | ||||||
| 	Use:     i18n.G("diff <recipe> [flags]"), | 	Use:     i18n.G("diff <recipe> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("d")}, | 	Aliases: []string{i18n.G("d")}, | ||||||
|  | 	// translators: Short description for `recipe diff` command | ||||||
| 	Short:   i18n.G("Show unstaged changes in recipe config"), | 	Short:   i18n.G("Show unstaged changes in recipe config"), | ||||||
| 	Long:    i18n.G("This command requires /usr/bin/git."), | 	Long:    i18n.G("This command requires /usr/bin/git."), | ||||||
| 	Args:    cobra.MinimumNArgs(1), | 	Args:    cobra.MinimumNArgs(1), | ||||||
|  | |||||||
| @ -18,6 +18,7 @@ var RecipeFetchCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe fetch` command | 	// translators: `recipe fetch` command | ||||||
| 	Use:     i18n.G("fetch [recipe | --all] [flags]"), | 	Use:     i18n.G("fetch [recipe | --all] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("f")}, | 	Aliases: []string{i18n.G("f")}, | ||||||
|  | 	// translators: Short description for `recipe fetch` command | ||||||
| 	Short:   i18n.G("Clone recipe(s) locally"), | 	Short:   i18n.G("Clone recipe(s) locally"), | ||||||
| 	Long:    i18n.G(`Using "--force/-f" Git syncs an existing recipe. It does not erase unstaged changes.`), | 	Long:    i18n.G(`Using "--force/-f" Git syncs an existing recipe. It does not erase unstaged changes.`), | ||||||
| 	Args:    cobra.RangeArgs(0, 1), | 	Args:    cobra.RangeArgs(0, 1), | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ import ( | |||||||
| var RecipeLintCommand = &cobra.Command{ | var RecipeLintCommand = &cobra.Command{ | ||||||
| 	// translators: `recipe lint` command | 	// translators: `recipe lint` command | ||||||
| 	Use:     i18n.G("lint <recipe> [flags]"), | 	Use:     i18n.G("lint <recipe> [flags]"), | ||||||
|  | 	// translators: Short description for `recipe lint` command | ||||||
| 	Short:   i18n.G("Lint a recipe"), | 	Short:   i18n.G("Lint a recipe"), | ||||||
| 	Aliases: []string{i18n.G("l")}, | 	Aliases: []string{i18n.G("l")}, | ||||||
| 	Args:    cobra.MinimumNArgs(1), | 	Args:    cobra.MinimumNArgs(1), | ||||||
|  | |||||||
| @ -17,6 +17,7 @@ import ( | |||||||
| var RecipeListCommand = &cobra.Command{ | var RecipeListCommand = &cobra.Command{ | ||||||
| 	// translators: `recipe list` command | 	// translators: `recipe list` command | ||||||
| 	Use:     i18n.G("list"), | 	Use:     i18n.G("list"), | ||||||
|  | 	// translators: Short description for `recipe list` command | ||||||
| 	Short:   i18n.G("List recipes"), | 	Short:   i18n.G("List recipes"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
| 	Args:    cobra.NoArgs, | 	Args:    cobra.NoArgs, | ||||||
|  | |||||||
| @ -10,6 +10,7 @@ var RecipeCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe` command group | 	// translators: `recipe` command group | ||||||
| 	Use:     i18n.G("recipe [cmd] [args] [flags]"), | 	Use:     i18n.G("recipe [cmd] [args] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("r")}, | 	Aliases: []string{i18n.G("r")}, | ||||||
|  | 	// translators: Short description for `recipe` command group | ||||||
| 	Short:   i18n.G("Manage recipes"), | 	Short:   i18n.G("Manage recipes"), | ||||||
| 	Long: i18n.G(`A recipe is a blueprint for an app. | 	Long: i18n.G(`A recipe is a blueprint for an app. | ||||||
|  |  | ||||||
|  | |||||||
| @ -27,6 +27,7 @@ var RecipeReleaseCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe release` command | 	// translators: `recipe release` command | ||||||
| 	Use:     i18n.G("release <recipe> [version] [flags]"), | 	Use:     i18n.G("release <recipe> [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rl")}, | 	Aliases: []string{i18n.G("rl")}, | ||||||
|  | 	// translators: Short description for `recipe release` command | ||||||
| 	Short:   i18n.G("Release a new recipe version"), | 	Short:   i18n.G("Release a new recipe version"), | ||||||
| 	Long: i18n.G(`Create a new version of a recipe. | 	Long: i18n.G(`Create a new version of a recipe. | ||||||
|  |  | ||||||
|  | |||||||
| @ -13,6 +13,7 @@ var RecipeResetCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe reset` command | 	// translators: `recipe reset` command | ||||||
| 	Use:     i18n.G("reset <recipe> [flags]"), | 	Use:     i18n.G("reset <recipe> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rs")}, | 	Aliases: []string{i18n.G("rs")}, | ||||||
|  | 	// translators: Short description for `recipe reset` command | ||||||
| 	Short:   i18n.G("Remove all unstaged changes from recipe config"), | 	Short:   i18n.G("Remove all unstaged changes from recipe config"), | ||||||
| 	Long:    i18n.G("WARNING: this will delete your changes. Be Careful."), | 	Long:    i18n.G("WARNING: this will delete your changes. Be Careful."), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ var RecipeSyncCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe sync` command | 	// translators: `recipe sync` command | ||||||
| 	Use:     i18n.G("sync <recipe> [version] [flags]"), | 	Use:     i18n.G("sync <recipe> [version] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("s")}, | 	Aliases: []string{i18n.G("s")}, | ||||||
|  | 	// translators: Short description for `recipe sync` command | ||||||
| 	Short:   i18n.G("Sync recipe version label"), | 	Short:   i18n.G("Sync recipe version label"), | ||||||
| 	Long: i18n.G(`Generate labels for the main recipe service. | 	Long: i18n.G(`Generate labels for the main recipe service. | ||||||
|  |  | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ var RecipeUpgradeCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe upgrade` command | 	// translators: `recipe upgrade` command | ||||||
| 	Use:     i18n.G("upgrade <recipe> [flags]"), | 	Use:     i18n.G("upgrade <recipe> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("u")}, | 	Aliases: []string{i18n.G("u")}, | ||||||
|  | 	// translators: Short description for `recipe upgrade` command | ||||||
| 	Short:   i18n.G("Upgrade recipe image tags"), | 	Short:   i18n.G("Upgrade recipe image tags"), | ||||||
| 	Long: i18n.G(`Upgrade a given <recipe> configuration. | 	Long: i18n.G(`Upgrade a given <recipe> configuration. | ||||||
|  |  | ||||||
|  | |||||||
| @ -17,6 +17,7 @@ var RecipeVersionCommand = &cobra.Command{ | |||||||
| 	// translators: `recipe versions` command | 	// translators: `recipe versions` command | ||||||
| 	Use:     i18n.G("versions <recipe> [flags]"), | 	Use:     i18n.G("versions <recipe> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("v")}, | 	Aliases: []string{i18n.G("v")}, | ||||||
|  | 	// translators: Short description for `recipe versions` command | ||||||
| 	Short:   i18n.G("List recipe versions"), | 	Short:   i18n.G("List recipe versions"), | ||||||
| 	Args:    cobra.ExactArgs(1), | 	Args:    cobra.ExactArgs(1), | ||||||
| 	ValidArgsFunction: func( | 	ValidArgsFunction: func( | ||||||
|  | |||||||
| @ -23,6 +23,7 @@ func Run(version, commit string) { | |||||||
| 	rootCmd := &cobra.Command{ | 	rootCmd := &cobra.Command{ | ||||||
| 		// translators: `abra` binary name | 		// translators: `abra` binary name | ||||||
| 		Use:     i18n.G("abra [cmd] [args] [flags]"), | 		Use:     i18n.G("abra [cmd] [args] [flags]"), | ||||||
|  | 		// translators: Short description for `abra` binary | ||||||
| 		Short:   i18n.G("The Co-op Cloud command-line utility belt 🎩🐇"), | 		Short:   i18n.G("The Co-op Cloud command-line utility belt 🎩🐇"), | ||||||
| 		Version: fmt.Sprintf("%s-%s", version, commit[:7]), | 		Version: fmt.Sprintf("%s-%s", version, commit[:7]), | ||||||
| 		ValidArgs: []string{ | 		ValidArgs: []string{ | ||||||
| @ -82,6 +83,7 @@ func Run(version, commit string) { | |||||||
| 		// translators: `man` command | 		// translators: `man` command | ||||||
| 		Use:     i18n.G("man [flags]"), | 		Use:     i18n.G("man [flags]"), | ||||||
| 		Aliases: []string{"m"}, | 		Aliases: []string{"m"}, | ||||||
|  | 		// translators: Short description for `man` command | ||||||
| 		Short:   i18n.G("Generate manpage"), | 		Short:   i18n.G("Generate manpage"), | ||||||
| 		Example: i18n.G(`  # generate the man pages into /usr/local/share/man/man1 | 		Example: i18n.G(`  # generate the man pages into /usr/local/share/man/man1 | ||||||
|   abra_path=$(which abra)  # pass abra absolute path to sudo below |   abra_path=$(which abra)  # pass abra absolute path to sudo below | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ var ServerAddCommand = &cobra.Command{ | |||||||
| 	// translators: `server add` command | 	// translators: `server add` command | ||||||
| 	Use:     i18n.G("add [[server] | --local] [flags]"), | 	Use:     i18n.G("add [[server] | --local] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("a")}, | 	Aliases: []string{i18n.G("a")}, | ||||||
|  | 		// translators: Short description for `server add` command | ||||||
| 	Short:   i18n.G("Add a new server"), | 	Short:   i18n.G("Add a new server"), | ||||||
| 	Long: i18n.G(`Add a new server to your configuration so that it can be managed by Abra. | 	Long: i18n.G(`Add a new server to your configuration so that it can be managed by Abra. | ||||||
|  |  | ||||||
|  | |||||||
| @ -18,6 +18,7 @@ var ServerListCommand = &cobra.Command{ | |||||||
| 	// translators: `server list` command | 	// translators: `server list` command | ||||||
| 	Use:     i18n.G("list [flags]"), | 	Use:     i18n.G("list [flags]"), | ||||||
| 	Aliases: []string{i18n.G("ls")}, | 	Aliases: []string{i18n.G("ls")}, | ||||||
|  | 		// translators: Short description for `server list` command | ||||||
| 	Short:   i18n.G("List managed servers"), | 	Short:   i18n.G("List managed servers"), | ||||||
| 	Args:    cobra.NoArgs, | 	Args:    cobra.NoArgs, | ||||||
| 	Run: func(cmd *cobra.Command, args []string) { | 	Run: func(cmd *cobra.Command, args []string) { | ||||||
|  | |||||||
| @ -15,6 +15,7 @@ var ServerPruneCommand = &cobra.Command{ | |||||||
| 	// translators: `server prune` command | 	// translators: `server prune` command | ||||||
| 	Use:     i18n.G("prune <server> [flags]"), | 	Use:     i18n.G("prune <server> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("p")}, | 	Aliases: []string{i18n.G("p")}, | ||||||
|  | 	// translators: Short description for `server prune` command | ||||||
| 	Short:   i18n.G("Prune resources on a server"), | 	Short:   i18n.G("Prune resources on a server"), | ||||||
| 	Long: i18n.G(`Prunes unused containers, networks, and dangling images. | 	Long: i18n.G(`Prunes unused containers, networks, and dangling images. | ||||||
|  |  | ||||||
|  | |||||||
| @ -17,6 +17,7 @@ var ServerRemoveCommand = &cobra.Command{ | |||||||
| 	// translators: `server remove` command | 	// translators: `server remove` command | ||||||
| 	Use:     i18n.G("remove <server> [flags]"), | 	Use:     i18n.G("remove <server> [flags]"), | ||||||
| 	Aliases: []string{i18n.G("rm")}, | 	Aliases: []string{i18n.G("rm")}, | ||||||
|  | 	// translators: Short description for `server remove` command | ||||||
| 	Short:   i18n.G("Remove a managed server"), | 	Short:   i18n.G("Remove a managed server"), | ||||||
| 	Long: i18n.G(`Remove a managed server. | 	Long: i18n.G(`Remove a managed server. | ||||||
|  |  | ||||||
|  | |||||||
| @ -10,5 +10,6 @@ var ServerCommand = &cobra.Command{ | |||||||
| 	// translators: `server` command group | 	// translators: `server` command group | ||||||
| 	Use:     i18n.G("server [cmd] [args] [flags]"), | 	Use:     i18n.G("server [cmd] [args] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("s")}, | 	Aliases: []string{i18n.G("s")}, | ||||||
|  | 	// translators: Short description for `server` command group | ||||||
| 	Short:   i18n.G("Manage servers"), | 	Short:   i18n.G("Manage servers"), | ||||||
| } | } | ||||||
|  | |||||||
| @ -35,6 +35,7 @@ var NotifyCommand = &cobra.Command{ | |||||||
| 	// translators: `notify` command | 	// translators: `notify` command | ||||||
| 	Use:     i18n.G("notify [flags]"), | 	Use:     i18n.G("notify [flags]"), | ||||||
| 	Aliases: []string{i18n.G("n")}, | 	Aliases: []string{i18n.G("n")}, | ||||||
|  | 	// translators: Short description for `notify` command | ||||||
| 	Short:   i18n.G("Check for available upgrades"), | 	Short:   i18n.G("Check for available upgrades"), | ||||||
| 	Long: i18n.G(`Notify on new versions for deployed apps. | 	Long: i18n.G(`Notify on new versions for deployed apps. | ||||||
|  |  | ||||||
| @ -75,6 +76,7 @@ var UpgradeCommand = &cobra.Command{ | |||||||
| 	// translators: `app upgrade` command | 	// translators: `app upgrade` command | ||||||
| 	Use:     i18n.G("upgrade [[stack] [recipe] | --all] [flags]"), | 	Use:     i18n.G("upgrade [[stack] [recipe] | --all] [flags]"), | ||||||
| 	Aliases: []string{i18n.G("u")}, | 	Aliases: []string{i18n.G("u")}, | ||||||
|  | 	// translators: Short description for `app upgrade` command | ||||||
| 	Short:   i18n.G("Upgrade apps"), | 	Short:   i18n.G("Upgrade apps"), | ||||||
| 	Long: i18n.G(`Upgrade an app by specifying stack name and recipe.  | 	Long: i18n.G(`Upgrade an app by specifying stack name and recipe.  | ||||||
|  |  | ||||||
| @ -473,6 +475,7 @@ func newKadabraApp(version, commit string) *cobra.Command { | |||||||
| 		// translators: `kadabra` binary name | 		// translators: `kadabra` binary name | ||||||
| 		Use:     i18n.G("kadabra [cmd] [flags]"), | 		Use:     i18n.G("kadabra [cmd] [flags]"), | ||||||
| 		Version: fmt.Sprintf("%s-%s", version, commit[:7]), | 		Version: fmt.Sprintf("%s-%s", version, commit[:7]), | ||||||
|  | 		// translators: Short description for `kababra` binary | ||||||
| 		Short:   i18n.G("The Co-op Cloud auto-updater 🤖 🚀"), | 		Short:   i18n.G("The Co-op Cloud auto-updater 🤖 🚀"), | ||||||
| 		PersistentPreRun: func(cmd *cobra.Command, args []string) { | 		PersistentPreRun: func(cmd *cobra.Command, args []string) { | ||||||
| 			log.Logger.SetStyles(charmLog.DefaultStyles()) | 			log.Logger.SetStyles(charmLog.DefaultStyles()) | ||||||
|  | |||||||
| @ -16,6 +16,7 @@ var UpgradeCommand = &cobra.Command{ | |||||||
| 	// translators: `upgrade` command | 	// translators: `upgrade` command | ||||||
| 	Use:     i18n.G("upgrade [flags]"), | 	Use:     i18n.G("upgrade [flags]"), | ||||||
| 	Aliases: []string{"u"}, | 	Aliases: []string{"u"}, | ||||||
|  | 	// translators: Short description for `upgrade` command | ||||||
| 	Short:   i18n.G("Upgrade abra"), | 	Short:   i18n.G("Upgrade abra"), | ||||||
| 	Long: i18n.G(`Upgrade abra in-place with the latest stable or release candidate. | 	Long: i18n.G(`Upgrade abra in-place with the latest stable or release candidate. | ||||||
|  |  | ||||||
|  | |||||||
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
		Reference in New Issue
	
	Block a user