You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.
For more complex commands, it would be useful to be able to include keyword arguments as part of the message so that order doesn't matter and parts of the commands can be optional.
For example, a message like this:
Lita: foo bar=baz this_key="has a quote-delimited value"
Could have its keyword arguments accessed by a handler:
message.keyword_args[:bar]# "baz"message.keyword_args[:this_key]# "has a quote-delimited value"
It might also be worth supporting different characters in place of the =, since there is precedent for this, for example in lita-datadog, which uses a : and requires that the values be quoted. /cc @esigler
The text was updated successfully, but these errors were encountered:
For more complex commands, it would be useful to be able to include keyword arguments as part of the message so that order doesn't matter and parts of the commands can be optional.
For example, a message like this:
Could have its keyword arguments accessed by a handler:
It might also be worth supporting different characters in place of the
=
, since there is precedent for this, for example in lita-datadog, which uses a:
and requires that the values be quoted. /cc @esiglerThe text was updated successfully, but these errors were encountered: