PowerToys/Wox/CommandArgs/QueryCommandArg.cs

25 lines
510 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
namespace Wox.CommandArgs
{
public class QueryCommandArg : ICommandArg
{
public string Command
{
get { return "query"; }
}
public void Execute(IList<string> args)
{
Console.WriteLine("test");
if (args.Count > 0)
{
string query = args[0];
2016-02-18 19:32:48 +08:00
App.API.ChangeQuery(query);
}
2016-02-18 19:32:48 +08:00
App.API.ShowApp();
}
}
}