在github上,有非常多的项目,为了快速安装项目demo,查看运行效果,下面给大家介绍一款工具dryrun。
以前我们如果希望运行github上面的某个项目demo,首先需要clone该项目,然后在本地进行编译和运行,才能最终查看到运行的效果。现在如果使用该工具,就可以一步到位,减去很多的麻烦。
项目地址:
https://github.com/cesarferreira/dryrun
安装方式很简单
gem install dryrun
使用方法更简单
dryrun https://github.com/cesarferreira/android-helloworld
具体命令:
$ dryrun -h
Usage: dryrun GIT_URL [OPTIONS]
Options
-m, --module MODULE_NAME Custom module to run
-b, --branch BRANCH_NAME Checkout custom branch to run
-f, --flavour FLAVOUR Custom flavour (e.g. dev, qa, prod)
-p, --path PATH Custom path to android project
-t, --tag TAG Checkout tag/commit hash to clone (e.g. "v0.4.5", "6f7dd4b")
-c, --cleanup Clean the temporary folder before cloning the project
-w, --wipe Wipe the temporary dryrun folder
-h, --help Displays help
-v, --version Displays the version