没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
克里 Cri 是一个用于构建易于使用的命令行工具并支持嵌套命令的库。 要求 Cri 需要 Ruby 2.5 或更新版本(包括 Ruby 3.x)。 兼容性政策 Cri 保证支持任何,以及默认的 Ruby 版本。 最后两个 最近两个主要的 用法 Cri 中的核心概念是command ,它具有选项定义以及实际执行自身的代码。 在 Cri 中,命令行工具本身也是一个命令。 这是一个示例命令定义: command = Cri :: Command . define do name 'dostuff' usage 'dostuff [options]' aliases :ds , :stuff summary 'does stuff' description 'This command does a lot of stuff.
资源推荐
资源详情
资源评论
收起资源包目录
cri-main.zip (42个子文件)
cri-main
.travis.yml 124B
Rakefile 579B
test
test_command.rb 26KB
helper.rb 946B
test_command_dsl.rb 11KB
test_command_runner.rb 789B
test_basic_root.rb 654B
test_base.rb 130B
test_string_formatter.rb 4KB
test_argument_list.rb 3KB
test_parser.rb 17KB
test_basic_help.rb 1KB
test_help_renderer.rb 2KB
.rubocop.yml 4KB
NEWS.md 5KB
LICENSE 1KB
Gemfile 223B
samples
sample_nested.rb 1019B
sample_params.rb 450B
sample_capture_opts_as_args.rb 870B
sample_basic_root.rb 642B
sample_simple.rb 1KB
.gitignore 61B
lib
cri
command.rb 14KB
param_definition.rb 255B
commands
basic_root.rb 199B
basic_help.rb 840B
string_formatter.rb 3KB
help_renderer.rb 6KB
argument_list.rb 2KB
platform.rb 808B
command_dsl.rb 9KB
version.rb 97B
option_definition.rb 1KB
command_runner.rb 1KB
parser.rb 7KB
cri.rb 1KB
CODE_OF_CONDUCT.md 3KB
.rubocop_todo.yml 3KB
README.md 17KB
scripts
release 2KB
cri.gemspec 730B
共 42 条
- 1
资源评论
LiuTitanium
- 粉丝: 23
- 资源: 4684
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功