yavsc/cli/Commands/CiBuildCommand.cs

28 lines
726 B
C#
Raw Normal View History

2018-07-28 01:55:13 +02:00
2018-08-05 04:16:21 +02:00
using cli.Model;
2018-07-28 01:55:13 +02:00
using Microsoft.Extensions.CommandLineUtils;
2018-08-05 04:16:21 +02:00
namespace cli
{
2018-07-28 01:55:13 +02:00
2018-08-05 04:16:21 +02:00
public class CiBuildCommand : ICommander
{
public CommandLineApplication Integrate(CommandLineApplication rootApp)
{
CommandLineApplication ciBuildApp = rootApp.Command("build",
(target) =>
{
target.FullName = "Build this project.";
target.Description = "Build this project, as specified in .paul-ci.json";
target.HelpOption("-? | -h | --help");
}, false);
ciBuildApp.OnExecute(()=>
{
return 0;
});
return ciBuildApp;
}
2018-07-28 01:55:13 +02:00
}
}