abra aplicacion listar output regression after #781 #785

Closed
opened 2026-02-19 13:48:17 +00:00 by 3wordchant · 4 comments
Owner

Now:

➜ LANG=es abra app listar --help
...
  -C, --caos              Ignorar cambios no confirmados en recetas
  -S, --estado            mostrar el estado del despliegue de la aplicación
  -h, --help              help for listar
...

Previously:

➜ LANG=es abra app listar --help
...
Flags:
  -C, --caos              Ignorar cambios no confirmados en recetas
  -S, --estado            mostrar el estado del despliegue de la aplicación
  -m, --maquina           mostrar salida legible por máquina
  -r, --receta string     mostrar aplicaciones de una receta específica
  -s, --servidor string   mostrar aplicaciones de un servidor específico

Flags globales:
  -d, --debug      mostrar mensajes para el debugeo
  -h, --help       Ayuda para el uso de comandos
  -n, --no-input   activar modo no interactivo
  -o, --offline    preferir acceso sin conexión y al sistema de archivos
Now: ``` ➜ LANG=es abra app listar --help ... -C, --caos Ignorar cambios no confirmados en recetas -S, --estado mostrar el estado del despliegue de la aplicación -h, --help help for listar ... ``` Previously: ``` ➜ LANG=es abra app listar --help ... Flags: -C, --caos Ignorar cambios no confirmados en recetas -S, --estado mostrar el estado del despliegue de la aplicación -m, --maquina mostrar salida legible por máquina -r, --receta string mostrar aplicaciones de una receta específica -s, --servidor string mostrar aplicaciones de un servidor específico Flags globales: -d, --debug mostrar mensajes para el debugeo -h, --help Ayuda para el uso de comandos -n, --no-input activar modo no interactivo -o, --offline preferir acceso sin conexión y al sistema de archivos ```
Author
Owner

i.e. -h has moved to a local flag, and we've lost the translation of it 🤔

i.e. `-h` has moved to a local flag, and we've lost the translation of it 🤔
Author
Owner

Further finding: the issue which #781 was fixing actually affects all subcommands, not just app listar:

✗ LANG=es abra app -h
panic: unable to redefine 'h' shorthand in "app" flagset: it's already used for "ayuda" flag

goroutine 1 [running]:
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc0001cf000, 0xc000212a00)
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/flag.go:904 +0x3d4
github.com/spf13/pflag.(*FlagSet).VarPF(0xc0001cf000, {0x1300a68, 0xc0004d50ca}, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, {0xc0004d50e0, 0xc})
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/flag.go:861 +0x105
github.com/spf13/pflag.(*FlagSet).BoolVarP(0xc0001cf000, 0x46290a?, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, 0x82?, {0xc0004d50e0, 0xc})
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/bool.go:55 +0x85
github.com/spf13/pflag.(*FlagSet).BoolP(0xc0001cf000, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, 0x0, {0xc0004d50e0, 0xc})
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/bool.go:80 +0x94
github.com/spf13/cobra.(*Command).InitDefaultHelpFlag(0x1baaf00)
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1229 +0xd0
github.com/spf13/cobra.(*Command).execute(0x1baaf00, {0xc0004394c0, 0x1, 0x1})
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:916 +0x105
github.com/spf13/cobra.(*Command).ExecuteC(0xc000348608)
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1148 +0x3f1
github.com/spf13/cobra.(*Command).Execute(0x1baaf00?)
        /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1071 +0x13
coopcloud.tech/abra/cli.Run({0x119c15c, 0x3}, {0x12fffc0, 0x28})
        /home/user/Projects/CoopCloud/abra/cli/run.go:316 +0x1055
main.main()
        /home/user/Projects/CoopCloud/abra/cmd/abra/main.go:22 +0xa9
Further finding: the issue which #781 was fixing actually affects all subcommands, not just `app listar`: ``` ✗ LANG=es abra app -h panic: unable to redefine 'h' shorthand in "app" flagset: it's already used for "ayuda" flag goroutine 1 [running]: github.com/spf13/pflag.(*FlagSet).AddFlag(0xc0001cf000, 0xc000212a00) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/flag.go:904 +0x3d4 github.com/spf13/pflag.(*FlagSet).VarPF(0xc0001cf000, {0x1300a68, 0xc0004d50ca}, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, {0xc0004d50e0, 0xc}) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/flag.go:861 +0x105 github.com/spf13/pflag.(*FlagSet).BoolVarP(0xc0001cf000, 0x46290a?, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, 0x82?, {0xc0004d50e0, 0xc}) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/bool.go:55 +0x85 github.com/spf13/pflag.(*FlagSet).BoolP(0xc0001cf000, {0x119cac7, 0x4}, {0x12e9cc0, 0x1}, 0x0, {0xc0004d50e0, 0xc}) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/pflag/bool.go:80 +0x94 github.com/spf13/cobra.(*Command).InitDefaultHelpFlag(0x1baaf00) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1229 +0xd0 github.com/spf13/cobra.(*Command).execute(0x1baaf00, {0xc0004394c0, 0x1, 0x1}) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:916 +0x105 github.com/spf13/cobra.(*Command).ExecuteC(0xc000348608) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1148 +0x3f1 github.com/spf13/cobra.(*Command).Execute(0x1baaf00?) /home/user/Projects/CoopCloud/abra/vendor/github.com/spf13/cobra/command.go:1071 +0x13 coopcloud.tech/abra/cli.Run({0x119c15c, 0x3}, {0x12fffc0, 0x28}) /home/user/Projects/CoopCloud/abra/cli/run.go:316 +0x1055 main.main() /home/user/Projects/CoopCloud/abra/cmd/abra/main.go:22 +0xa9 ```
Author
Owner

@decentral1se says:

related: #629
i think it might be a thing like where cobra is not translated internally and blocks us somehow?

@decentral1se says: > related: https://git.coopcloud.tech/toolshed/abra/issues/629 > i think it might be a thing like where cobra is not translated internally and blocks us somehow?
decentral1se added the
bug
label 2026-02-19 17:35:36 +00:00
decentral1se added this to the Abra v0.13 project 2026-02-19 17:35:40 +00:00
decentral1se added the
i18n
label 2026-02-19 17:35:50 +00:00
decentral1se referenced this issue from a commit 2026-02-19 20:19:20 +00:00
decentral1se referenced this issue from a commit 2026-02-19 20:20:57 +00:00
decentral1se referenced this issue from a commit 2026-02-20 09:45:28 +00:00
decentral1se referenced this issue from a commit 2026-02-20 09:46:59 +00:00
decentral1se moved this to Done in Abra v0.13 on 2026-02-20 09:50:32 +00:00
Owner
https://git.coopcloud.tech/toolshed/abra/pulls/786
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: toolshed/abra#785
No description provided.