This commit is contained in:
Paul Schneider 2018-07-30 11:21:57 +02:00
commit 6e5b27d2f0
6 changed files with 100 additions and 12 deletions

View file

@ -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();