copr cli tool
bkabrda at redhat.com
Mon Jan 14 06:30:43 UTC 2013
----- Original Message -----
> On Fri, 11 Jan 2013, Seth Vidal wrote:
> > I was thinking about the cli tool we want, now that we have the api
> > in place
> > to make it possible to submit from a cli.
> > to start with I was thinking of a simple tool that did a small
> > number of
> > basic commands:
> > create coprname -r distro -r distro -r distro -a arch -a arch
> > --repo=somerepo --repo=somerepo -p pkgurl1 -p pkgurl2
> > -p pkgurl3
> > edit coprname (not sure what this would do yet)
> > info coprname (dumps out info like the returned urls of builds,
> > number of
> > builds, etc)
> > build coprname pkgurl1 pkgurl2 pkgurl3
> > delete coprname
> > What do you think? Too broad? not broad enough?
> Expanding on this a bit - I suspect that info coprname would dump
> out a
> json blob with that info so it can be easily parsed.
> I was trying to think of the workflow:
> coprcli create mycopr -r epel-5 -r epel-6 -r fedora-18 -a i386 -a
> coprcli build mycopr pkg1 pkg2 pkg3
> coprcli info mycopr | python -m json.tool | check for
> does that make sense?
It's on my TODO list to do a cli client. It will require some new views (or perhaps just altering the current views) and the cli client itself. Since I finished the most pressing stuff last week, I'll get on it ASAP.
Bohuslav "Slavek" Kabrda.
More information about the copr-devel