public void Start(string alias) { // Check for app commands if (AppForms.HandleForm(alias)) { return; } // Use HelpUrl to open online help if (Executor.ExecuteHelp(Tools, alias)) { return; } // Check for list packages or install if (PluginManager.Handle(alias)) { return; } // Try to find tool to execute if (Executor.ExecuteTool(Tools, alias, Parser, SetError)) { return; } // Try to find Handyman to execute if (Executor.ExecuteHandyman(Handymans, alias, SetError)) { return; } // Fallback execute cmd command Executor.ExecuteFallback(alias); }
public void Start(string alias) { try { // Check for app commands if (AppForms.HandleForm(alias)) { History.Add(alias); return; } // Use HelpUrl to open online help if (Executor.ExecuteHelp(Tools, alias)) { History.Add(alias); return; } // Check for list packages or install if (PluginManager.Handle(alias)) { History.Add(alias); return; } // Try to find tool to execute if (Executor.ExecuteTool(Tools, alias, Parser, SetError)) { History.Add(alias); return; } // Try to find Handyman to execute if (Executor.ExecuteHandyman(Handymans, alias, SetError)) { History.Add(alias); return; } // Fallback execute cmd command Executor.ExecuteFallback(alias); History.Add(alias); Launcher.Current.HideForm(); } catch (Exception e) { SetError(e); } }