Esempio n. 1
0
        static Options()
        {
            var opts = new List <Option>();

            try
            {
                // Main
                opts.Add(new Option {
                    opt = "m", status = true, action = Menu.Start
                });

                // Views
                Project.List(ref opts);
                Git.List(ref opts);
                Sonar.List(ref opts);
                Task.List(ref opts);
                Build.List(ref opts);
                Adb.List(ref opts);
                Configuration.List(ref opts);
                Information.List(ref opts);

                // Extras
                opts.Add(new Option {
                    opt = "x", status = true, action = Program.Exit
                });

                list = opts;
            }
            catch (Exception Ex)
            {
                Exceptions.General(Ex);
            }
        }
Esempio n. 2
0
        public static void Start()
        {
            _colorify.Clear();

            string name    = Assembly.GetEntryAssembly().GetName().Name.ToUpper().ToString();
            string version = Assembly.GetEntryAssembly().GetCustomAttribute <AssemblyInformationalVersionAttribute>().InformationalVersion;

            Section.Header($" {name} # {version}|{_config.personal.hostName} : {_config.personal.ipAddress} ");

            Status("m");
            Project.Start();
            Git.Start();
            Task.Start();
            Build.Start();
            Sonar.Start();
            Adb.Start();

            Section.Footer();

            Section.HorizontalRule();

            _colorify.Write($"{" Make your choice:",-25}", txtInfo);
            string opt = Console.ReadLine().Trim();

            _colorify.Clear();
            Route(opt);
        }
 public static void Wireless()
 {
     if (!_config.personal.adb.wifiStatus)
     {
         Adb.SelectWireless();
     }
     else
     {
         Adb.Disconnect();
     }
 }
Esempio n. 4
0
 public static void Logcat()
 {
     Adb.SelectLogcat();
 }