yuanbootctl
install
go install github.com/liangboceo/yuanboot/cli/yuanbootctl
local install
cd yuanboot/cli/yuanbootctl
go install
Installation location:
$GOPATH
add $GOPATH to $PATH Environment variable
Commands
There are commands working with application root folder
new
yuanbootctl new <TEMPLATE> [-l|--list] [-n <PROJECTNAME>] [-p <TARGETDIR>]
--list
list all templates
TEMPLATE LIST
console / webapi / mvc / grpc / xxl-job / iot / simpleweb / microservice
-n
generate folder by project name
-p
output files to target directory.
such as
yuanbootctl new console -n demo -p /Projects
add (Not realized)
add code snippet to the file, filepath was for default settings.
yuanbootctl add <SNIPPET> [-l|--list] [-f|--file <filepath>]
SNIPPET LIST
dockerfile / config / controller / job-handler / hostservice / startup / web-middleware / web-filter / grpc-interceptor
build
build current working directory
yuanbootctl build
run
running current working directory app
yuanbootctl run
version
display yuanboot version
yuanbootctl version