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

Fix #74 - make extra arguments optional #78

Merged
merged 1 commit into from
Nov 16, 2020

Conversation

TJM
Copy link
Contributor

@TJM TJM commented Nov 3, 2020

There were two different patterns..

One where the object was passed in and a bunch of "args" were created based on specific fields (probably not very extensible), then sometimes (or not) a couple extraArgs were applied. In this case, I tried to make the initial "args" creation more consistent, and allow them to be overridden with "extraArgs" ... I also made it so that any argument can be overridden, rather than the one or two options that were in the code.

The other pattern was just to pass the extra args directly to the "client" command... those were easy.

To make it all better, now we no longer need the "trello.Defaults()" on every single command. YAY!?

~tommy

@TJM
Copy link
Contributor Author

TJM commented Nov 3, 2020

Guess the README needs some serious updating :)

Copy link
Owner

@adlio adlio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @TJM. I like this. Very much.

@adlio adlio merged commit 4e5d614 into adlio:master Nov 16, 2020
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