Skip to content

--list-fields option added - #96

Closed
lgiordani wants to merge 1 commit into
peritus:masterfrom
lgiordani:feature/list
Closed

lgiordani wants to merge 1 commit into
peritus:masterfrom
lgiordani:feature/list

Conversation

@lgiordani

Copy link
Copy Markdown
Contributor

I added a small option to output just the value of some fields.
This is useful when, for example, using git flow. You want to know in advance the new release number to create le release branch, and with just --list you need to grep and sed the number. Not a complex job, but with this option you just issue "bumpversion --list-fields new_version " and get the value.

@peritus

peritus commented Jun 19, 2015

Copy link
Copy Markdown
Owner

Hm. I usually would've replied with "just use grep, it's supposed to be composable that way" but you already said that.

@lgiordani

Copy link
Copy Markdown
Contributor Author

I admit it can be overkill. If you think so no problem, just close the PR.

@peritus

peritus commented Jun 19, 2015

Copy link
Copy Markdown
Owner

I'm kind of unsure about this. Is there a specific reason you want this ? Like, you're calling bumpversion from an environment that does not have an 'easy, just use grep and sed' equivalent like Microsoft Team Foundation Continous Integration Team Server(TM) ?

Maybe this should be documentation instead ? There's certainly something to it.

@lgiordani

Copy link
Copy Markdown
Contributor Author

Good idea. Close this PR, I'll just edit the README and document a way to extract relevant information from --list. Does this fit?

@peritus

peritus commented Jun 19, 2015

Copy link
Copy Markdown
Owner

Yes, thanks!

@peritus peritus closed this Jun 19, 2015
@peritus

peritus commented Jun 19, 2015

Copy link
Copy Markdown
Owner

Also see #39 for some of the reasoning behind --list (and maybe a few bashisms).

@lgiordani
lgiordani deleted the feature/list branch June 21, 2015 14:42
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