@ssbun/venom-cli
v2.1.1
Published
CLI tool for Zhihu iOS development. Wraps make commands for project builds.
Readme
venom-cli
CLI tool for Zhihu iOS development.
Install
npm install -g git+ssh://[email protected]/Team-iOS-Platform/venom-cli.gitCommands
venom-cli make
Run make all_binary in the project directory.
venom-cli make # current directory
venom-cli make -p /path/to/project # specify projectvenom-cli make-source
Run make all_source in the project directory.
venom-cli doctor
Check environment dependencies.
venom-cli doctor # check rbenv, ruby 2.7.3, CocoaPods 1.6.2, git, Xcode, SSH
venom-cli doctor --fix # auto-install missing dependenciesvenom-cli components
List pods from venomfiles.
venom-cli components # developing pods only
venom-cli components --all # all pods
venom-cli components --format jsonvenom-cli switch <pod-name>
Switch a pod's source in customization.yml.
venom-cli switch PodName --local /path/to/pod
venom-cli switch PodName --binary
venom-cli switch PodName --source
venom-cli switch PodName --branch feat-branch
venom-cli switch PodName --tag v1.0.0
venom-cli switch PodName --commit abc1234venom-cli status
Show git status for locally developed pods.
venom-cli status
venom-cli status --format jsonvenom-cli gen-asset-code
Generate ObjC access code for xcassets images and .strings files.
venom-cli gen-asset-code --path /path/to/component
venom-cli gen-asset-code --path /path/to/component --type resource
venom-cli gen-asset-code --path /path/to/component --type stringGlobal Options
| Option | Description |
|--------|-------------|
| -p, --project PATH | Specify project directory (defaults to cwd) |
| -v, --version | Show version |
Development
npm install
npm linkRequirements
- Node.js >= 18
- rbenv + ruby 2.7.3
- CocoaPods 1.6.2
- Xcode
License
MIT
