public NewCommand(AddOnService addOnService) : base("new", "Create new Komp add-on") { _addOnService = addOnService; AddOption(new NameOption(true)); AddOption(new OutputOption()); }
public AddOnCommand(AddOnService addOnService) : base("addon", "View installed Komp add-ons") { _addOnService = addOnService; AddCommand(new NewCommand(_addOnService)); AddCommand(new PublishCommand(_addOnService)); AddCommand(new InstallCommand(_addOnService)); AddCommand(new UpdateCommand(_addOnService)); }
public KompService( ComponentService componentService, ConfigService configService, TemplateService templateService, AddOnService addOnService) { _componentService = componentService; _configService = configService; _templateService = templateService; _addOnService = addOnService; }
public PublishCommand(AddOnService addOnService) : base("publish", "Publish Komp add-on to NuGet server") { _addOnService = addOnService; }
public InstallCommand(AddOnService addOnService) : base("install", "Install an add-on to Komp") { _addOnService = addOnService; }
public UpdateCommand(AddOnService addOnService) : base("update", "Update a Komp add-on to the newest version") { _addOnService = addOnService; }