提交 812abe83 编写于 作者: L liuxu 提交者: Liu Jiaming

Scripts: apollo.sh usage updated

上级 1b7d7f7e
......@@ -99,7 +99,27 @@ function build_test_and_lint() {
}
function _usage() {
warning "Usage: Not implemented yet"
echo -e "\n${RED}Usage${NO_COLOR}:
.${BOLD}/apollo.sh${NO_COLOR} [OPTION]"
echo -e "\n${RED}Options${NO_COLOR}:
${BLUE}config [options]${NO_COLOR}: config bazel build environment either non-interactively (default) or interactively.
${BLUE}build [module]${NO_COLOR}: run build for cyber (<module> = cyber) or modules/<module>. If <module> not specified, build all.
${BLUE}build_dbg [module]${NO_COLOR}: run debug build (default).
${BLUE}build_opt [module]${NO_COLOR}: run optimized build.
${BLUE}build_cpu [module]${NO_COLOR}: build in CPU mode. Equivalent to 'bazel build --config=cpu'
${BLUE}build_gpu [module]${NO_COLOR}: run build in GPU mode. Equivalent to 'bazel build --config=gpu'
${BLUE}build_opt_gpu [module]${NO_COLOR}: optimized build in GPU mode. Equivalent to 'bazel build --config=opt --config=gpu'
${BLUE}test [module]${NO_COLOR}: run unit tests for cyber (<module> = cyber) or modules/<module>. If <module> not specified, unit test all.
${BLUE}lint${NO_COLOR}: run code style check
${BLUE}buildify${NO_COLOR}: run 'buildifier' to fix style of bazel files
${BLUE}check${NO_COLOR}: run build, test and lint on all modules. Make sure check pass before checking in new code
${BLUE}build_fe${NO_COLOR}: compile dreamland frontend javascript. Requires all the node_modules installed already
${BLUE}build_teleop${NO_COLOR}: run build with teleop enabled.
${BLUE}build_prof [module]${NO_COLOR}: build with perf profiling support. Not implemented yet.
${BLUE}doc${NO_COLOR}: generate doxygen document
${BLUE}clean${NO_COLOR}: cleanup, including 'bazel clean --async'.
${BLUE}usage${NO_COLOR}: show this message
"
}
function main() {
......
......@@ -35,6 +35,7 @@ export TAB=" " # 4 spaces
BOLD='\033[1m'
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='\033[32m'
WHITE='\033[34m'
YELLOW='\033[33m'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册