Hi Peter, just a question regarding the meaning of "osc meta prjconf": is that is related to the API Server Project Config: "PUT/GET /source/<project>/_config"? Martin Dr. Peter Poeml wrote:
Hi,
On Tue, May 29, 2007 at 05:01:48PM +0200, Dr. Peter Poeml wrote:
while looking at adding support for editing project configuration, I thought that I'd like to organize osc subcommands that show or change metadata in a more consistent way.
I now implemented the new meta command, replacing editmeta, editprj, createprj, editpac, createpac, edituser.
Do people think that I should add the old command names (like createpac or editprj) as 'aliasses', so they people can continue to use them? Or should I just ditch them?
And another question. So far, the commands for editing metadata have automatically created a resource, when trying to edit one that doesn't exist. Is that the wanted default behaviour, or should it require a "--create" switch?
The current default behaviour has led to the accidental creation of projects and packages, when a user mistyped a name of something he/she wanted to edit only.
Thanks for your input.
Here is the usage of the new meta command:
""" % osc help meta meta: Show meta information, or edit it
Show or edit build service metadata of type
. This command displays metadata on buildservice objects like projects, packages, or users. The type of metadata is specified by the word after "meta", like e.g. "meta prj".
With the --edit switch, the metadata can be edited. Per default, osc opens the program specified by the environmental variable EDITOR with a temporary file. Alternatively, content to be saved can be supplied via the --file switch.
The --create switch is subject to discussion and not implemented.
usage: osc meta
[-e|--edit [-f|--file] [-c|--create]] ARGS... options: -h, --help show this help message and exit -F FILE, --file=FILE read metadata from FILE, instead of opening an editor. '-' denotes standard input. -e, --edit edit metadata """ Peter
--------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org