go-micro-frame-cli

command module
v0.0.0-...-fc3359f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 1 Imported by: 0

README

go-micro-frame cli tool

install

git clone git@github.com:jettjia/go-micro-frame-cli.git
cd go-micro-frame-cli 

go build

go-micro-frame-cli install

Command

$ go-micro-frame-cli

Usage:
  go-micro-frame-cli [command]

Available Commands:
  build       build go project
  completion  generate the autocompletion script for the specified shell
  docker      create a docker image for current project
  drone       create .drone for ci/cd
  env         Print go-micro-frame version and environment info
  gen         automatically generate go files for ORM model,service, repository, handler, pb
  gofmt       gofmt your project
  help        Help about any command
  init        create and initialize an empty project
  install     install gf binary to system (might need root/admin permission)
  run         Install common service, like go-micro-frame-cli run mysql
  start       A brief description of your command
  version     Show current binary version info

Flags:
      --config string   config file (default is $HOME/.go-micro-frame-cli.yaml)
  -h, --help            help for go-micro-frame-cli
  -t, --toggle          Help message for toggle

Use "go-micro-frame-cli [command] --help" for more information about a command.

命令说明

  build       编译项目
  docker      生成 Dockerfile 文件,方便快速构建项目
  drone       生成 .drone.yaml 文件,方便项目快速cicd构建
  env         输出go env 的运行环境,go-micro-frame 的框架版本
  gen         根据表名,自动化生成代码 ORM model,service, repository, handler, pb,单元测试等
  gofmt       gofmt,规范项目代码格式
  help        Help about any command
  init        创建一个空的基于 go-micro-frame 框架的项目
  install     安装 go-micro-frame-cli 命令到 win/linux 的bin下,全局使用命令
  run         [ops]快速安装一个开发环境,方便开发、测试、运维; 目前只支持 linux环境,作者使用centos7.X
  			 已经支持的有:
  			 mysql:5.7/redis:6.2/rabbitmq:3.3.7/es7.7.1
  			 go:1.16.7/docker19/docker-compose
  			 drone/gogs/harbor/
  			 jaeger/kong/konga/nacos/consul
  start       [ops]快速启动,run 已经运行中的环境,这里不会覆盖。会保留数据
  version     查看 go-micro-frame 框架版本

Documentation

Overview

Copyright © 2021 jettjia

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL