[katello-devel] CLI 3rd level of parameters (cont.)

Justin Sherrill jsherril at redhat.com
Fri Nov 16 14:19:58 UTC 2012


On 11/16/2012 08:38 AM, Adam Price wrote:
> ----- Original Message -----
>> From: "Eric Helms"<ehelms at redhat.com>
>> To: katello-devel at redhat.com
>> Sent: Friday, November 16, 2012 8:27:36 AM
>> Subject: Re: [katello-devel] CLI 3rd level of parameters (cont.)
>>
>> On 11/16/2012 06:24 AM, Lukas Zapletal wrote:
>>> David,
>>>
>>> I noticed you have introduced new level of params. I'd recommend to
>>> put
>>> something on our backlog to review all other cli commands and
>>> refactor
>>> them, I guess we have some actions like:
>>>
>>> k one two_three
>>>
>>> which should be now
>>>
>>> k one two three
>>>
>>> LZ
>>>
>> A side effect of David's work on Content Views with regards to the
>> CLI
>> command structure is that we start to get a bit more parity between
>> the
>> UI navigational structure and the CLI navigational structure.  This
>> feels like a big win in so much that no matter what interface you are
>> using, the path to locate and act on a resource is the same.
>>
>> For example, if we take the latest sitemap
>> (https://fedorahosted.org/katello/wiki/Sitemap), for top level
>> Content
>> in the UI we have:
>>
>> Subscriptions
>> Repositories
>> Sync
>> Views
>>
>> Which could map in a parallel fashion with CLI navigation:
>>
>> katello content subscriptions
>> katello content repositories
>> katello content sync
>> katello content views
>>
>>
>> While this introduces slightly longer strings that need to be typed,
>> as
>> we add more and more entities that users have to interact with,
>> providing this extra bit of structure will help prevent overload and
>> allow the user to enter a context.  This would further increase the
>> power (and hopefully drive of users) to use the shell as I could see
>> entering a top-level navigation from the shell as well:
>>
>> katello>  content
>> katello (content)>  repository
>> katello (content) (repository)>  red_hat import_manifest
>> katello (content) (repository)>  custom create --name=NewRepo
>> --url=file:///tmp
>>
>> -Eric
>>
>> _______________________________________________
>> katello-devel mailing list
>> katello-devel at redhat.com
>> https://www.redhat.com/mailman/listinfo/katello-devel
>>
> This is functionality that we should have had quite some time ago. the Katello application is too complex for only two levels of commands. Quite a few actions have been nastily smooshed together to satisfy this command limitation because there wasn't any other way to nest commands.
>
> +100
>
+∞




More information about the katello-devel mailing list