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); }
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); } }
public static void Status(string sel = null) { try { _config.personal.ipAddress = Network.GetLocalIPv4(); if (!String.IsNullOrEmpty(sel)) { _config.personal.menu.selectedOption = sel; } string dirPath = _path.Combine(_config.path.development, _config.path.workspace, _config.path.project, _config.personal.selected.project); Project.Status(dirPath); Git.Status(dirPath); Sonar.Status(); Task.Status(); Build.Status(); Configuration.Status(); } catch (Exception Ex) { Exceptions.General(Ex); } }