Skip to content

Development specification scaffolding based on Cobra <至行云-打造开发规范脚手架>

License

Notifications You must be signed in to change notification settings

isxcode/isx-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

至行云

团队开发规范脚手架

最新版本下载
在线安装
sh -c "$(curl -fsSL https://raw.githubusercontent.com/isxcode/isx-cli/main/install.sh)"
开发流程
# 1.登陆github账号
isx login
# 2.下载项目
isx clone
# 3.选择开发项目
isx choose
# 4.切换开发分支
isx checkout <issue_number>
# 5.提交代码到本地
isx git add .
isx git commit -m "your commit message"
# 6.推送到origin仓库(自带格式化代码)
isx push
# 7.提交pr
isx pr <issue_number>
# 8.如果提交的pr,无法成功rebase合并
isx pull 
# 9.修复冲突,重新提交推送代码
isx push -f
使用说明
# 查看所有命令
isx -h
# 命令详解
isx login -h
  ____ _____ __ __           __  _      ____ 
|    / ___/|  |  |         /  ]| |    |    |
 |  (   \_ |  |  | _____  /  / | |     |  | 
 |  |\__  ||_   _||     |/  /  | |___  |  | 
 |  |/  \ ||     ||_____/   \_ |     | |  | 
 |  |\    ||  |  |      \     ||     | |  | 
|____|\___||__|__|       \____||_____||____|

欢迎使用isx-cli脚手架
代码仓库:https://github.com/isxcode/isx-cli

Usage:
  isx [command]

Available Commands:
  backend     isx backend                                                      | 使用gradle启动项目
  build       isx build                                                        | Docker编译项目代码
  checkout    isx checkout <issue_number>                                      | 切换开发分支
  choose      isx choose                                                       | 选择开发项目
  clean       isx clean                                                        | 删除项目缓存
  clone       isx clone                                                        | 下载项目代码
  completion  Generate the autocompletion script for the specified shell
  config      isx config                                                       | 查看配置文件
  db          isx db list | isx db <issue_number>                              | 查看当前db(暂不开放)
  delete      isx delete <issue_number>                                        | 删除组织远程分支
  format      isx format                                                       | 代码格式化
  git         isx git <git command>                                            | 项目内执行git命令
  gradle      isx gradle <gradle_command>                                      | 执行项目gradle命令
  help        Help about any command
  home        isx home                                                         | 打印项目所在目录
  install     isx install                                                      | 使用gradle安装依赖
  login       isx login                                                        | 登录github账号
  now         isx now                                                          | 查看当前开发项目
  open        isx open                                                         | 使用IDE打开当前项目
  package     isx package                                                      | 使用gradle打包
  pr          isx pr <issue_number>                                            | 提交pr
  pull        isx pull                                                         | 拉去远程组织当前分支代码
  push        isx push                                                         | 格式化代码后,提交代码
  remove      isx remove                                                       | 删除本地项目
  run         isx run [frontend/backend/web] [port]                            | 运行项目
  set         isx set <config_key> <value>                                     | 设置配置参数
  sync        isx sync <branch_name>                                           | 同步Github个人仓库指定分支
  upgrade     isx upgrade                                                      | 升级isx-cli脚手架
  version     isx version                                                      | 查看版本号

Flags:
      --config string   config file (default is $HOME/.isx/isx-config.yml)
  -h, --help            help for isx

Use "isx [command] --help" for more information about a command.