23 lines
827 B
C#
23 lines
827 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using silver_messages;
|
|
|
|
namespace silver_messages.directorial
|
|
{
|
|
/*
|
|
* if this is the name of one of your capabilities, pass args to it and execute it.
|
|
* if timeout is > 0, wait that long (in seconds) before terminating the command.
|
|
* if the command completed, send a command_completed. if you had to kill it because
|
|
* timeout, send command_expired. If it has no timeout, send command_output and
|
|
* command_error as you get them, and if it ends some other way, send command_completed
|
|
* with empty stdout and stderr.
|
|
*/
|
|
public class execute_command : message_directorial
|
|
{
|
|
public string command { get; set; }
|
|
public List<string> args { get; set; } = new List<string>();
|
|
public int timeout { get; set; }
|
|
}
|
|
}
|
|
|