Skip to content

Commit

Permalink
Bring opts page up-to-speed
Browse files Browse the repository at this point in the history
  • Loading branch information
L1ghtmann authored and 0cyn committed Jan 13, 2024
1 parent cf3d65f commit 980f93f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/dragon
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ while ! [[ -z $1 ]]; do
# --------
# Commands
# --------
u | update | upgrade ) source $TOOLPATH/upgrader
up | update | upgrade ) source $TOOLPATH/upgrader
drexit
;;
rs | respring ) python3 -m dragon.device run sbreload
Expand Down
32 changes: 25 additions & 7 deletions src/dragon/shscripts/util
Original file line number Diff line number Diff line change
Expand Up @@ -78,24 +78,42 @@ usage()
echo -e " ${PackageColor}do${NC} - ${BoldColor}Build and Install${NC}"
echo -e " ${PackageColor}c${NC} | clean - ${BoldColor}Clear build cache${NC}"
echo -e " ${PackageColor}b${NC} | build|make - ${BoldColor}Compile, link, and package your project${NC}"
echo -e " ${PackageColor}g${NC} | gen|generate - ${BoldColor}Create build files without actually building${NC}"
echo ""
echo -e "${PrefixColor}Configuration ${BoldColor}-=-=-${NC}"
echo -e " ${PackageColor}r${NC} | release - ${BoldColor}Create a release build (defines NDEBUG, enables 'releaseflags' value)${NC}"
echo -e " ${PackageColor}ro${NC} | rootless - ${BoldColor}Build for rootless package scheme${NC}"
echo -e " ${PackageColor}ddebug${NC} - ${BoldColor}Enable verbose debug logs${NC}"
echo -e " ${PackageColor}vn${NC} - ${BoldColor}Enable verbose ninja(-build)${NC}"
echo -e " ${PackageColor}vd${NC} - ${BoldColor}Enable verbose dragon${NC}"
echo -e " ${PackageColor}vg${NC} - ${BoldColor}Enable verbose dragongen${NC}"
echo -e " ${PackageColor}norm${NC} - ${BoldColor}Retain build.ninja after building${NC}"
echo ""
echo "Common invocations are 'dragon c b i' (clean all, build, install) or 'dragon do' (build and install)"
echo ""
echo -e "${PrefixColor}Distribution ${BoldColor}-=-=-${NC}"
echo -e " ${PackageColor}r${NC} | release - ${BoldColor}Create a release build (defines NDEBUG, enables 'releaseflags' value)${NC}"
echo -e " ${PackageColor}i${NC} | install - ${BoldColor}Install latest build to build device${NC}"
echo -e " ${PackageColor}u${NC} | uninstall - ${BoldColor}Uninstall latest build from build device${NC}"
echo -e " ${PackageColor}sn${NC} | send <file> - ${BoldColor}Install an arbitrary .deb to the device${NC}"
echo -e " ${PackageColor}sim${NC} - ${BoldColor}Install to the simulator instead of a device${NC}"
echo -e " ${PackageColor}i${NC} | install - ${BoldColor}Install latest build to build device${NC}"
echo -e " ${PackageColor}u${NC} | uninstall - ${BoldColor}Uninstall latest build from build device${NC}"
echo -e " ${PackageColor}sn${NC} | send <file> - ${BoldColor}Install an arbitrary .deb to the device${NC}"
echo -e " ${PackageColor}sim${NC} | simulator - ${BoldColor}Install to the simulator instead of a device${NC}"
echo ""
echo -e "${PrefixColor}Device Management ${BoldColor}-=-=-${NC}"
echo -e " ${PackageColor}s${NC} | device - ${BoldColor}Set build device IP/Port${NC}"
echo -e " ${PackageColor}rs${NC} | respring - ${BoldColor}Respring the current build device${NC}"
echo -e " ${PackageColor}dr${NC} | devicerun - ${BoldColor}Run anything after this flag on device${NC}"
echo ""
echo -e "${PrefixColor}Tools ${BoldColor}-=-=-${NC}"
echo -e " ${PackageColor}d${NC} | debug [Process] - ${BoldColor}Start a debugging server on device and connect to it (Can be used with the install flag as well)${NC}"
echo -e " ${PackageColor}exp${NC}| export - ${BoldColor}Tell ninja to create a compile_commands.json${NC}"
echo -e " ${PackageColor}debug [Process]${NC} - ${BoldColor}Start a debugging server on device and connect to it (Can be used with the install flag as well)${NC}"
echo -e " ${PackageColor}exp${NC} | export - ${BoldColor}Tell ninja to create a compile_commands.json${NC}"
echo -e " ${PackageColor}lo${NC} | objcs - ${BoldColor}Configure llvm-objcs for use with dragon${NC}"
echo -e " ${PackageColor}sr${NC} | rconf - ${BoldColor}Setup remote project build${NC}"
echo -e " ${PackageColor}up${NC} | update|upgrade - ${BoldColor}Update dragon${NC}"
echo -e " ${PackageColor}test${NC} - ${BoldColor}Run the test suite${NC}"
echo -e " ${PackageColor}time${NC} - ${BoldColor}Print time for each bash subcommand to run${NC}"
echo ""
echo -e "${PrefixColor}Misc ${BoldColor}-=-=-${NC}"
echo -e " ${PackageColor}v${NC} | -v - ${BoldColor}Prints version information${NC}"
echo -e " ${PackageColor}h${NC} | -h|help - ${BoldColor}Prints this help page${NC}"
echo ""
echo -e "${PrefixColor}-=-=-${NC}"
echo ""
Expand Down

0 comments on commit 980f93f

Please sign in to comment.