* Shawn Walker <[email protected]> [2009-03-12 22:59]:
> ====================
> Summary
> ====================
> At the moment, users wanting to obtain publisher, mirror, or origin  
> information have to parse the printed output of the "pkg publisher"  
> command.  This isn't locale safe and is prone to break whenever the  
> output format changes.
>
> Since the output format was never intended as a stable interface for  
> consumers, an advanced set of listing options is desirable.
>
> ========================================
> Suggested Implementation
> ========================================
>
> * Add -t and --type flags to allow specifying the type of information  
> being requested.  The -t option could only be specified once; possible  
> values would be:
>
> -- publisher
> -- repository
> -- origin
> -- mirror
>
> * Add -p --property flags that could be used with -t to allow a specific  
> property value to be shown.  Multiple properties could be specified by  
> repeating the option, or by comma-separation of the values.  The  
> properties available would be dependent on the type of information being  
> shown:
>
> -- publisher: alias, client_uuid, disabled, prefix
>
> -- repository: collection_type, description, refresh_seconds,  
> registered, registration_uri, sort_policy
>
> -- origin: ssl_cert, ssl_key, uri, priority

  The common approach to this type of CLI interaction is -o
  list_of_fields, as in ps(1), svcs(1), and others.  Why is the
  partition into types needed?

  I would also probably ask for a more strict parseable output format or
  format(s), than the column-separated output we currently have.

  - Stephen

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to