(bash) add help text for cl function
This commit is contained in:
parent
f0f66785af
commit
597e00f31e
1 changed files with 8 additions and 0 deletions
|
|
@ -173,6 +173,14 @@ cdf() {
|
||||||
|
|
||||||
# clone repository
|
# clone repository
|
||||||
cl() {
|
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 url=$1
|
||||||
local ghq_dir="$HOME/ghq"
|
local ghq_dir="$HOME/ghq"
|
||||||
local namespace=""
|
local namespace=""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue