@@ -265,12 +265,8 @@ install_cuda_dependencies_package() {
265
265
}
266
266
267
267
# Setup the environment
268
- # Build HoloHub sample apps
269
268
setup_desc () {
270
- echo " "
271
- echo " Install the required dependencies for HoloHub (sample applications)"
272
- echo " Usage: ./run setup"
273
- echo " "
269
+ echo -e " ${BOLD} Install the standard set of dependencies for HoloHub applications${NOCOLOR} "
274
270
}
275
271
276
272
setup () {
@@ -403,16 +399,19 @@ setup() {
403
399
# ===========================================================================================
404
400
# Lint
405
401
406
- install_lint_deps_desc () { echo ' Install lint dependencies
402
+ install_lint_deps_desc () {
403
+ echo -e "
404
+ ${BOLD} Install lint dependencies${NOCOLOR}
407
405
408
- This command will install the dependencies required to run the linting tools.
406
+ This command will install the dependencies required to run the linting tools.
409
407
410
- - Python linting: ruff, isort, black, mypy
411
- - CMake linting: cmakelint
412
- - C++ linting: cpplint, clang-format
413
- - Spelling: codespell
414
- '
408
+ - Python linting: ruff, isort, black, mypy
409
+ - CMake linting: cmakelint
410
+ - C++ linting: cpplint, clang-format
411
+ - Spelling: codespell
412
+ "
415
413
}
414
+
416
415
install_lint_deps () {
417
416
# We use $(command) || exit_code=1 to run all linting tools, and exit
418
417
# with failure after all commands were executed if any of them failed
@@ -431,18 +430,20 @@ install_lint_deps() {
431
430
exit $exit_code
432
431
}
433
432
434
- lint_desc () { echo ' Lint the repository
433
+ lint_desc () {
434
+ echo -e "
435
+ ${BOLD} Lint the repository${NOCOLOR}
435
436
436
437
Python linting: black, isort, ruff
437
438
C++ linting: cpplint
438
439
CMake linting: cmakelint
439
440
Spelling: codespell
440
441
441
- Arguments:
442
- $@ - directories to lint (default: .)
442
+ ${CYAN} USAGE:${NOCOLOR} ./run lint <directories to lint (default: .)>
443
443
444
- Options:
445
- --fix: to fix all linting errors'
444
+ ${CYAN} Options:${NOCOLOR}
445
+ --fix: to fix all linting errors
446
+ "
446
447
}
447
448
448
449
lint () {
@@ -759,19 +760,20 @@ build() {
759
760
760
761
# Launch a sample app
761
762
launch_desc () {
762
- echo " "
763
- echo " Launch command allowing to run application directly."
764
- echo " Usage: ./run launch <application_name> [language: cpp|python] [--extra_args <args>]"
765
- echo " Options:"
766
- echo " --extra_args <args> : additional arguments passed to the application command"
767
- echo " --nsys_profile : profile using Nsight Systems"
768
- echo " --verbose : output additional run command information to stdout"
769
- echo " "
770
- echo " "
771
- echo " Use './run list' first to list the available applications"
772
- echo " Note that applications might be listed but not built."
773
- echo " Make sure you ./run build the application first"
774
- echo " "
763
+ echo -e "
764
+ ${BOLD} Run an application.${NOCOLOR}
765
+
766
+ ${CYAN} USAGE:${NOCOLOR} ./run launch <application_name> [cpp|python] [options]
767
+
768
+ ${CYAN} Options:${NOCOLOR}
769
+ --extra_args <args> : additional arguments passed to the application command
770
+ --nsys_profile : profile using Nsight Systems
771
+ --verbose : output additional run command information to stdout
772
+
773
+
774
+ Use './run list' or './run list_apps' to list the available applications.
775
+ Make sure you call './run build <application_name>' to first build the application.
776
+ "
775
777
}
776
778
777
779
@@ -923,10 +925,11 @@ for k, v in obj[project_type]["run"].items():
923
925
# Other options
924
926
925
927
list_desc () {
926
- echo " "
927
- echo " Display the list of applications to run."
928
- echo " Usage: ./run list"
929
- echo " "
928
+ echo -e "
929
+ ${BOLD} Display the list of Holohub targets.${NOCOLOR}
930
+
931
+ Includes applications, operators, packages.
932
+ "
930
933
}
931
934
932
935
list_cmake_dir_options () {
@@ -987,7 +990,7 @@ clear_cache() {
987
990
}
988
991
989
992
clear_cache_desc () {
990
- echo " Remove the build folders"
993
+ echo -e " ${BOLD} Remove the build folders${NOCOLOR} "
991
994
}
992
995
993
996
parse_args () {
@@ -1055,7 +1058,7 @@ print_usage() {
1055
1058
echo " list : List all the available build targets"
1056
1059
echo " build <package|application|operator> : Build a specific package, application, or operator"
1057
1060
echo " launch <application> <language> : Run the application"
1058
- echo
1061
+ echo
1059
1062
}
1060
1063
1061
1064
print_cmd_help_messages () {
0 commit comments