FeatureRequest: config file support
-
commander_fan
- Tag set to config, featurerequest
-
TJ Holowaychuk
- Tag changed from config, featurerequest to config, feature_request, options
I think there is a ticket for --config already, but I like the additional info here. One thing I want to be careful with is cluttering EVERY executable with to many default features. Perhaps we should have:
program :name, 'foo' ... program, :enable, :configor have it enabled by default etc, but I can see some people being a bit frustrated if its cluttered with tons of this stuff. I actually did this already with my visionmedia-release gem, however that was just an ad-hoc implementation.
Personally I think this would be a sub-command, and --options would simply load options from a file, for example this is what I have working with release:
# Adds all the switches passed and writes foo as a new config re config add foo --file bin/re --history --dry-run # Shows all configurations re config show # Utilize it using a real sub-command, pulling in all the options re bump minor --config foo # Remove one re config remove foo
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.