Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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());
        }