22using Moryx . Cli . Template . Extensions ;
33using Moryx . Cli . Template ;
44using Moryx . Cli . Template . Models ;
5- using System . Diagnostics . CodeAnalysis ;
65using Moryx . Cli . Commands . Extensions ;
76
87namespace Moryx . Cli . Commands
98{
109 public static class CreateNew
1110 {
12- public static CommandResult Solution ( NewOptions options , [ NotNull ] Action < string > onStatus )
11+ public static CommandResult Solution ( NewOptions options , Action < string > onStatus )
1312 {
1413 var solutionName = options . Name ! ;
1514 if ( Directory . Exists ( solutionName ) )
@@ -21,7 +20,7 @@ public static CommandResult Solution(NewOptions options, [NotNull] Action<string
2120 var settings = config . AsTemplateSettings ( dir , solutionName ) ;
2221 settings . Pull = options . Pull ;
2322
24- return CommandBase . Exec ( settings , ( filenames ) =>
23+ return CommandBase . Exec ( settings , _ =>
2524 {
2625 Directory . CreateDirectory ( solutionName ) ;
2726 CreateBareSolution ( settings ) ;
@@ -74,12 +73,12 @@ private static void InitializeGitRepo(string solutionName, Action<string> onStat
7473 {
7574 var initialDirectory = Environment . CurrentDirectory ;
7675 Directory . SetCurrentDirectory ( Path . Combine ( Environment . CurrentDirectory , solutionName ) ) ;
77- var result = TemplateRepository . ExecCommanLine ( "git init" , onStatus ) ;
76+ var result = TemplateRepository . ExecCommandLine ( "git init" , onStatus ) ;
7877 if ( result == 0 )
7978 {
80- TemplateRepository . ExecCommanLine ( "git checkout -b main" , onStatus ) ;
81- TemplateRepository . ExecCommanLine ( "git add --all" , onStatus ) ;
82- TemplateRepository . ExecCommanLine ( $ "git commit -am \" Initial commit for { solutionName } \" ", onStatus ) ;
79+ TemplateRepository . ExecCommandLine ( "git checkout -b main" , onStatus ) ;
80+ TemplateRepository . ExecCommandLine ( "git add --all" , onStatus ) ;
81+ TemplateRepository . ExecCommandLine ( $ "git commit -am \" Initial commit for { solutionName } \" ", onStatus ) ;
8382 onStatus ( "Initialized Git repository" ) ;
8483 }
8584 else
0 commit comments