Skip to content

Conversation

acharlieh
Copy link
Contributor

So I was wanting to write a custom search command, but for reasons of making things similar to existing commands, and because what I'm needing to take as positional parameters could have equals signs in them, I wanted to parse options that look like --optionName=optionValue instead of optionName=optionValue

Digging through the SDK I think I found the point where we were doing this, and wrapped it in a method so that I could override this parsing, but keep everything else passive for others who are already using the SDK.

I could see a future extension point where this entire parsing out options might be able to be overridden/modified, but I didn't have a need for that much customization yet.

@acharlieh acharlieh marked this pull request as draft August 29, 2021 23:39
@acharlieh acharlieh changed the base branch from master to develop August 29, 2021 23:40
This should be a passive change, while providing a useful extension point.
@acharlieh acharlieh force-pushed the configurable_options branch from 35f0540 to 8cea66f Compare August 29, 2021 23:48
@acharlieh
Copy link
Contributor Author

Helps if I make the pull request against the correct branch.

@acharlieh acharlieh marked this pull request as ready for review August 29, 2021 23:56
@fantavlik
Copy link
Contributor

Looks good to me since there are no functional changes for end users, good luck @acharlieh

@fantavlik fantavlik merged commit 6b0d620 into splunk:develop Dec 9, 2021
@akaila-splunk akaila-splunk mentioned this pull request Mar 25, 2022
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