public bool Upgrade() { var opts = ""; if (PackConf != null) { opts += $" --conf-file {PackConf.Quote()}"; } if (PackInfo != null) { opts += $" --pack-file {PackInfo.Quote()}"; } var ok = $"pack upgrade {opts}".Run(); return(ok); }
public bool Pack(string versionMask = null) { var opts = ""; if (versionMask != null) { opts += "--set-version " + versionMask; } if (PackConf != null) { opts += $" --conf-file {PackConf.Quote()}"; } if (PackInfo != null) { opts += $" --pack-file {PackInfo.Quote()}"; } var ok = $"pack pack {opts}".Run(); return(ok); }
public bool Init() { var opts = ""; if (PackConf != null) { opts += $" --conf-file {PackConf.Quote()}"; } if (PackInfo != null) { opts += $" --pack-file {PackInfo.Quote()}"; } var ok = $"pack init {opts}".Run(); if (!ok) { return(false); } return(Fill()); }