Mailinglist Archive: opensuse-buildservice (216 mails)

< Previous Next >
Re: [opensuse-buildservice] new osc config command
  • From: Marcus Rueckert <darix@xxxxxxxxx>
  • Date: Mon, 8 Mar 2010 14:28:00 +0100
  • Message-id: <20100308132800.GM16005@xxxxxxxxxxxx>
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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
References