Add command aliases

This commit is contained in:
0x1eef 2024-09-24 07:28:47 -03:00
parent ef22971eec
commit 207713a5fb
3 changed files with 5 additions and 5 deletions

View file

@ -16,8 +16,8 @@ For example, the following command will create a "myapp" directory from the
user@localhost$ webskel new myapp dolphins7 user@localhost$ webskel new myapp dolphins7
* **webskel ls** <br> * **webskel list** <br>
The `webskel ls` command lists all available skeletons by name, and includes a The `webskel list` command lists all available skeletons by name, and includes a
short description as well. These skeletons are located in the [share/webskel/](share/webskel) short description as well. These skeletons are located in the [share/webskel/](share/webskel)
directory, which is typically installed relative to `/usr/local`: directory, which is typically installed relative to `/usr/local`:

View file

@ -14,11 +14,11 @@ libexec="${localbase}"/libexec/webskel
## ##
# main # main
case $1 in case $1 in
"new") n|new)
"${libexec}"/commands/new "${2}" "${3}" "${libexec}"/commands/new "${2}" "${3}"
;; ;;
"ls") l|list)
"${libexec}"/commands/ls "${libexec}"/commands/list
;; ;;
*) *)
printf "Usage: webskel COMMAND [OPTIONS]\n" printf "Usage: webskel COMMAND [OPTIONS]\n"