Hidden startup, shutodwn and restart

New: Run without console window by default
New: Added NzbDrone.Console to run with console window
New: Shutdown from UI
New: Restart from UI
This commit is contained in:
Mark McDowall 2013-01-06 00:11:14 -08:00
commit 125703a2fa
29 changed files with 504 additions and 98 deletions

View file

@ -31,6 +31,12 @@ namespace NzbDrone.App.Test
[TestCase("/u", ApplicationMode.UninstallService)]
[TestCase("-U", ApplicationMode.UninstallService)]
[TestCase("-u", ApplicationMode.UninstallService)]
[TestCase("s", ApplicationMode.Silent)]
[TestCase("S", ApplicationMode.Silent)]
[TestCase("/S", ApplicationMode.Silent)]
[TestCase("/s", ApplicationMode.Silent)]
[TestCase("-S", ApplicationMode.Silent)]
[TestCase("-s", ApplicationMode.Silent)]
public void GetApplicationMode_single_arg(string arg, ApplicationMode mode)
{
Router.GetApplicationMode(new[] { arg }).Should().Be(mode);