@@ -0,0 +1,1403 @@
+package de.unistuttgart.iste.rss.bugminer.cli;%0A%0Aimport de.unistuttgart.iste.rss.bugminer.computing.SshConnector;%0Aimport de.unistuttgart.iste.rss.bugminer.model.entities.Project;%0Aimport de.unistuttgart.iste.rss.bugminer.model.repositories.ProjectRepository;%0Aimport org.apache.commons.lang.NotImplementedException;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.shell.core.CommandMarker;%0Aimport org.springframework.shell.core.annotation.CliAvailabilityIndicator;%0Aimport org.springframework.shell.core.annotation.CliCommand;%0Aimport org.springframework.shell.core.annotation.CliOption;%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.Optional;%0A%0A@Component%0Apublic class BugsCommand implements CommandMarker %7B%0A%09@Autowired%0A%09private SshConnector sshConnector;%0A%0A%09@Autowired%0A%09private ProjectsService projectsService;%0A%0A%09@Autowired%0A%09private ProjectRepository projectRepository;%0A%0A%09protected BugsCommand() %7B%0A%09%09// managed bean%0A%09%7D%0A%0A%09@CliCommand(value = %22bugs sync%22, help = %22Synchronize the bugs in a repository with upstream issue tracker%22)%0A%09public String simple(%0A%09%09%09@CliOption(key = %22project%22, mandatory = true, help = %22the project name%22) final String projectName) %7B%0A%09%09Project project = projectRepository.findByName(projectName)%0A%09%09%09%09.orElseThrow(() -%3E new IllegalArgumentException(%22There is no such project%22));%0A%0A%09%09throw new NotImplementedException();%0A%09%7D%0A%7D%0A

Add structure for bugs sync command