csharpier icon indicating copy to clipboard operation
csharpier copied to clipboard

Rework the CLI to properly use commands + arguments.

Open belav opened this issue 1 year ago • 2 comments

Currently all arguments are available to csharpier but not all of them apply depending on what you are trying to do with csharpier.

Reworking the cli to use the subcommands from System.CommandLine will help with this.

Some examples of commands reworked

dotnet csharpier format . --loglevel None

dotnet csharpier check . --loglevel None

dotnet csharpier server --port 30000

dotnet csharpier pipe-files

Consider also removing the need to prefix things with dotnet, it is an option when building/publishing a dotnet tool.

belav avatar Aug 17 '24 18:08 belav

Should the log level be an Global option?

stefannikolei avatar Aug 23 '24 19:08 stefannikolei

I would work on this. Could we define the available commands with corresponding options in here?

stefannikolei avatar Aug 23 '24 19:08 stefannikolei