Skip to content

Commit 13fa632

Browse files
authored
Merge pull request #214 from dusrdev/master
Match benchmark namespace with project name
2 parents a226bcd + a936a9f commit 13fa632

File tree

11 files changed

+20
-28
lines changed

11 files changed

+20
-28
lines changed

sandbox/CliFrameworkBenchmark/Benchmark.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
using BenchmarkDotNet.Attributes;
55
using BenchmarkDotNet.Order;
66
using CliFx;
7-
using Cocona.Benchmark.External.Commands;
7+
using CliFrameworkBenchmarks.Commands;
88
using ConsoleAppFramework;
99
using Spectre.Console.Cli;
1010

11-
namespace Cocona.Benchmark.External;
11+
namespace CliFrameworkBenchmarks;
1212

1313
[Orderer(SummaryOrderPolicy.FastestToSlowest)]
1414
public class Benchmark

sandbox/CliFrameworkBenchmark/Commands/CliFxCommand.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
using CliFx.Attributes;
22
using CliFx.Infrastructure;
33

4-
namespace Cocona.Benchmark.External.Commands;
4+
namespace CliFrameworkBenchmarks.Commands;
55

6-
[CliFx.Attributes.Command]
6+
[Command]
77
public class CliFxCommand : CliFx.ICommand
88
{
99
[CommandOption("str", 's')]

sandbox/CliFrameworkBenchmark/Commands/CliprCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using clipr;
22

3-
namespace Cocona.Benchmark.External.Commands;
3+
namespace CliFrameworkBenchmarks.Commands;
44

55
public class CliprCommand
66
{

sandbox/CliFrameworkBenchmark/Commands/CoconaCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
namespace Cocona.Benchmark.External.Commands;
1+
namespace CliFrameworkBenchmarks.Commands;
22

33
public class CoconaCommand
44
{
55
public void Execute(
6-
[global::Cocona.Option("str", new []{'s'})]
6+
[Cocona.Option("str", new []{'s'})]
77
string? strOption,
8-
[global::Cocona.Option("int", new []{'i'})]
8+
[Cocona.Option("int", new []{'i'})]
99
int intOption,
10-
[global::Cocona.Option("bool", new []{'b'})]
10+
[Cocona.Option("bool", new []{'b'})]
1111
bool boolOption)
1212
{
1313
}

sandbox/CliFrameworkBenchmark/Commands/CommandLineParserCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
namespace Cocona.Benchmark.External.Commands;
1+
namespace CliFrameworkBenchmarks.Commands;
22

33
public class CommandLineParserCommand
44
{
5-
[global::CommandLine.Option('s', "str")]
5+
[CommandLine.Option('s', "str")]
66
public string? StrOption { get; set; }
77

8-
[global::CommandLine.Option('i', "int")]
8+
[CommandLine.Option('i', "int")]
99
public int IntOption { get; set; }
1010

11-
[global::CommandLine.Option('b', "bool")]
11+
[CommandLine.Option('b', "bool")]
1212
public bool BoolOption { get; set; }
1313

1414
public void Execute()

sandbox/CliFrameworkBenchmark/Commands/ConsoleAppFrameworkCommand.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
//using ConsoleAppFramework;
2-
3-
//namespace Cocona.Benchmark.External.Commands;
4-
1+
namespace CliFrameworkBenchmarks.Commands;
52
//public class ConsoleAppFrameworkCommand : ConsoleAppBase
63
//{
74
// public void Execute(
@@ -15,8 +12,6 @@
1512
// }
1613
//}
1714

18-
using ConsoleAppFramework;
19-
2015
public class ConsoleAppFrameworkCommand
2116
{
2217
/// <summary>

sandbox/CliFrameworkBenchmark/Commands/McMasterCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace Cocona.Benchmark.External.Commands;
1+
namespace CliFrameworkBenchmarks.Commands;
22

33
public class McMasterCommand
44
{

sandbox/CliFrameworkBenchmark/Commands/PowerArgsCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using PowerArgs;
22

3-
namespace Cocona.Benchmark.External.Commands;
3+
namespace CliFrameworkBenchmarks.Commands;
44

55
//public class PowerArgsCommand
66
//{

sandbox/CliFrameworkBenchmark/Commands/SpectreConsoleCliCommand.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using Spectre.Console.Cli;
2-
using System.ComponentModel;
32

4-
namespace Cocona.Benchmark.External.Commands;
3+
namespace CliFrameworkBenchmarks.Commands;
54

65
public class SpectreConsoleCliCommand : Command<SpectreConsoleCliCommand.Settings>
76
{

sandbox/CliFrameworkBenchmark/Commands/SystemCommandLineCommand.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
using BenchmarkDotNet.Attributes;
2-
using BenchmarkDotNet.Running;
3-
using System.CommandLine;
1+
using System.CommandLine;
42

5-
namespace Cocona.Benchmark.External.Commands;
3+
namespace CliFrameworkBenchmarks.Commands;
64

75
public class SystemCommandLineCommand
86
{

0 commit comments

Comments
 (0)