Mailinglist Archive: opensuse-buildservice (233 mails)

< Previous Next >
[opensuse-buildservice] osc commands for showing/editing metadata
  • From: "Dr. Peter Poeml" <poeml@xxxxxxx>
  • Date: Tue, 29 May 2007 17:01:48 +0200
  • Message-id: <20070529150148.GW4305@xxxxxxx>
Hi,

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 have written down some ideas, that involve some renaming, and I'm
wondering what would make most sense to most people:


1)

current:                new (read):     new (write):

usermeta,edituser       showuser        edituser
meta,editmeta           showpacmeta     editpacmeta
meta,editprj            showprj         editprj
meta,editpac            showpac         editpac
updatepacmetafromspec                   editpac --fromspec
-                       showprjconf     editprjconf

This swamps the "osc help" output with new commands... but they will at
least appear together, since alphabetically sorted...


2)

Only have a "showmeta" and a "editmeta" subcommand, which take their own
subcommand specifying what kind of metadata to work on:

showmeta user
showmeta prj
showmeta prjconf
showmeta pac

editmeta user
editmeta prj
editmeta prjconf
editmeta pac [--fromspec]


3)

Or maybe even put them under a single subcommand, "meta":

meta [--edit] user
meta [--edit] prj
meta [--edit] prjconf
meta [--edit] pac


Anyone has an opinion on that?

Thanks,
Peter
-- 
Allen Gewalten zum Trutz sich erhalten.
 
SUSE LINUX Products GmbH
Research & Development
< Previous Next >