feat: add config dir help
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

See toolshed/organising#470
This commit is contained in:
2025-08-30 12:12:40 +02:00
parent 83ca2a63d1
commit 36d4648114
3 changed files with 69 additions and 39 deletions

View File

@ -55,6 +55,13 @@ func Run(version, commit string) {
Use: i18n.G("abra [cmd] [args] [flags]"), Use: i18n.G("abra [cmd] [args] [flags]"),
// translators: Short description for `abra` binary // 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 🎩🐇"),
// translators: Long description for `abra` binary. This needs to be
// translated in the same way as the Short description so that everything
// matches up
Long: i18n.G(`The Co-op Cloud command-line utility belt 🎩🐇
Config:
$ABRA_DIR: %s`, config.ABRA_DIR),
Version: fmt.Sprintf("%s-%s", version, commit[:7]), Version: fmt.Sprintf("%s-%s", version, commit[:7]),
ValidArgs: []string{ ValidArgs: []string{
// translators: `abra app` command for autocompletion // translators: `abra app` command for autocompletion

View File

@ -7,7 +7,7 @@
msgid "" msgid ""
msgstr "Project-Id-Version: \n" msgstr "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n" "Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2025-08-30 12:02+0200\n" "POT-Creation-Date: 2025-08-30 12:12+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -43,7 +43,7 @@ msgid " # fetch from recipe catalogue\n"
" abra recipe fetch gitea --ssh" " abra recipe fetch gitea --ssh"
msgstr "" msgstr ""
#: ./cli/run.go:129 #: ./cli/run.go:136
msgid " # generate the man pages into /usr/local/share/man/man1\n" msgid " # generate the man pages into /usr/local/share/man/man1\n"
" abra_path=$(which abra) # pass abra absolute path to sudo below\n" " abra_path=$(which abra) # pass abra absolute path to sudo below\n"
" sudo $abra_path man\n" " sudo $abra_path man\n"
@ -827,7 +827,7 @@ msgid "Generate labels for the main recipe service.\n"
msgstr "" msgstr ""
#. translators: Short description for `man` command #. translators: Short description for `man` command
#: ./cli/run.go:128 #: ./cli/run.go:135
msgid "Generate manpage" msgid "Generate manpage"
msgstr "" msgstr ""
@ -1237,6 +1237,17 @@ msgstr ""
msgid "The Co-op Cloud command-line utility belt 🎩🐇" msgid "The Co-op Cloud command-line utility belt 🎩🐇"
msgstr "" msgstr ""
#. translators: Long description for `abra` binary. This needs to be
#. translated in the same way as the Short description so that everything
#. matches up
#: ./cli/run.go:61
#, c-format
msgid "The Co-op Cloud command-line utility belt 🎩🐇\n"
"\n"
"Config:\n"
" $ABRA_DIR: %s"
msgstr ""
#: ./cli/app/secret.go:163 #: ./cli/app/secret.go:163
msgid "This command inserts a secret into an app environment.\n" msgid "This command inserts a secret into an app environment.\n"
"\n" "\n"
@ -1559,7 +1570,7 @@ msgstr ""
msgid "abra app labels 1312.net" msgid "abra app labels 1312.net"
msgstr "" msgstr ""
#: ./cli/run.go:107 #: ./cli/run.go:114
#, c-format #, c-format
msgid "abra version: %s, commit: %s, lang: %s" msgid "abra version: %s, commit: %s, lang: %s"
msgstr "" msgstr ""
@ -1635,7 +1646,7 @@ msgid "ambiguous service list received, prompting for input"
msgstr "" msgstr ""
#. translators: `abra app` command for autocompletion #. translators: `abra app` command for autocompletion
#: ./cli/run.go:61 #: ./cli/run.go:68
msgid "app" msgid "app"
msgstr "" msgstr ""
@ -1693,7 +1704,7 @@ msgid "attempting to scale %s to 1"
msgstr "" msgstr ""
#. translators: `abra autocomplete` command for autocompletion #. translators: `abra autocomplete` command for autocompletion
#: ./cli/run.go:63 #: ./cli/run.go:70
msgid "autocomplete" msgid "autocomplete"
msgstr "" msgstr ""
@ -1860,7 +1871,7 @@ msgid "cannot use [version] and --latest together"
msgstr "" msgstr ""
#. translators: `abra catalogue` command for autocompletion #. translators: `abra catalogue` command for autocompletion
#: ./cli/run.go:65 #: ./cli/run.go:72
msgid "catalogue" msgid "catalogue"
msgstr "" msgstr ""
@ -2328,7 +2339,7 @@ msgstr ""
msgid "domain name for app" msgid "domain name for app"
msgstr "" msgstr ""
#: ./cli/run.go:153 #: ./cli/run.go:160
msgid "don't forget to run 'sudo mandb'" msgid "don't forget to run 'sudo mandb'"
msgstr "" msgstr ""
@ -3245,7 +3256,7 @@ msgstr ""
#. translators: `abra man` aliases. use a comma separated list of aliases #. translators: `abra man` aliases. use a comma separated list of aliases
#. with no spaces in between #. with no spaces in between
#: ./cli/app/list.go:318 ./cli/app/ps.go:205 ./cli/app/secret.go:553 ./cli/app/secret.go:649 ./cli/recipe/list.go:104 ./cli/recipe/upgrade.go:376 ./cli/recipe/version.go:139 ./cli/run.go:121 ./cli/server/list.go:106 ./cli/updater/updater.go:560 #: ./cli/app/list.go:318 ./cli/app/ps.go:205 ./cli/app/secret.go:553 ./cli/app/secret.go:649 ./cli/recipe/list.go:104 ./cli/recipe/upgrade.go:376 ./cli/recipe/version.go:139 ./cli/run.go:128 ./cli/server/list.go:106 ./cli/updater/updater.go:560
msgid "m" msgid "m"
msgstr "" msgstr ""
@ -3268,12 +3279,12 @@ msgid "malformed version pin specification: %s"
msgstr "" msgstr ""
#. translators: `abra man` command for autocompletion #. translators: `abra man` command for autocompletion
#: ./cli/run.go:67 #: ./cli/run.go:74
msgid "man" msgid "man"
msgstr "" msgstr ""
#. translators: `man` command #. translators: `man` command
#: ./cli/run.go:125 #: ./cli/run.go:132
msgid "man [flags]" msgid "man [flags]"
msgstr "" msgstr ""
@ -3733,7 +3744,7 @@ msgstr ""
msgid "polling undeploy status" msgid "polling undeploy status"
msgstr "" msgstr ""
#: ./cli/run.go:178 #: ./cli/run.go:185
msgid "prefer offline & filesystem access" msgid "prefer offline & filesystem access"
msgstr "" msgstr ""
@ -3865,7 +3876,7 @@ msgid "readme: %s, "
msgstr "" msgstr ""
#. translators: `abra recipe` command for autocompletion #. translators: `abra recipe` command for autocompletion
#: ./cli/app/list.go:302 ./cli/app/list.go:309 ./cli/run.go:69 #: ./cli/app/list.go:302 ./cli/app/list.go:309 ./cli/run.go:76
msgid "recipe" msgid "recipe"
msgstr "" msgstr ""
@ -4287,7 +4298,7 @@ msgid "secrets are %s shown again, please save them %s"
msgstr "" msgstr ""
#. translators: `abra server` command for autocompletion #. translators: `abra server` command for autocompletion
#: ./cli/app/list.go:325 ./cli/app/list.go:332 ./cli/app/new.go:333 ./cli/app/new.go:340 ./cli/run.go:71 #: ./cli/app/list.go:325 ./cli/app/list.go:332 ./cli/app/new.go:333 ./cli/app/new.go:340 ./cli/run.go:78
msgid "server" msgid "server"
msgstr "" msgstr ""
@ -4403,7 +4414,7 @@ msgstr ""
msgid "show apps of a specific server" msgid "show apps of a specific server"
msgstr "" msgstr ""
#: ./cli/run.go:162 ./cli/updater/updater.go:507 #: ./cli/run.go:169 ./cli/updater/updater.go:507
msgid "show debug messages" msgid "show debug messages"
msgstr "" msgstr ""
@ -4679,7 +4690,7 @@ msgstr ""
msgid "tmpfs options are incompatible with type volume" msgid "tmpfs options are incompatible with type volume"
msgstr "" msgstr ""
#: ./cli/run.go:170 ./cli/updater/updater.go:515 #: ./cli/run.go:177 ./cli/updater/updater.go:515
msgid "toggle non-interactive mode" msgid "toggle non-interactive mode"
msgstr "" msgstr ""
@ -4763,7 +4774,7 @@ msgstr ""
msgid "unable to convert to JSON: %s" msgid "unable to convert to JSON: %s"
msgstr "" msgstr ""
#: ./cli/run.go:87 #: ./cli/run.go:94
#, c-format #, c-format
msgid "unable to create %s: %s" msgid "unable to create %s: %s"
msgstr "" msgstr ""
@ -4852,7 +4863,7 @@ msgstr ""
msgid "unable to parse '%s' value as bool: %s" msgid "unable to parse '%s' value as bool: %s"
msgstr "" msgstr ""
#: ./cli/run.go:145 #: ./cli/run.go:152
#, c-format #, c-format
msgid "unable to proceed, %s does not exist?" msgid "unable to proceed, %s does not exist?"
msgstr "" msgstr ""
@ -5034,7 +5045,7 @@ msgid "updating %s to %s in %s"
msgstr "" msgstr ""
#. translators: `abra upgrade` command for autocompletion #. translators: `abra upgrade` command for autocompletion
#: ./cli/run.go:73 #: ./cli/run.go:80
msgid "upgrade" msgid "upgrade"
msgstr "" msgstr ""

View File

@ -2,7 +2,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: \n" "Project-Id-Version: \n"
"Report-Msgid-Bugs-To: EMAIL\n" "Report-Msgid-Bugs-To: EMAIL\n"
"POT-Creation-Date: 2025-08-30 12:02+0200\n" "POT-Creation-Date: 2025-08-30 12:12+0200\n"
"PO-Revision-Date: 2025-08-29 21:45+0000\n" "PO-Revision-Date: 2025-08-29 21:45+0000\n"
"Last-Translator: chasqui <chasqui@cryptolab.net>\n" "Last-Translator: chasqui <chasqui@cryptolab.net>\n"
"Language-Team: Spanish <https://translate.coopcloud.tech/projects/co-op-" "Language-Team: Spanish <https://translate.coopcloud.tech/projects/co-op-"
@ -44,7 +44,7 @@ msgid ""
" abra recipe fetch gitea --ssh" " abra recipe fetch gitea --ssh"
msgstr "" msgstr ""
#: cli/run.go:129 #: cli/run.go:136
msgid "" msgid ""
" # generate the man pages into /usr/local/share/man/man1\n" " # generate the man pages into /usr/local/share/man/man1\n"
" abra_path=$(which abra) # pass abra absolute path to sudo below\n" " abra_path=$(which abra) # pass abra absolute path to sudo below\n"
@ -893,7 +893,7 @@ msgid ""
msgstr "" msgstr ""
#. translators: Short description for `man` command #. translators: Short description for `man` command
#: cli/run.go:128 #: cli/run.go:135
msgid "Generate manpage" msgid "Generate manpage"
msgstr "📒 Manual de uso" msgstr "📒 Manual de uso"
@ -1330,6 +1330,18 @@ msgstr "📨 Actualizador automático de Co-op Cloud 🤖 🚀"
msgid "The Co-op Cloud command-line utility belt 🎩🐇" msgid "The Co-op Cloud command-line utility belt 🎩🐇"
msgstr "La varita de mágica de Co-op Cloud 🪄🎩🐇" msgstr "La varita de mágica de Co-op Cloud 🪄🎩🐇"
#. translators: Long description for `abra` binary. This needs to be
#. translated in the same way as the Short description so that everything
#. matches up
#: cli/run.go:61
#, fuzzy, c-format
msgid ""
"The Co-op Cloud command-line utility belt 🎩🐇\n"
"\n"
"Config:\n"
" $ABRA_DIR: %s"
msgstr "La varita de mágica de Co-op Cloud 🪄🎩🐇"
#: cli/app/secret.go:163 #: cli/app/secret.go:163
msgid "" msgid ""
"This command inserts a secret into an app environment.\n" "This command inserts a secret into an app environment.\n"
@ -1712,7 +1724,7 @@ msgstr ""
msgid "abra app labels 1312.net" msgid "abra app labels 1312.net"
msgstr "" msgstr ""
#: cli/run.go:107 #: cli/run.go:114
#, c-format #, c-format
msgid "abra version: %s, commit: %s, lang: %s" msgid "abra version: %s, commit: %s, lang: %s"
msgstr "" msgstr ""
@ -1789,7 +1801,7 @@ msgid "ambiguous service list received, prompting for input"
msgstr "" msgstr ""
#. translators: `abra app` command for autocompletion #. translators: `abra app` command for autocompletion
#: cli/run.go:61 #: cli/run.go:68
msgid "app" msgid "app"
msgstr "plataforma" msgstr "plataforma"
@ -1847,7 +1859,7 @@ msgid "attempting to scale %s to 1"
msgstr "" msgstr ""
#. translators: `abra autocomplete` command for autocompletion #. translators: `abra autocomplete` command for autocompletion
#: cli/run.go:63 #: cli/run.go:70
msgid "autocomplete" msgid "autocomplete"
msgstr "" msgstr ""
@ -2021,7 +2033,7 @@ msgid "cannot use [version] and --latest together"
msgstr "" msgstr ""
#. translators: `abra catalogue` command for autocompletion #. translators: `abra catalogue` command for autocompletion
#: cli/run.go:65 #: cli/run.go:72
msgid "catalogue" msgid "catalogue"
msgstr "" msgstr ""
@ -2503,7 +2515,7 @@ msgstr ""
msgid "domain name for app" msgid "domain name for app"
msgstr "" msgstr ""
#: cli/run.go:153 #: cli/run.go:160
msgid "don't forget to run 'sudo mandb'" msgid "don't forget to run 'sudo mandb'"
msgstr "" msgstr ""
@ -3443,7 +3455,7 @@ msgstr "plataformas"
#. with no spaces in between #. with no spaces in between
#: cli/app/list.go:318 cli/app/ps.go:205 cli/app/secret.go:553 #: cli/app/list.go:318 cli/app/ps.go:205 cli/app/secret.go:553
#: cli/app/secret.go:649 cli/recipe/list.go:104 cli/recipe/upgrade.go:376 #: cli/app/secret.go:649 cli/recipe/list.go:104 cli/recipe/upgrade.go:376
#: cli/recipe/version.go:139 cli/run.go:121 cli/server/list.go:106 #: cli/recipe/version.go:139 cli/run.go:128 cli/server/list.go:106
#: cli/updater/updater.go:560 #: cli/updater/updater.go:560
msgid "m" msgid "m"
msgstr "" msgstr ""
@ -3471,12 +3483,12 @@ msgid "malformed version pin specification: %s"
msgstr "" msgstr ""
#. translators: `abra man` command for autocompletion #. translators: `abra man` command for autocompletion
#: cli/run.go:67 #: cli/run.go:74
msgid "man" msgid "man"
msgstr "" msgstr ""
#. translators: `man` command #. translators: `man` command
#: cli/run.go:125 #: cli/run.go:132
msgid "man [flags]" msgid "man [flags]"
msgstr "manual [flags]" msgstr "manual [flags]"
@ -3957,7 +3969,7 @@ msgstr ""
msgid "polling undeploy status" msgid "polling undeploy status"
msgstr "" msgstr ""
#: cli/run.go:178 #: cli/run.go:185
msgid "prefer offline & filesystem access" msgid "prefer offline & filesystem access"
msgstr "" msgstr ""
@ -4094,7 +4106,7 @@ msgid "readme: %s, "
msgstr "" msgstr ""
#. translators: `abra recipe` command for autocompletion #. translators: `abra recipe` command for autocompletion
#: cli/app/list.go:302 cli/app/list.go:309 cli/run.go:69 #: cli/app/list.go:302 cli/app/list.go:309 cli/run.go:76
msgid "recipe" msgid "recipe"
msgstr "" msgstr ""
@ -4524,7 +4536,7 @@ msgstr ""
#. translators: `abra server` command for autocompletion #. translators: `abra server` command for autocompletion
#: cli/app/list.go:325 cli/app/list.go:332 cli/app/new.go:333 #: cli/app/list.go:325 cli/app/list.go:332 cli/app/new.go:333
#: cli/app/new.go:340 cli/run.go:71 #: cli/app/new.go:340 cli/run.go:78
msgid "server" msgid "server"
msgstr "" msgstr ""
@ -4642,7 +4654,7 @@ msgstr ""
msgid "show apps of a specific server" msgid "show apps of a specific server"
msgstr "" msgstr ""
#: cli/run.go:162 cli/updater/updater.go:507 #: cli/run.go:169 cli/updater/updater.go:507
msgid "show debug messages" msgid "show debug messages"
msgstr "" msgstr ""
@ -4921,7 +4933,7 @@ msgstr ""
msgid "tmpfs options are incompatible with type volume" msgid "tmpfs options are incompatible with type volume"
msgstr "" msgstr ""
#: cli/run.go:170 cli/updater/updater.go:515 #: cli/run.go:177 cli/updater/updater.go:515
msgid "toggle non-interactive mode" msgid "toggle non-interactive mode"
msgstr "" msgstr ""
@ -5006,7 +5018,7 @@ msgstr ""
msgid "unable to convert to JSON: %s" msgid "unable to convert to JSON: %s"
msgstr "" msgstr ""
#: cli/run.go:87 #: cli/run.go:94
#, c-format #, c-format
msgid "unable to create %s: %s" msgid "unable to create %s: %s"
msgstr "" msgstr ""
@ -5096,7 +5108,7 @@ msgstr ""
msgid "unable to parse '%s' value as bool: %s" msgid "unable to parse '%s' value as bool: %s"
msgstr "" msgstr ""
#: cli/run.go:145 #: cli/run.go:152
#, c-format #, c-format
msgid "unable to proceed, %s does not exist?" msgid "unable to proceed, %s does not exist?"
msgstr "" msgstr ""
@ -5285,7 +5297,7 @@ msgid "updating %s to %s in %s"
msgstr "" msgstr ""
#. translators: `abra upgrade` command for autocompletion #. translators: `abra upgrade` command for autocompletion
#: cli/run.go:73 #: cli/run.go:80
msgid "upgrade" msgid "upgrade"
msgstr "" msgstr ""