-
Notifications
You must be signed in to change notification settings - Fork 19
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
Set settings in .mversionrc files #15
Comments
What kind of settings are you thinking of mainly? Something like: {
"commitMessage": "Bumps to version %s",
"tagName": "v%s-src",
"noPrefix": true,
"push": "origin master"
} (if push is being implemented - ref issue #14) And then you would just do $ mversion minor To bump? |
@mikaelbr exactly! |
Good idea. This shouldn't alter any of the existing behaviour, though. And if for instance |
Yep, agreed. |
With a place to set options, I could also see wanting an option for something like |
This is a very good idea I think. I'm a bit hesitant of adding features willy-nilly, but I think this sounds very useful. I'm almost done implementing the rc-file now, just adding the final tests - and I'll look into adding scripts afterwords. What is the best naming, you think? Any other? |
I'm ok with either. Just plain old |
I think the best naming would be I initially though of having a set of commands, as in
But I think this increases the complexity and raises questions of sync or async etc. It's better to have:
|
Agreed on both accounts. |
Will this just look in the dir where you're executing the commands, or it look all the way up the file system (like most rc files)? |
My thought was, since mversion requires you to be in the dir where |
Reasonable to assume, I think this is usually just how This way you could just put your defaults in your home dir if you wanted to. |
Good thinking. Allowing for more global default settings. |
Available in version |
Now that's what I call service! Now I can ditch these silly Thanks! |
I use this over Thanks for a great issue and fantastic responses! |
Feature request!
I think it would be great if mversion looked at it's current directory and up for any
.mversionrc
files and allowed you to put settings there.The text was updated successfully, but these errors were encountered: