Mailinglist Archive: opensuse-buildservice (216 mails)

< Previous Next >
[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@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups