4using System.Text.RegularExpressions;
5using System.Threading.Tasks;
21 : base(
@"^installed(\s+[^\s]+)?$")
28 public override string Name =>
"Installed";
38 public override async Task
Execute(
ChatState State,
string[] Arguments,
string OrgMessage, Match Details,
41 if (Arguments.Length == 0)
43 StringBuilder sb =
new StringBuilder();
59 await ResponseCallback(sb.ToString(),
string.Empty);
66 await ResponseCallback(
"-",
string.Empty);
68 await ResponseCallback(
"No",
string.Empty);
70 await ResponseCallback(
"Yes",
string.Empty);
82 new HelpItem(
"installed",
"Lists packages that are installed."),
83 new HelpItem(
"installed PACKAGE",
"Checks if a specific package is installed or not.")
An administrative command whose syntax is validated with a regular expression.
Contains an item of information about a command.
Upgrades the service to the latest version.
override HelpItem[] GetHelp()
Gets help about the command.
override async Task Execute(ChatState State, string[] Arguments, string OrgMessage, Match Details, ResponseCallbackHandler ResponseCallback)
Executes the command.
override string Name
Command name
Installed()
Upgrades the service to the latest version.
Provisioning and registry service component.
Contains information about a software package.
DateTime Installed
When package was installed (if installed).
CaseInsensitiveString FileName
Filename of package.
delegate Task< string > ResponseCallbackHandler(string Markdown, string MessageId)
Delegate for response callback handler methods.