Upstream Tyrrrz/CliFx state of the touched files before 72b7d869fc
This commit is contained in:
1 parent
8f11b8ff38
commit
50964082ba
6 files changed
+3
-132
No files matched your search
@@ -31,17 +31,6 @@ internal static class CommandDescriptor
|
||||
""";
|
||||
}
|
||||
|
||||
private static string EmitExamples(IReadOnlyList<string> examples)
|
||||
{
|
||||
if (examples.Count == 0)
|
||||
return "global::System.Array.Empty<string>()";
|
||||
|
||||
// lang=csharp
|
||||
return $$"""
|
||||
new[] { {{string.Join(", ", examples.Select(CSharp.Encode))}} }
|
||||
""";
|
||||
}
|
||||
|
||||
private static string? TryEmitDefaultScalarConverter(ITypeSymbol type)
|
||||
{
|
||||
// Object
|
||||
@@ -533,7 +522,6 @@ internal static class CommandDescriptor
|
||||
new global::CliFx.Binding.CommandDescriptor<{{command.Type.GetGloballyQualifiedName()}}>(
|
||||
{{CSharp.Encode(command.Name)}},
|
||||
{{CSharp.Encode(command.Description)}},
|
||||
{{EmitExamples(command.Examples)}},
|
||||
new global::CliFx.Binding.CommandInputDescriptor[]
|
||||
{
|
||||
{{string.Join(",", command.Inputs
|
||||
|
||||
Reference in new issue
Block a user