From 597e00f31ef05fbf6d8906207b53cfb85e58865e Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:58:02 -0500 Subject: [PATCH] (bash) add help text for cl function --- bash/.bashrc.arch | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bash/.bashrc.arch b/bash/.bashrc.arch index 93f21ff..a6110ca 100644 --- a/bash/.bashrc.arch +++ b/bash/.bashrc.arch @@ -173,6 +173,14 @@ cdf() { # clone repository cl() { + if [[ $# -eq 0 ]]; then + # help text + echo "Usage: cl REPOSITORY_NAME" + echo "Usage: cl REPOSITORY_URL" + echo "Usage: cl (hub|lab) REPOSITORY_NAME" + echo "Usage: cl (hub|lab) NAMESPACE REPOSITORY_NAME" + fi + local url=$1 local ghq_dir="$HOME/ghq" local namespace=""