Issue #3390 has been updated by James Turnbull.

Status changed from Unreviewed to Accepted


----------------------------------------
Feature #3390: Add a --format (json/yaml/text) flag to ralsh
http://projects.puppetlabs.com/issues/3390

Author: Michael DeHaan
Status: Accepted
Priority: Low
Assigned to: 
Category: ralsh
Target version: 
Affected version: development
Keywords: ralsh json
Branch: 


With Jesse's patch to get ralsh --host working, it quickly becomes interesting 
to do things like compare between multiple hosts, though I'd like to do 
something more clever than just diff -U 10.

I'd like to be able to do:

ralsh -h foo.example.org --format json User "timmy"

And get back the results for Timmy in something like:

{ 
   "type" : "User",
   "name" : "timmy"
...
}

With the idea that I'd want to write simple scripts in Ruby/Python/whatever 
against ralsh that would want to deserialize the output from ralsh.

The default --format should be Puppet format.   I really don't think we'd need 
anything beyond json+puppet format.





-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to