Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 0 additions & 1 deletion samples/HostingPlayground/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Hosting;
using System.CommandLine.NamingConventionBinder;
using Microsoft.Extensions.Hosting;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
System.CommandLine.Hosting
System.CommandLine.Hosting
public static class DirectiveConfigurationExtensions
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLineDirectives(this Microsoft.Extensions.Configuration.IConfigurationBuilder config, System.CommandLine.Parsing.ParseResult commandline, System.String name)
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddCommandLineDirectives(this Microsoft.Extensions.Configuration.IConfigurationBuilder config, System.CommandLine.ParseResult commandline, System.String name)
public static class HostingExtensions
public static OptionsBuilder<TOptions> BindCommandLine<TOptions>(this OptionsBuilder<TOptions> optionsBuilder)
public static Microsoft.Extensions.Hosting.IHost GetHost(this System.CommandLine.Invocation.InvocationContext invocationContext)
public static System.CommandLine.Invocation.InvocationContext GetInvocationContext(this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder)
public static System.CommandLine.Invocation.InvocationContext GetInvocationContext(this Microsoft.Extensions.Hosting.HostBuilderContext context)
public static Microsoft.Extensions.Hosting.IHostBuilder UseCommandHandler<TCommand, THandler>(this Microsoft.Extensions.Hosting.IHostBuilder builder)
public static Microsoft.Extensions.Hosting.IHostBuilder UseCommandHandler(this Microsoft.Extensions.Hosting.IHostBuilder builder, System.Type commandType, System.Type handlerType)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, System.Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = null)
public static System.CommandLine.Builder.CommandLineBuilder UseHost(this System.CommandLine.Builder.CommandLineBuilder builder, System.Func<System.String[],Microsoft.Extensions.Hosting.IHostBuilder> hostBuilderFactory, System.Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = null)
public static System.CommandLine.CommandLineBuilder UseHost(this System.CommandLine.CommandLineBuilder builder, System.Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = null)
public static System.CommandLine.CommandLineBuilder UseHost(this System.CommandLine.CommandLineBuilder builder, System.Func<System.String[],Microsoft.Extensions.Hosting.IHostBuilder> hostBuilderFactory, System.Action<Microsoft.Extensions.Hosting.IHostBuilder> configureHost = null)
public static Microsoft.Extensions.Hosting.IHostBuilder UseInvocationLifetime(this Microsoft.Extensions.Hosting.IHostBuilder host, System.CommandLine.Invocation.InvocationContext invocation, System.Action<InvocationLifetimeOptions> configureOptions = null)
public class InvocationLifetime, Microsoft.Extensions.Hosting.IHostLifetime
.ctor(Microsoft.Extensions.Options.IOptions<InvocationLifetimeOptions> options, Microsoft.Extensions.Hosting.IHostEnvironment environment, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime, System.CommandLine.Invocation.InvocationContext context = null, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory = null)
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Benchmarks.Helpers;
using System.CommandLine.Builder;
using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;
using System.CommandLine.Benchmarks.Helpers;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.Linq;
using BenchmarkDotNet.Attributes;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using BenchmarkDotNet.Attributes;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;
using System.CommandLine.Benchmarks.Helpers;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.Linq;
using System.Threading.Tasks;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Binding;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.DragonFruit/CommandLine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System.Collections.Generic;
using System.CommandLine.Binding;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.CommandLine.Parsing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace System.CommandLine.Generator
[Generator]
public class CommandHandlerSourceGenerator : ISourceGenerator
{
private const string ICommandHandlerType = "System.CommandLine.Invocation.ICommandHandler";
private const string ICommandHandlerType = "System.CommandLine.ICommandHandler";

public void Execute(GeneratorExecutionContext context)
{
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Generator/WellKnownTypes.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ internal class WellKnownTypes
public WellKnownTypes(Compilation compilation, IEqualityComparer<ISymbol?> comparer)
{
Console = GetType("System.CommandLine.IConsole");
ParseResult = GetType("System.CommandLine.Parsing.ParseResult");
ParseResult = GetType("System.CommandLine.ParseResult");
InvocationContext = GetType("System.CommandLine.Invocation.InvocationContext");
HelpBuilder = GetType("System.CommandLine.Help.HelpBuilder");
BindingContext = GetType("System.CommandLine.Binding.BindingContext");
Expand Down
5 changes: 3 additions & 2 deletions src/System.CommandLine.Hosting.Tests/HostingHandlerTest.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System.CommandLine.Binding;
using System.CommandLine.Builder;
using System.CommandLine;
using System.CommandLine.Binding;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Hosting.Tests/HostingTests.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.CommandLine.Binding;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Hosting/HostingExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.CommandLine.Binding;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.NamingConventionBinder;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.CommandLine.Tests.Binding;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine;
using System.CommandLine.Binding;
using System.CommandLine.Invocation;
using System.CommandLine.IO;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Collections.Generic;
using System.CommandLine.Binding;
using System.CommandLine.Invocation;
using System.Linq;

namespace System.CommandLine.NamingConventionBinder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Collections.Generic;
using System.CommandLine.Binding;
using System.CommandLine.Invocation;
using System.Reflection;

namespace System.CommandLine.NamingConventionBinder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

using System.Collections.Generic;
using System.CommandLine.Binding;
using System.CommandLine.Invocation;
using System.Linq;
using System.Reflection;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.NamingConventionBinder;
using System.CommandLine.Parsing;
using System.CommandLine.Rendering.Views;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Binding;
using System.CommandLine.Builder;
using System.Linq;

namespace System.CommandLine.Rendering
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.CommandLine;
using System.CommandLine.Builder;
using System.CommandLine.Parsing;
using System.Threading.Tasks;

Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Suggest/SuggestionDispatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/CommandExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/CompletionTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.CommandLine.Tests.Utility;
using System.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using FluentAssertions;

using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Help;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/Help/HelpBuilderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using FluentAssertions;
using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Help;
using System.IO;
using System.Linq;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;
using System.CommandLine.Invocation;
using System.CommandLine.Parsing;
using System.CommandLine.Tests.Utility;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Binding;
using System.CommandLine.Builder;

using System.CommandLine.Help;
using System.CommandLine.Invocation;
using System.CommandLine.IO;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System.CommandLine.Builder;

using System.CommandLine.IO;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/ParseDirectiveTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using FluentAssertions;
using System.CommandLine.Builder;

using System.CommandLine.IO;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/ParserTests.DoubleDash.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.CommandLine.Tests.Utility;
using FluentAssertions;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/ParserTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.CommandLine.Tests.Utility;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/ResourceLocalizationTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using FluentAssertions;
using System.Linq;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/ResponseFileTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using System.CommandLine.Tests.Utility;
using System.IO;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/SuggestDirectiveTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.IO;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/TestApps/NativeAOT/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;
using System.CommandLine;
using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.Parsing;

Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/TokenReplacementTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using FluentAssertions;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/UseExceptionHandlerTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.IO;
using System.CommandLine.Parsing;
using System.Threading.Tasks;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/UseHelpTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.Collections.Generic;
using System.CommandLine.Builder;

using System.CommandLine.Help;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Parsing;
using FluentAssertions;
using Xunit;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine.Tests/VersionOptionTests.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) .NET Foundation and contributors. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.

using System.CommandLine.Builder;

using System.CommandLine.Invocation;
using System.CommandLine.IO;
using System.CommandLine.Parsing;
Expand Down
2 changes: 1 addition & 1 deletion src/System.CommandLine/Builder/CommandLineBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.CommandLine.Invocation;
using System.CommandLine.Parsing;

namespace System.CommandLine.Builder
namespace System.CommandLine
{
/// <summary>
/// Enables composition of command line configurations.
Expand Down
Loading