Building a CLI tool?

blov · · 1262 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I highly recommend trying <a href="https://github.com/jawher/mow.cli">https://github.com/jawher/mow.cli</a></p> <p>Our project (<a href="https://pki.io">https://pki.io</a>) was using docopt, but the requirements changed and docopt wasn&#39;t flexible enough to cope. I looked at alternatives such as codegangsta/cli and spf13/cobra but each had their own disadvantages.</p> <p>After about a week I came across mow.cli. So far it has been fantastic. It supports subcommands, isn&#39;t too verbose, scopes things nicely within functions, the generated help is decent and it is very flexible whilst remaining easy and intuitive to use.</p> <p>Just thought I&#39;d mention it :D</p> <hr/>**评论:**<br/><br/>LowValueTarget: <pre><p>At first glance it looks extremely similar to codegangsta&#39;s cli. I&#39;ll check it out</p></pre>HectorJ: <pre><p>Link for the lazy : <a href="https://github.com/codegangsta/cli">https://github.com/codegangsta/cli</a></p></pre>zeroXten: <pre><p>Yeah, not sure if it is a fork, but the API is heavily inspired by it at least. I found it in a discussion about codegansta... can&#39;t remember where though.</p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

1262 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传