FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Break out search argument to option parsing for v2 custom search commands by acharlieh · Pull Request #392 · splunk/splunk-sdk-python · GitHub

Repository navigation

Break out search argument to option parsing for v2 custom search commands - #392

Merged
fantavlik merged 1 commit into
splunk:developfrom
acharlieh:configurable_options
Dec 9, 2021
Merged

fantavlik merged 1 commit into
splunk:developfrom
acharlieh:configurable_options

Conversation

Copy link
Copy Markdown
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 marked this pull request as draft August 29, 2021 23:39
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 force-pushed the configurable_options branch from 35f0540 to 8cea66f Compare August 29, 2021 23:48

Copy link
Copy Markdown
Contributor Author

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

acharlieh marked this pull request as ready for review August 29, 2021 23:56

Copy link
Copy Markdown
Contributor

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

fantavlik merged commit 6b0d620 into splunk:develop Dec 9, 2021
akaila-splunk mentioned this pull request Mar 25, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL