Skip to content

Commit

Permalink
Refactor lnbuild script
Browse files Browse the repository at this point in the history
  • Loading branch information
thilinarmtb committed Apr 6, 2024
1 parent 0073ab6 commit 7c52688
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions lnbuild
Original file line number Diff line number Diff line change
Expand Up @@ -46,18 +46,22 @@ fi

function print_help() {
echo -e "Usage: ${0} [options]\n" \
"${cyan}--help:${reset} Print help for lnbuild script.\n" \
"${cyan}--install ${reset} Install libnomp.\n" \
"${cyan}--format ${reset} Format C code using clang-format.\n" \
"${cyan}--format-check ${reset} Check if C code is formatted correctly.\n" \
"${cyan}--tidy-check ${reset} Run clang-tidy to perform static analysis on C source.\n" \
"${cyan}--black ${reset} Format python code using black.\n" \
"${cyan}--black-check ${reset} Check if python code is formatted correctly.\n" \
"${cyan}--isort ${reset} Run isort to format python imports.\n" \
"${cyan}--isort-check ${reset} Check if python imports are formatted correctly.\n" \
"${cyan}--flake8-check ${reset} Run flake8 tests on python source.\n" \
"${cyan}--pylint-check ${reset} Run pylint to perform static analysis on python source.\n" \
"${cyan}--update-shell ${reset} Update shell configuration file.\n"
"${cyan}--help ${reset}\tPrint help for lnbuild script.\n" \
"${cyan}--install ${reset}\tInstall libnomp.\n" \
"${cyan}--format ${reset}\tFormat C code using clang-format.\n" \
"${cyan}--format-check ${reset}\tCheck if C code is formatted correctly.\n" \
"${cyan}--tidy-check ${reset}\tRun clang-tidy to perform static" \
"analysis on C source.\n" \
"${cyan}--black ${reset}\tFormat python code using black.\n" \
"${cyan}--black-check ${reset}\tCheck if python code is formatted" \
"correctly.\n" \
"${cyan}--isort ${reset}\tRun isort to format python imports.\n" \
"${cyan}--isort-check ${reset}\tCheck if python imports are formatted" \
"correctly.\n" \
"${cyan}--flake8-check ${reset}\tRun flake8 tests on python source.\n" \
"${cyan}--pylint-check ${reset}\tRun pylint to perform static analysis" \
"on python source.\n" \
"${cyan}--update-shell ${reset}\tUpdate shell configuration file."
}

# Read in command line arguments.
Expand Down

0 comments on commit 7c52688

Please sign in to comment.