Live data from Hacker News

Gooey: Turn command line programs into GUI applications

github.com

11–20 of 76 posts

Re: Gooey: Turn command line programs into GUI applications

#11

Good idea. I wonder if anyone has done this for general unix command-line apps by parsing out the man pages on the fly. It probably wouldn't work for all programs but may be gnu style ones would be consistent enough.

I too was expecting something like what you describe but by parsing -h --help output.

Re: Gooey: Turn command line programs into GUI applications

#13
post #6

Really awesome and promising idea, but I think the implementation is limiting. Couldn't it just as well parse help text? It's not guaranteed to be standard, but there are probably more programs that can be parsed that way than use ArgumentParser.

http://docopt.org/ This project attempted to make argument parsing and the help string synonymous. I'm not sure if it is being actively maintained.

Nice find! https://github.com/docopt/docopt.go was updated 18 days ago, so it does look alive and well.

Re: Gooey: Turn command line programs into GUI applications

#16
post #8

How about converting CLI programs into Web based applications ?!!

With a REST API you can call from curl !?

Yes, good idea ..! At our workplace, we have whole bunch of administration tool running on unix CLIs. I am thinking of way by which having same experience in browser based apps ..!

Re: Gooey: Turn command line programs into GUI applications

#19

Good idea. I wonder if anyone has done this for general unix command-line apps by parsing out the man pages on the fly. It probably wouldn't work for all programs but may be gnu style ones would be consistent enough.

I too was expecting something like what you describe but by parsing -h --help output.

The bash-completion script can deduce which options are supported by an application by parsing the output of --help and of usage lines. In Bash.

http://anonscm.debian.org/cgit/bash-completion/bash-completi...

Re: Gooey: Turn command line programs into GUI applications

#20

Really pretty neat especially if your tool might be used by less technical folks. I can't count the number of times people in our engineering department have given non-technical people in our company a command line tool because its easier than adding a GUI, be it native or web. I think this will come in handy in those cases.

There are tools, at least on Unix, to add guis to command lines. gtkdialog and zenity are the ones I've seen.

You need to write a shell script that runs commands to display the gui, and then execute the command.

Post reply on HN