Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat: add actions and fields to chat send #89

Merged
merged 4 commits into from
Nov 6, 2018

Conversation

travismcchesney
Copy link
Contributor

One can now include actions and fields in a chat send action.
Examples:

  • Fields:
--fields=|--fields |-flds '{"title": "Environment", "value": "snapshot", "short": true}, {"title": "Foo", "value": "bar", "short": true}'
  • Actions:
--actions=|--actions |-a '{"type": "button", "style": "primary", "text": "See results", "url": "http://example.com"},{"type": "button", "style": "primary", "text": "See something else", "url": "http://example.com"}'

Provided values must be valid, comma-separated JSON objects.

@travismcchesney travismcchesney force-pushed the fields-and-actions branch 5 times, most recently from 1105117 to d9350ca Compare October 25, 2018 17:36
One can now include `actions` and `fields` in a `chat send` action.
Examples:
* Fields:
```bash
--fields=|--fields |-flds '{"title": "Environment", "value": "snapshot", "short": true}, {"title": "Foo", "value": "bar", "short": true}'
```
* Actions:
```bash
--actions=|--actions |-a '{"type": "button", "style": "primary", "text": "See results", "url": "http://example.com"},{"type": "button", "style": "primary", "text": "See something else", "url": "http://example.com"}'
```
Provided values must be valid, comma-separated JSON objects.
@rockymadden rockymadden merged commit 46d2274 into rockymadden:master Nov 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants