![image](http://static.oschina.net/uploads/space/2016/0324/150230_TSMI_2667679.jpg)
安装:
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ go get -u github.com/whyrusleeping/gx</pre>
用法:
创建和公开新的通用包:
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ gx init
$ gx publish</pre>
添加一个repo
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ gx repo add myrepo /ipns/QmPupmUqXHBxikXxuptYECKaq8tpGNDSetx1Ed44irmew3</pre>
配置repos列表
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ gx repo list
myrepo /ipns/QmPupmUqXHBxikXxuptYECKaq8tpGNDSetx1Ed44irmew3</pre>
给列表一个repo
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ gx repo list myrepo
events QmeJjwRaGJfx7j6LkPLjyPfzcD2UHHkKehDPkmizqSpcHT
smalltree QmRgTZA6jGi49ipQxorkmC75d3pLe69N6MZBKfQaN6grGY
stump QmebiJS1saSNEPAfr9AWoExvpfGoEK4QCtdLKCK4z6Qw7U</pre>
从repo中导入一个包
<pre class="brush:cpp ;toolbar: true; auto-links: false;">$ gx repo import events</pre>