mirror of
				https://github.com/nsnail/spectre.console.git
				synced 2025-11-04 18:40:50 +08:00 
			
		
		
		
	Use file scoped namespace declarations
This commit is contained in:
		
				
					committed by
					
						
						Phil Scott
					
				
			
			
				
	
			
			
			
						parent
						
							1dbaf50935
						
					
				
				
					commit
					ec1188b837
				
			@@ -2,29 +2,28 @@ using System.ComponentModel;
 | 
			
		||||
using Demo.Utilities;
 | 
			
		||||
using Spectre.Console.Cli;
 | 
			
		||||
 | 
			
		||||
namespace Demo.Commands
 | 
			
		||||
namespace Demo.Commands;
 | 
			
		||||
 | 
			
		||||
public sealed class AddReferenceCommand : Command<AddReferenceCommand.Settings>
 | 
			
		||||
{
 | 
			
		||||
    public sealed class AddReferenceCommand : Command<AddReferenceCommand.Settings>
 | 
			
		||||
    public sealed class Settings : AddSettings
 | 
			
		||||
    {
 | 
			
		||||
        public sealed class Settings : AddSettings
 | 
			
		||||
        {
 | 
			
		||||
            [CommandArgument(0, "<PROJECTPATH>")]
 | 
			
		||||
            [Description("The package reference to add.")]
 | 
			
		||||
            public string ProjectPath { get; set; }
 | 
			
		||||
        [CommandArgument(0, "<PROJECTPATH>")]
 | 
			
		||||
        [Description("The package reference to add.")]
 | 
			
		||||
        public string ProjectPath { get; set; }
 | 
			
		||||
 | 
			
		||||
            [CommandOption("-f|--framework <FRAMEWORK>")]
 | 
			
		||||
            [Description("Add the reference only when targeting a specific framework.")]
 | 
			
		||||
            public string Framework { get; set; }
 | 
			
		||||
        [CommandOption("-f|--framework <FRAMEWORK>")]
 | 
			
		||||
        [Description("Add the reference only when targeting a specific framework.")]
 | 
			
		||||
        public string Framework { get; set; }
 | 
			
		||||
 | 
			
		||||
            [CommandOption("--interactive")]
 | 
			
		||||
            [Description("Allows the command to stop and wait for user input or action (for example to complete authentication).")]
 | 
			
		||||
            public bool Interactive { get; set; }
 | 
			
		||||
        }
 | 
			
		||||
        [CommandOption("--interactive")]
 | 
			
		||||
        [Description("Allows the command to stop and wait for user input or action (for example to complete authentication).")]
 | 
			
		||||
        public bool Interactive { get; set; }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
        public override int Execute(CommandContext context, Settings settings)
 | 
			
		||||
        {
 | 
			
		||||
            SettingsDumper.Dump(settings);
 | 
			
		||||
            return 0;
 | 
			
		||||
        }
 | 
			
		||||
    public override int Execute(CommandContext context, Settings settings)
 | 
			
		||||
    {
 | 
			
		||||
        SettingsDumper.Dump(settings);
 | 
			
		||||
        return 0;
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user