Skip to content

Template to use when creating an console app using McMaster.Extensions.CommandLineUtils.

License

Notifications You must be signed in to change notification settings

Freeesia/CommandLineUtils.Template

Repository files navigation

CommandLineUtils.Template

Publish NuGet version

Template to use when creating an console app using McMaster.Extensions.CommandLineUtils.

Getting Started

Installation

dotnet new -i StudioFreesia.CommandLineUtils.Template

Creation from template

dotnet new cmd-utils -n <ProjectName>
dotnet restore <ProjectName>

Example

Only root command

  1. Delete Command.cs and [Subcommand(typeof(Command))] in Program.cs:6.
  2. Coding in Program.OnExecute().

SubCommand

  1. Delete Program.OnExecute().
  2. Rename Command.cs and class name to command name.
  3. Coding in <RenamedName>.OnExecute().

About

Template to use when creating an console app using McMaster.Extensions.CommandLineUtils.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages