qolpp as script
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
_qColVersion() { echo Version 2019.05.07.0; }
|
_qColVersion() { echo Version 2019.06.21.0; }
|
||||||
|
|
||||||
_qColHelp() {
|
_qColHelp() {
|
||||||
_qColVersion
|
_qColVersion
|
||||||
@@ -39,6 +39,11 @@ Run qolop as script to print ANSI code table, or evaluate commands
|
|||||||
The first command produces string with ANSI commands, the
|
The first command produces string with ANSI commands, the
|
||||||
second will escape the escape characters, so you can copy/paste
|
second will escape the escape characters, so you can copy/paste
|
||||||
it in to another echo -e command.
|
it in to another echo -e command.
|
||||||
|
|
||||||
|
qolop c G
|
||||||
|
qolop p green
|
||||||
|
|
||||||
|
produce the same output, just the color code
|
||||||
'
|
'
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -236,6 +241,16 @@ if [[ "$0" = "${BASH_SOURCE[0]}" ]]; then
|
|||||||
echo ''
|
echo ''
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
[[ "$1" = "c" ]] && {
|
||||||
|
shift 1
|
||||||
|
_qCol "$@"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
[[ "$1" = "p" ]] && {
|
||||||
|
shift 1
|
||||||
|
_qParse "$@"
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
_qColHelp
|
_qColHelp
|
||||||
[[ "$1" = *"help" ]] && exit
|
[[ "$1" = *"help" ]] && exit
|
||||||
|
|||||||
Reference in New Issue
Block a user