Improve styler documentation
Replaced `list templates` with correct command `list packages` in styler command line help printout.
This commit is contained in:
parent
3dac8e5034
commit
9919c68975
1 changed files with 3 additions and 3 deletions
|
@ -55,7 +55,7 @@ usage() {
|
||||||
" set [theme] Set the theme. Use any valid base16 theme name (without base16- prefix)." \
|
" set [theme] Set the theme. Use any valid base16 theme name (without base16- prefix)." \
|
||||||
" Same as 'theme' option, but changes will be made permanent." \
|
" Same as 'theme' option, but changes will be made permanent." \
|
||||||
"" \
|
"" \
|
||||||
" list [processors|template|themes] Print out all currently installed processors, templates, or themes from selection. " \
|
" list [processors|packages|themes] Print out all currently installed processors, templates, or themes from selection. " \
|
||||||
"" \
|
"" \
|
||||||
" download [username/repository] Download a base16 template into the package directory or download a processor16" \
|
" download [username/repository] Download a base16 template into the package directory or download a processor16" \
|
||||||
" into the processor directory. Use user/repo format to automatically pull from github." \
|
" into the processor directory. Use user/repo format to automatically pull from github." \
|
||||||
|
@ -149,10 +149,10 @@ set_theme() {
|
||||||
# carry standard names this removes everything before base16-
|
# carry standard names this removes everything before base16-
|
||||||
# the result is the application it targets
|
# the result is the application it targets
|
||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
appext=$(sed "s|^[[:alnum:]]\{1,\}/base16-||" <<<"$pkg")
|
appext=$(sed -e 's|^[A-Za-z0-9-]\{1,\}/base16-||' <<<"$pkg")
|
||||||
|
|
||||||
# Compares application extension with existing processors and runs the appropriate processor if found
|
# Compares application extension with existing processors and runs the appropriate processor if found
|
||||||
processor=$(find "$PROCESSOR_PATH" -type f -name "theme_$appext")
|
processor=$(find "$PROCESSOR_PATH" -type f | grep -e "theme_$appext")
|
||||||
if [[ -f "$processor" ]]; then
|
if [[ -f "$processor" ]]; then
|
||||||
"$processor" "$PACKAGE_PATH" "$pkg" "$theme" "$permanent"
|
"$processor" "$PACKAGE_PATH" "$pkg" "$theme" "$permanent"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue