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

Alias Parameter Transformations #4964

Open
amanda11 opened this issue Jun 9, 2020 · 0 comments
Open

Alias Parameter Transformations #4964

amanda11 opened this issue Jun 9, 2020 · 0 comments

Comments

@amanda11
Copy link
Contributor

amanda11 commented Jun 9, 2020

Following on from #1704 then although immutable alias parameters have simplified and removed the need in many cases for intermediate actions, I still have use-cases where it would be beneficial if the alias parameters could be transformed before they are sent to the action.

At the moment for example if the action takes a dictionary as a parameter, but I am only ever going to send it with the value for one key then I either have to:

  • make the user send in the full dictionary in their alias command

  • write a intermediary action to format the value before sending onto the main action.

This seemed to have been discussed under #1704 alongside default parameter values, but as far as I'm aware only default parameter values have been added (with the example of stripping off http).

For example, I currently have simplified aliases for the aws_boto3.boto3_action, and currently the user has to send in a full dictionary for params on their ! command on slack. When really I just need them to specify the value for a single key in that dictionary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants