开发者

CLI design and implementation?

I am developing a time management tool for my personal use. I prefer using keyboard over mouse, and on the interface have a general purpose text box which will act like a command line. I have just started thinking about what commands I need, what to use for the command names, how to pass in sw开发者_如何转开发itches and parameters, and so forth.

I wonder if some of you have come across a good read along these lines; something that describes the choices you have for designing a cli, and how those affect the complexity of the interpreter, and extendability of the commands. It makes no difference if the descriptions are language-specific or in general terms. However, my implementation will be with javascript.

Thank you.


Read this:

http://www.amazon.com/Software-Tools-Brian-W-Kernighan/dp/020103669X

It explains some of the "philosophy" behind the Unix CLI.

http://www.ibm.com/developerworks/linux/library/l-clutil/

http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_01c

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜