没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
cmd包 一个简单的程序包,用于在linux,darwin和Windows上执行shell命令。 安装 $ go get -u github.com/commander-cli/cmd@v1.0.0 用法 c := cmd . NewCommand ( "echo hello" ) err := c . Execute () if err != nil { panic ( err . Error ()) } fmt . Println ( c . Stdout ()) fmt . Println ( c . Stderr ()) 配置命令 要配置命令,将传递一个选项函数,该函
资源推荐
资源详情
资源评论
收起资源包目录
cmd-master.zip (61个子文件)
cmd-master
.githooks
pre-commit 520B
.gitignore 5B
go.mod 89B
command_windows_test.go 877B
Makefile 675B
.travis.yml 1KB
LICENSE 1KB
go.sum 867B
examples
standard_streams.go 273B
working_dir.go 297B
README.md 2KB
vendor
modules.txt 260B
gopkg.in
yaml.v2
LICENSE.libyaml 1KB
go.mod 95B
decode.go 18KB
emitterc.go 44KB
.travis.yml 122B
yamlprivateh.go 5KB
LICENSE 11KB
parserc.go 34KB
yaml.go 13KB
sorter.go 3KB
resolve.go 7KB
writerc.go 668B
README.md 3KB
scannerc.go 75KB
yamlh.go 25KB
NOTICE 560B
apic.go 21KB
encode.go 10KB
readerc.go 13KB
github.com
davecgh
go-spew
spew
dump.go 13KB
doc.go 8KB
bypass.go 6KB
spew.go 6KB
format.go 11KB
config.go 13KB
common.go 10KB
bypasssafe.go 2KB
LICENSE 763B
stretchr
testify
assert
assertion_forward.go 39KB
doc.go 1KB
assertion_format.go 22KB
assertions.go 41KB
assertion_forward.go.tmpl 185B
http_assertions.go 5KB
forward_assertions.go 388B
assertion_order.go 7KB
errors.go 326B
assertion_format.go.tmpl 184B
LICENSE 1KB
pmezard
go-difflib
difflib
difflib.go 22KB
LICENSE 1KB
command_darwin_test.go 642B
command_windows.go 166B
command_test.go 3KB
command_linux_test.go 4KB
command_darwin.go 146B
command.go 6KB
testing_utils.go 1KB
command_linux.go 146B
共 61 条
- 1
资源评论
ZackRen
- 粉丝: 24
- 资源: 4624
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功