diff --git a/commands/git/clone.sh b/commands/git/clone.sh index a7ef470..17e5d3d 100755 --- a/commands/git/clone.sh +++ b/commands/git/clone.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Clone GitHub repository. ##? ##? Usage: @@ -12,6 +10,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? git clone my-org my-cool-repo ##? git clone my-username my-cool-repo ~/Documents/Projects +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare destination_dir org_name repo_name diff --git a/commands/git/local-branches.sh b/commands/git/local-branches.sh index ac3a927..2c1e3e6 100755 --- a/commands/git/local-branches.sh +++ b/commands/git/local-branches.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Find git repositories with local branches. ##? ##? Usage: @@ -11,6 +9,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? Options: ##? Path to the directory to search in [default: .] +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare path diff --git a/commands/git/local-changes.sh b/commands/git/local-changes.sh index 60ca0b3..13c4411 100755 --- a/commands/git/local-changes.sh +++ b/commands/git/local-changes.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Find git repositories with uncommitted changes. ##? ##? Usage: @@ -11,6 +9,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? Options: ##? Path to the directory to search in [default: .] +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare path diff --git a/commands/git/stashed-changes.sh b/commands/git/stashed-changes.sh index 0f51c4e..8874eeb 100755 --- a/commands/git/stashed-changes.sh +++ b/commands/git/stashed-changes.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Find git repositories with stashed changes. ##? ##? Usage: @@ -11,6 +9,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? Options: ##? Path to the directory to search in [default: .] +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare path diff --git a/commands/git/trigger.sh b/commands/git/trigger.sh index f893c66..e592f82 100755 --- a/commands/git/trigger.sh +++ b/commands/git/trigger.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Trigger continuous integration (CI) on GitHub repository, such as GitHub Action. ##? ##? This command will make an empty commit and push to the current branch. @@ -10,6 +8,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? Usage: ##? git trigger [--force] +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare force diff --git a/commands/setup/java.sh b/commands/setup/java.sh index 9745810..6e935e6 100755 --- a/commands/setup/java.sh +++ b/commands/setup/java.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Set up Java on your computer. ##? ##? This script installs 'jenv' and Azul Zulu Java, which works in architectures x86_64 and arm64. @@ -21,6 +19,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? setup java ##? setup java --version=17 +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare version diff --git a/commands/setup/update.sh b/commands/setup/update.sh index e7746c3..6d59706 100755 --- a/commands/setup/update.sh +++ b/commands/setup/update.sh @@ -1,8 +1,6 @@ #!/usr/bin/env bash set -euo pipefail -source "${CLI_DIR}/core/helpers.sh" - ##? Update Homebrew and conda packages. ##? ##? Usage: @@ -17,6 +15,7 @@ source "${CLI_DIR}/core/helpers.sh" ##? setup update --conda ##? setup update --brew --conda +source "${CLI_DIR}/core/helpers.sh" parse_help "$@" declare brew conda