artiso-solutions / CoVoX

MIT License
1 stars 1 forks source link

Support single-trigger commands constructor #71

Open tommasobertoni opened 3 years ago

tommasobertoni commented 3 years ago

We should provide the following Command constructors, mainly useful for simple commands definition:

// default, current state
new Command()

// single-trigger command
new Command("TurnOnLight", "turn on the light");

// multi-trigger command
// IEnumerable<string> and params string[]
new Command("TurnOnLight", "turn on the light", "light on", "light on");