示例#1
0
    public override int Execute(CommandContext context, Settings settings)
    {
        if (settings.OpenBrowser.IsSet)
        {
            var browser = settings.OpenBrowser.Value;
            if (browser != null)
            {
                Console.WriteLine($"Open in {browser}");
            }
            else
            {
                Console.WriteLine($"Open in default browser.");
            }
        }

        SettingsDumper.Dump(settings);
        return(0);
    }
示例#2
0
 public override int Execute(CommandContext context, Settings settings)
 {
     SettingsDumper.Dump(settings);
     return(0);
 }