[opensuse-buildservice] new osc config command
Hi, recently I implemented a "osc config" command to set or get a configuration option. Syntax: osc config <section> <option> [<value>] (<section> is either an apiurl (see sections in the configfile) or an apiurl alias or 'general') Here are some small examples how to use it: # get the current value marcus@linux:~> osc config general build-root 'general': 'build-root' is set to '/var/tmp/build-root-%(repo)s-%(arch)s' # set an option marcus@linux:~> osc config https://api.opensuse.org aliases obs 'https://api.opensuse.org': 'aliases' is set to 'obs' # remove an option marcus@linux:~> osc config obs aliases --delete 'obs': 'aliases' got removed # remove/reset an option marcus@linux:~> osc config general build-root --delete 'general': 'build-root' is set to '/var/tmp/build-root' Feedback, comments etc. are always welcome :) Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
On 2010-03-08 14:21:14 +0100, Marcus Hüwe wrote:
recently I implemented a "osc config" command to set or get a configuration option. Syntax: osc config <section> <option> [<value>] (<section> is either an apiurl (see sections in the configfile) or an apiurl alias or 'general')
Here are some small examples how to use it: # get the current value marcus@linux:~> osc config general build-root 'general': 'build-root' is set to '/var/tmp/build-root-%(repo)s-%(arch)s' # set an option marcus@linux:~> osc config https://api.opensuse.org aliases obs 'https://api.opensuse.org': 'aliases' is set to 'obs' # remove an option marcus@linux:~> osc config obs aliases --delete 'obs': 'aliases' got removed # remove/reset an option marcus@linux:~> osc config general build-root --delete 'general': 'build-root' is set to '/var/tmp/build-root'
Feedback, comments etc. are always welcome :)
another nice feature! well done!:) the idea was born, for the following use-case: osc config general apiurl obs <dosomework> osc config general apiurl mybs <dosomemorework> osc config general apiurl obs that way you can make it less likely that you accidently submit stuff to the wrong instance. keep up the good work! =) darix -- openSUSE - SUSE Linux is my linux openSUSE is good for you www.opensuse.org -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
Marcus Hüwe
-
Marcus Rueckert