Template to use when creating an console app using McMaster.Extensions.CommandLineUtils.
dotnet new -i StudioFreesia.CommandLineUtils.Template
dotnet new cmd-utils -n <ProjectName>
dotnet restore <ProjectName>
- Delete
Command.cs
and[Subcommand(typeof(Command))]
inProgram.cs:6
. - Coding in
Program.OnExecute()
.
- Delete
Program.OnExecute()
. - Rename
Command.cs
and class name to command name. - Coding in
<RenamedName>.OnExecute()
.