public ReversionCommand(IPublishingApi publishingApi) {
     _publishingApi = publishingApi;
     IsCommand("reversion", "Reversion package");
     HasOption("register", "Register with API", r => Register = r != null);
     HasOption("w|workdir=", SynqStrings.WorkDirStr, r => WorkDir = r);
     HasOption("r|repodir=", SynqStrings.RepoDirStr, r => RepoDir = r);
     HasAdditionalArguments(2, "<package> <newversion>");
 }
Beispiel #2
0
 public YankCommand(IPublishingApi publishingApi) {
     _publishingApi = publishingApi;
     IsCommand("yank", "Yank package");
     HasOption("register", "Register with API", r => Register = r != null);
     HasOption("w|workdir=", SynqStrings.WorkDirStr, r => WorkDir = r);
     HasOption("r|repodir=", SynqStrings.RepoDirStr, r => RepoDir = r);
     AllowsAnyAdditionalArguments("<package> (<package>...)");
 }
 public CommitCommand(IPublishingApi publishingApi) {
     _publishingApi = publishingApi;
     IsCommand("commit", "Commit changes to a repository");
     HasOption("f|force", "Create new package version even if unchanged", f => Force = f != null);
     HasOption("c|create", "Create new package", c => Create = c != null);
     HasOption<int?>("l|limit=", "Limit amount (removes older packages beyond this limit)", r => Limit = r);
     HasOption("n|nodowncase",
         "Do not downcase the relative file path keys. Not recommended due to Windows vs POSIX clients",
         n => NoDownCase = n != null);
     HasOption("r|repodir=", SynqStrings.RepoDirStr, w => RepoDir = w);
     HasOption("p|package=", SynqStrings.PackageStr + "\nRequired if name is not equal to Current folder name",
         w => Package = w);
     HasOption("v|version=", "Desired version", v => Version = v);
     HasOption("register=", "Reserved", r => Register = r);
 }
 public Task<Guid> DeRegister(IPublishingApi api, string name, string version, string registerInfo)
     => api.Publish(BuildPublishModel(name, version, registerInfo));
 public SignalCommand(IPublishingApi publishingApi) {
     _publishingApi = publishingApi;
     IsCommand("signal", "Signal API");
 }
Beispiel #6
0
 public Task <Guid> DeRegister(IPublishingApi api, string registerInfo)
 => api.Publish(BuildPublishModel(registerInfo));