diff --git a/gen.go b/gen.go index 20064a5..37ffae6 100644 --- a/gen.go +++ b/gen.go @@ -34,7 +34,7 @@ func GenCmd() *cli.Command { Usage: gotext.Get("Generate a ALR script from a template"), Aliases: []string{"gen"}, Subcommands: []*cli.Command{ - &cli.Command{ + { Name: "pip", Usage: gotext.Get("Generate a ALR script for a pip module"), Flags: []cli.Flag{ diff --git a/helper.go b/helper.go index 3c2eb17..074e702 100644 --- a/helper.go +++ b/helper.go @@ -36,7 +36,7 @@ import ( ) func HelperCmd() *cli.Command { - var helperListCmd = &cli.Command{ + helperListCmd := &cli.Command{ Name: "list", Usage: gotext.Get("List all the available helper commands"), Aliases: []string{"ls"}, diff --git a/install.go b/install.go index d1fdd1a..54982b4 100644 --- a/install.go +++ b/install.go @@ -37,7 +37,6 @@ import ( ) func InstallCmd() *cli.Command { - return &cli.Command{ Name: "install", Usage: gotext.Get("Install a new package"), diff --git a/internal/translations/default.pot b/internal/translations/default.pot index 56f1c34..0f12447 100644 --- a/internal/translations/default.pot +++ b/internal/translations/default.pot @@ -27,7 +27,7 @@ msgid "" msgstr "" #: build.go:71 -msgid "Error pulling repos" +msgid "Error pulling repositories" msgstr "" #: build.go:78 @@ -66,6 +66,10 @@ msgstr "" msgid "Unable to create new cache directory" msgstr "" +#: fix.go:62 +msgid "Error pulling repos" +msgstr "" + #: fix.go:66 msgid "Done" msgstr "" @@ -102,55 +106,55 @@ msgstr "" msgid "Show all information, not just for the current distro" msgstr "" -#: info.go:59 +#: info.go:57 +msgid "Error initialization database" +msgstr "" + +#: info.go:64 msgid "Command info expected at least 1 argument, got %d" msgstr "" -#: info.go:73 +#: info.go:78 msgid "Error finding packages" msgstr "" -#: info.go:89 +#: info.go:94 msgid "Error parsing os-release file" msgstr "" -#: info.go:98 +#: info.go:103 msgid "Error resolving overrides" msgstr "" -#: info.go:107 info.go:113 +#: info.go:112 info.go:118 msgid "Error encoding script variables" msgstr "" -#: install.go:43 +#: install.go:42 msgid "Install a new package" msgstr "" -#: install.go:57 +#: install.go:56 msgid "Command install expected at least 1 argument, got %d" msgstr "" -#: install.go:70 -msgid "Error pulling repositories" -msgstr "" - -#: install.go:92 +#: install.go:91 msgid "Error getting packages" msgstr "" -#: install.go:101 +#: install.go:100 msgid "Error iterating over packages" msgstr "" -#: install.go:114 +#: install.go:113 msgid "Remove an installed package" msgstr "" -#: install.go:119 +#: install.go:118 msgid "Command remove expected at least 1 argument, got %d" msgstr "" -#: install.go:131 +#: install.go:130 msgid "Error removing packages" msgstr "" @@ -255,10 +259,6 @@ msgstr "" msgid "List ALR repo packages" msgstr "" -#: list.go:54 -msgid "Error initialization database" -msgstr "" - #: list.go:91 msgid "Error listing installed packages" msgstr "" diff --git a/internal/translations/po/ru/default.po b/internal/translations/po/ru/default.po index a48e177..be38515 100644 --- a/internal/translations/po/ru/default.po +++ b/internal/translations/po/ru/default.po @@ -35,7 +35,7 @@ msgid "" msgstr "" #: build.go:71 -msgid "Error pulling repos" +msgid "Error pulling repositories" msgstr "" #: build.go:78 @@ -74,6 +74,10 @@ msgstr "" msgid "Unable to create new cache directory" msgstr "" +#: fix.go:62 +msgid "Error pulling repos" +msgstr "" + #: fix.go:66 msgid "Done" msgstr "" @@ -110,55 +114,55 @@ msgstr "Напечатать информацию о пакете" msgid "Show all information, not just for the current distro" msgstr "Показывать всю информацию, а не только для текущего дистрибутива" -#: info.go:59 +#: info.go:57 +msgid "Error initialization database" +msgstr "" + +#: info.go:64 msgid "Command info expected at least 1 argument, got %d" msgstr "" -#: info.go:73 +#: info.go:78 msgid "Error finding packages" msgstr "" -#: info.go:89 +#: info.go:94 msgid "Error parsing os-release file" msgstr "" -#: info.go:98 +#: info.go:103 msgid "Error resolving overrides" msgstr "" -#: info.go:107 info.go:113 +#: info.go:112 info.go:118 msgid "Error encoding script variables" msgstr "" -#: install.go:43 +#: install.go:42 msgid "Install a new package" msgstr "" -#: install.go:57 +#: install.go:56 msgid "Command install expected at least 1 argument, got %d" msgstr "" -#: install.go:70 -msgid "Error pulling repositories" -msgstr "" - -#: install.go:92 +#: install.go:91 msgid "Error getting packages" msgstr "" -#: install.go:101 +#: install.go:100 msgid "Error iterating over packages" msgstr "" -#: install.go:114 +#: install.go:113 msgid "Remove an installed package" msgstr "" -#: install.go:119 +#: install.go:118 msgid "Command remove expected at least 1 argument, got %d" msgstr "" -#: install.go:131 +#: install.go:130 msgid "Error removing packages" msgstr "" @@ -263,10 +267,6 @@ msgstr "ОШИБКА" msgid "List ALR repo packages" msgstr "" -#: list.go:54 -msgid "Error initialization database" -msgstr "" - #: list.go:91 msgid "Error listing installed packages" msgstr ""