Esempio n. 1
0
        private static void Main(string[] args)
        {
            if (args == null || args.Length < 2)
            {
                return;
            }

            var fn = args[0];

            if (fn == "repull")
            {
                var remote = args[1];

                if (Common.SafeIndex(args, 2, out var bvu))
                {
                    var bu = bvu.Last().ToString();
                    var bv = long.Parse(bvu.SubstringBefore(bu));

                    CopyConvert.BlockValue = bv;
                    CopyConvert.BlockUnit  = bu;
                }

                Common.SafeIndex(args, 3, out var dest);


                CopyConvert.Repull(remote, dest);
            }
            else if (fn == "setup")
            {
                Android.Setup();
            }
            else if (fn == "reset")
            {
                Android.Reset();
            }
            else
            {
                Console.WriteLine("Command/verb not recognized or implemented: {0}", fn);
            }
        }
Esempio n. 2
0
 static CopyConvert()
 {
     Android.Setup();
 }