refact
This commit is contained in:
parent
9c736f6059
commit
6e5b27d2f0
6 changed files with 100 additions and 12 deletions
|
|
@ -1,11 +1,15 @@
|
|||
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Extensions.CommandLineUtils;
|
||||
using NJsonSchema;
|
||||
|
||||
namespace cli
|
||||
{
|
||||
public partial class Program
|
||||
{
|
||||
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
CommandOption rootCommandHelpOption = null;
|
||||
|
|
@ -13,12 +17,15 @@ namespace cli
|
|||
CommandLineApplication cliapp = new CommandLineApplication(false);
|
||||
cliapp.Name = "cli";
|
||||
cliapp.FullName = "Yavsc command line interface";
|
||||
cliapp.Description = "Dnx console for yavsc server side";
|
||||
cliapp.Description = "Dnx console app for yavsc server side";
|
||||
cliapp.ShortVersionGetter = () => "v1.0";
|
||||
cliapp.LongVersionGetter = () => "version 1.0 (stable)";
|
||||
rootCommandHelpOption = cliapp.HelpOption("-? | -h | --help");
|
||||
var command = new SendMailCommandProvider();
|
||||
command.Integrates(cliapp);
|
||||
var gencmd = new GenerateJsonSchema();
|
||||
gencmd.Integrates(cliapp);
|
||||
|
||||
var sb = SendMailCommandProvider.Handle(cliapp);
|
||||
if (args.Length == 0)
|
||||
{
|
||||
cliapp.ShowHint();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue