Beispiel #1
0
        public NewCommand(AddOnService addOnService)
            : base("new", "Create new Komp add-on")
        {
            _addOnService = addOnService;

            AddOption(new NameOption(true));
            AddOption(new OutputOption());
        }
Beispiel #2
0
        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));
        }
Beispiel #3
0
 public KompService(
     ComponentService componentService,
     ConfigService configService,
     TemplateService templateService,
     AddOnService addOnService)
 {
     _componentService = componentService;
     _configService    = configService;
     _templateService  = templateService;
     _addOnService     = addOnService;
 }
Beispiel #4
0
 public PublishCommand(AddOnService addOnService)
     : base("publish", "Publish Komp add-on to NuGet server")
 {
     _addOnService = addOnService;
 }
Beispiel #5
0
 public InstallCommand(AddOnService addOnService)
     : base("install", "Install an add-on to Komp")
 {
     _addOnService = addOnService;
 }
Beispiel #6
0
 public UpdateCommand(AddOnService addOnService)
     : base("update", "Update a Komp add-on to the newest version")
 {
     _addOnService = addOnService;
 }