<HTML>
<HEAD>
<TITLE>Re: [Openstack] OpenStack Client Followup</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>I like #1, if the admin plugins aren’t there then u don’t get admin commands. Plus it makes a lot of the same code be used in both cases.<BR>
<BR>
<BR>
On 5/1/12 4:55 PM, "Doug Hellmann" <<a href="doug.hellmann@dreamhost.com">doug.hellmann@dreamhost.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>There are a couple of ways to handle that:<BR>
<BR>
1. A separate "openstackadmin" CLI that looks for commands using a different plugin namespace, and therefore only loads the admin commands.<BR>
<BR>
2. Prefix admin-related commands in the unified cli with "admin" (so "openstack admin create network" or whatever).<BR>
<BR>
3. Separate admin apps for each project.<BR>
<BR>
I think we should avoid 3, since that goes against the spirit of this project. I like #2, but #1 would be easy to implement and could share 99% of the code from the basic openstackclient.<BR>
<BR>
On Tue, May 1, 2012 at 4:59 PM, Matt Joyce <<a href="matt@nycresistor.com">matt@nycresistor.com</a>> wrote:<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>How does this blueprint play into this client.  Is it a separate admin<BR>
only client or just a subset of this guy?<BR>
<BR>
<a href="https://blueprints.launchpad.net/nova/+spec/admin-cli">https://blueprints.launchpad.net/nova/+spec/admin-cli</a><BR>
<FONT COLOR="#888888"><BR>
-matt<BR>
</FONT><BR>
On Tue, May 1, 2012 at 12:28 PM, Dean Troyer <<a href="dtroyer@gmail.com">dtroyer@gmail.com</a>> wrote:<BR>
> On Tue, May 1, 2012 at 2:11 PM, Adam Spiers <<a href="aspiers@suse.com">aspiers@suse.com</a>> wrote:<BR>
>> As of my recent patch, --help is contextual in nova:<BR>
><BR>
> I hadn't seen that yet...<BR>
><BR>
>> and I have started work on some of the other commands too, so it would<BR>
>> be helpful if we could reach a consensus on this soon ... although<BR>
>> please let me know if I am wasting my time working on other commands<BR>
>> due to any imminent rewrites using python-openstack!<BR>
><BR>
> The continued existence of the project-specific commands is really up<BR>
> to the projects themselves.  I think it would be great to converge<BR>
> them on things like this, but trying to get them all to work the same<BR>
> is what led us to openstackclient due to backward compatibility and<BR>
> all.  My guess would be that the existing client binaries would live<BR>
> through the 'G' release even if we decided to deprecate them now.<BR>
><BR>
>> I agree with Dolph - there is a precedent from other well-known<BR>
>> programs (git, hg, svn are the first ones I can think of) for --help<BR>
>> to behave differently depending on whether or not it was preceded by a<BR>
>> subcommand.  So my vote is that we should definitely aim to adhere to<BR>
>> this pattern.<BR>
><BR>
> How about detailing it in the HIG and once we get a command or two<BR>
> implemented with argument parsing we give it a shot?<BR>
><BR>
> dt<BR>
><BR>
> --<BR>
><BR>
> Dean Troyer<BR>
> <a href="dtroyer@gmail.com">dtroyer@gmail.com</a><BR>
><BR>
> _______________________________________________<BR>
> Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
> Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
> More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
<BR>
_______________________________________________<BR>
Mailing list: <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
Post to     : <a href="openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><BR>
Unsubscribe : <a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a><BR>
More help   : <a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<BR>
</SPAN></FONT></BLOCKQUOTE>
</BODY>
</HTML>