diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.it.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.it.resx new file mode 100644 index 000000000..144b8b793 --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.it.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ARGOMENTI + + + COMANDO + + + COMANDI + + + PREDEFINITO + + + DESCRIZIONE + + + ESEMPI + + + OPZIONI + + + Visualizza le informazioni di aiuto + + + Visualizza le informazioni sulla versione + + + USO + + \ No newline at end of file diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.ja.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.ja.resx new file mode 100644 index 000000000..bbe54d037 --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.ja.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 引数 + + + コマンド + + + コマンド群 + + + デフォルト + + + 説明 + + + + + + オプション + + + ヘルプ情報を表示 + + + バージョン情報を表示 + + + 使用法 + + \ No newline at end of file diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.ko.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.ko.resx new file mode 100644 index 000000000..fab73bcec --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.ko.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 인수 + + + 명령 + + + 명령어 + + + 기본값 + + + 설명 + + + 예시 + + + 옵션 + + + 도움말 정보를 출력 + + + 버전 정보를 출력 + + + 사용법 + + \ No newline at end of file diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.pt.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.pt.resx new file mode 100644 index 000000000..87420ec5b --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.pt.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + ARGUMENTOS + + + COMANDO + + + COMANDOS + + + PADRÃO + + + DESCRIÇÃO + + + EXEMPLOS + + + OPÇÕES + + + Exibe informações de ajuda + + + Exibe informações de versão + + + USO + + \ No newline at end of file diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.ru.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.ru.resx new file mode 100644 index 000000000..aebe37ccd --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.ru.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + АРГУМЕНТЫ + + + КОМАНДА + + + КОМАНДЫ + + + ПО УМОЛЧАНИЮ + + + ОПИСАНИЕ + + + ПРИМЕРЫ + + + ОПЦИИ + + + Выводит информацию о помощи + + + Выводит информацию о версии + + + ИСПОЛЬЗОВАНИЕ + + \ No newline at end of file diff --git a/src/Spectre.Console.Cli/Resources/HelpProvider.zh-Hans.resx b/src/Spectre.Console.Cli/Resources/HelpProvider.zh-Hans.resx new file mode 100644 index 000000000..737ad9b43 --- /dev/null +++ b/src/Spectre.Console.Cli/Resources/HelpProvider.zh-Hans.resx @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + 参数 + + + 命令 + + + 命令列表 + + + 默认 + + + 描述 + + + 示例 + + + 选项 + + + 显示帮助信息 + + + 显示版本信息 + + + 用法 + + \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_DE.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_DE.verified.txt index 8f21e0057..860bdf43c 100644 --- a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_DE.verified.txt +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_DE.verified.txt @@ -14,6 +14,7 @@ ARGUMENTE: OPTIONEN: STANDARDWERT -h, --help Zeigt Hilfe an + -v, --version Zeigt Versionsinformationen an -a, --alive Indicates whether or not the animal is alive -n, --name --agility 10 The agility between 0 and 100 diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_EN.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_EN.verified.txt index 905156f8a..e10f430c7 100644 --- a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_EN.verified.txt +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_EN.verified.txt @@ -14,6 +14,7 @@ ARGUMENTS: OPTIONS: DEFAULT -h, --help Prints help information + -v, --version Prints version information -a, --alive Indicates whether or not the animal is alive -n, --name --agility 10 The agility between 0 and 100 diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_FR.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_FR.verified.txt index a555c1c1c..be65b45fe 100644 --- a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_FR.verified.txt +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_FR.verified.txt @@ -14,6 +14,7 @@ ARGUMENTS: OPTIONS: DÉFAUT -h, --help Affiche l'aide + -v, --version Affiche la version -a, --alive Indicates whether or not the animal is alive -n, --name --agility 10 The agility between 0 and 100 diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_IT.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_IT.verified.txt new file mode 100644 index 000000000..c5591b1dd --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_IT.verified.txt @@ -0,0 +1,26 @@ +DESCRIZIONE: +The lion command. + +USO: + myapp [LEGS] [OPZIONI] [COMANDO] + +ESEMPI: + myapp 20 --alive + +ARGOMENTI: + The number of teeth the lion has + [LEGS] The number of legs + +OPZIONI: + PREDEFINITO + -h, --help Visualizza le informazioni di aiuto + -v, --version Visualizza le informazioni sulla versione + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +COMANDI: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_JA.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_JA.verified.txt new file mode 100644 index 000000000..a04c006d6 --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_JA.verified.txt @@ -0,0 +1,26 @@ +説明: +The lion command. + +使用法: + myapp [LEGS] [オプション] [コマンド] + +例: + myapp 20 --alive + +引数: + The number of teeth the lion has + [LEGS] The number of legs + +オプション: + デフォルト + -h, --help ヘルプ情報を表示 + -v, --version バージョン情報を表示 + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +コマンド群: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_KO.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_KO.verified.txt new file mode 100644 index 000000000..51fc1537b --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_KO.verified.txt @@ -0,0 +1,26 @@ +설명: +The lion command. + +사용법: + myapp [LEGS] [옵션] [명령] + +예시: + myapp 20 --alive + +인수: + The number of teeth the lion has + [LEGS] The number of legs + +옵션: + 기본값 + -h, --help 도움말 정보를 출력 + -v, --version 버전 정보를 출력 + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +명령어: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_PT.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_PT.verified.txt new file mode 100644 index 000000000..5169a5d8a --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_PT.verified.txt @@ -0,0 +1,26 @@ +DESCRIÇÃO: +The lion command. + +USO: + myapp [LEGS] [OPÇÕES] [COMANDO] + +EXEMPLOS: + myapp 20 --alive + +ARGUMENTOS: + The number of teeth the lion has + [LEGS] The number of legs + +OPÇÕES: + PADRÃO + -h, --help Exibe informações de ajuda + -v, --version Exibe informações de versão + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +COMANDOS: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_RU.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_RU.verified.txt new file mode 100644 index 000000000..f3cfeffe4 --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_RU.verified.txt @@ -0,0 +1,26 @@ +ОПИСАНИЕ: +The lion command. + +ИСПОЛЬЗОВАНИЕ: + myapp [LEGS] [ОПЦИИ] [КОМАНДА] + +ПРИМЕРЫ: + myapp 20 --alive + +АРГУМЕНТЫ: + The number of teeth the lion has + [LEGS] The number of legs + +ОПЦИИ: + ПО УМОЛЧАНИЮ + -h, --help Выводит информацию о помощи + -v, --version Выводит информацию о версии + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +КОМАНДЫ: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_SV.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_SV.verified.txt index 45fd6c0c4..64fd28665 100644 --- a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_SV.verified.txt +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_SV.verified.txt @@ -14,6 +14,7 @@ ARGUMENT: VAL: STANDARD -h, --help Skriver ut hjälpinformation + -v, --version Skriver ut versionsnummer -a, --alive Indicates whether or not the animal is alive -n, --name --agility 10 The agility between 0 and 100 diff --git a/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_ZH-HANS.verified.txt b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_ZH-HANS.verified.txt new file mode 100644 index 000000000..9a46d7a39 --- /dev/null +++ b/src/Tests/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args_Additional.Output_ZH-HANS.verified.txt @@ -0,0 +1,26 @@ +描述: +The lion command. + +用法: + myapp [LEGS] [选项] [命令] + +示例: + myapp 20 --alive + +参数: + The number of teeth the lion has + [LEGS] The number of legs + +选项: + 默认 + -h, --help 显示帮助信息 + -v, --version 显示版本信息 + -a, --alive Indicates whether or not the animal is alive + -n, --name + --agility 10 The agility between 0 and 100 + -c The number of children the lion has + -d Monday, Thursday The days the lion goes hunting + -w, --weight [WEIGHT] The weight of the lion, in kgs + +命令列表: + giraffe The giraffe command \ No newline at end of file diff --git a/src/Tests/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Help.cs b/src/Tests/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Help.cs index 8d3af800f..5422e5187 100644 --- a/src/Tests/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Help.cs +++ b/src/Tests/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Help.cs @@ -303,6 +303,18 @@ public Task Should_Output_Default_Command_When_Command_Has_Required_Parameters_A [InlineData("sv-SE", "SV")] [InlineData("de", "DE")] [InlineData("de-DE", "DE")] + [InlineData("it", "IT")] + [InlineData("it-IT", "IT")] + [InlineData("ja", "JA")] + [InlineData("ja-JP", "JA")] + [InlineData("ko", "KO")] + [InlineData("ko-KR", "KO")] + [InlineData("pt", "PT")] + [InlineData("pt-BR", "PT")] + [InlineData("ru", "RU")] + [InlineData("ru-RU", "RU")] + [InlineData("zh-Hans", "ZH-HANS")] + [InlineData("zh-Hans-CN", "ZH-HANS")] [Expectation("Default_Without_Args_Additional")] public Task Should_Output_Default_Command_And_Additional_Commands_When_Default_Command_Has_Required_Parameters_And_Is_Called_Without_Args_Localised(string culture, string expectationPrefix) { @@ -314,6 +326,7 @@ public Task Should_Output_Default_Command_And_Additional_Commands_When_Default_C configurator.AddExample("20", "--alive"); configurator.SetApplicationCulture(string.IsNullOrEmpty(culture) ? null : new CultureInfo(culture)); configurator.SetApplicationName("myapp"); + configurator.SetApplicationVersion("1.0.0"); configurator.AddCommand("giraffe"); });