Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions src/DemoApp/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
"profiles": {
"DemoApp": {
"commandName": "Project",
"commandLineArgs": "root -h"
//"commandLineArgs": "rootCA -h"
//"commandLineArgs": "rootCA \"Test Root CA\" -ou OU1 -ou OU2 -na 08/27/2032"
//"commandLineArgs": "rootCA \"Test Root CA\" -ou OU1 -ou OU2 -o Org -c USA -fp C:/TestCerts/root.pfx -nb 05/17/2022 -na 05/17/2032 -rsa 4096",
//"commandLineArgs": "intermediateCA \"Test Intermediate CA\" \"C:/TestCerts/root.pfx\" -ou OU1 -ou OU2 -o Org -c USA -fp C:/TestCerts/intermediate.pfx -nb 8/25/2022 -na 8/25/2027 -rsa 4096"
"commandLineArgs": "-h"
//"commandLineArgs": "root -h"
//"commandLineArgs": "root \"Test Root CA\" -ou OU1 -ou OU2 -na 08/27/2032"
//"commandLineArgs": "root \"Test Root CA\" -ou OU1 -ou OU2 -o Org -c USA -fp C:/TestCerts/root.pfx -nb 05/17/2022 -na 05/17/2032 -rsa 4096",
//"commandLineArgs": "intermediate \"Test Intermediate CA\" \"C:/TestCerts/root.pfx\" -ou OU1 -ou OU2 -o Org -c USA -fp C:/TestCerts/intermediate.pfx -nb 8/25/2022 -na 8/25/2027 -rsa 4096"
//"commandLineArgs": "ssl \"SSL Cert\" \"C:/TestCerts/intermediate.pfx\" -dns test.mywebsite.com -dns *.mywebsite.com -ip 12.13.14.15 -ip 12.13.14.16 -ou OU1 -ou OU2 -o Org -c USA -pub C:/TestCerts/ssl-public.pfx -prv C:/TestCerts/ssl-private.pfx -nb 8/25/2022 -na 8/25/2023 -rsa 4096"
//"commandLineArgs": "repeat \"Hello\" -n 5 -w 500"
}
}
}
4 changes: 2 additions & 2 deletions src/HelloWorld/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"HelloWorld": {
"commandName": "Project",
//"commandLineArgs": "-h"
"commandLineArgs": "Hi -h"
//"commandLineArgs": "Hi \"Hello everybody..\" --option1 \"My Option 1\" --option2 \"My Option 2\""
"commandLineArgs": "hi -h"
//"commandLineArgs": "hi \"Hello everybody..\" --option1 \"My Option 1\" --option2 \"My Option 2\""

}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ namespace System.CommandLine.Minimal
"""
);
sb.AppendLine();
#region namespace System.CommandLine.Minimal

sb.AppendLine($" // \"{binder.CommandName}\" command, handler: {binder.FullMethodName}");
if(binder.CommandName is not null)
Expand Down Expand Up @@ -123,7 +122,7 @@ public static class Configure{{binder.CommandNameTitleCase}}BuilderExtensions
sb.AppendLine($" public sealed class " + binder.CommandOptionsName + " : CommandOptions");
sb.AppendLine(" {");
// add property accessor for the actual command
sb.AppendLine($" public override Command Command {{ get; }} = new Command(\"{binder.CommandNameTitleCase}\");");
sb.AppendLine($" public override Command Command {{ get; }} = new Command(\"{binder.CommandName}\");");
sb.AppendLine();
// *** public Command, Argument, and Option properties (see above additions to writePublicPropertiesSb)
sb.AppendLine(writePublicPropertiesSb.ToString());
Expand Down Expand Up @@ -210,7 +209,6 @@ public static class Configure{{binder.CommandNameTitleCase}}BuilderExtensions

}

#endregion
// end namespace System.CommandLine.Minimal
sb.AppendLine("}");

Expand Down