Re:Howdoi – Instant Coding Answers via the Command Line
by gleitz on Tuesday January 08, 2013 @12:46PM
(#5027300)
Thanks for playing with it. Sometimes the first answer isn't the greatest but -p2 or -p3 will get it. In this case the following command gets you closer:
howdoi format dates django templates -p3
Excellent idea for colorization! I've already got that suggestion on the github page -> https://github.com/gleitz/howdoi/issues/4
One that fails rather badly:
format dates django templates Returns simply "date", despite StackOverflow having lots of hits: http://stackoverflow.com/search?q=format+dates+django+templa...
But some others are super cool:
create datetime from epoch >>> datetime.datetime.fromtimestamp(1284286794)
One suggestion is that by default I would include the link to the stackoverflow page.
Some color might be nice to make it extra sexy, look at the colorama package to do it easily cross platform.