Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Support single-trigger commands constructor #71

Open
tommasobertoni opened this issue Mar 9, 2021 · 0 comments
Open

Support single-trigger commands constructor #71

tommasobertoni opened this issue Mar 9, 2021 · 0 comments
Labels
API enhancement New feature or request

Comments

@tommasobertoni
Copy link
Contributor

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");
@tommasobertoni tommasobertoni added enhancement New feature or request API labels Mar 9, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
API enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant