bin/tab_completion.sh in markdown_exec-1.3.3.5 vs bin/tab_completion.sh in markdown_exec-1.3.6
- old
+ new
@@ -11,11 +11,11 @@
{
COMPREPLY='.'
}
_mde_echo_version() {
- echo "1.3.3.5"
+ echo "1.3.6"
}
_mde() {
local cur prev opts
cur="${COMP_WORDS[COMP_CWORD]}"
@@ -46,12 +46,10 @@
--user-must-approve) COMPREPLY="1"; return 0 ;;
-q) COMPREPLY="1"; return 0 ;;
- --display-level) COMPREPLY="1"; return 0 ;;
-
--list-count) COMPREPLY="32"; return 0 ;;
--output-execution-summary) COMPREPLY="0"; return 0 ;;
--output-script) COMPREPLY="0"; return 0 ;;
@@ -64,19 +62,21 @@
--saved-script-folder) COMPREPLY="logs"; return 0 ;;
--saved-stdout-folder) COMPREPLY="logs"; return 0 ;;
+ --display-level) COMPREPLY="1"; return 0 ;;
+
esac
fi
fi
# current word is an option name or start of
# present matching option names
#
if [[ ${cur} == -* ]] ; then
- opts=("--block-name" "--config" "--debug" "--filename" "--help" "--path" "--user-must-approve" "--version" "--exit" "--list-blocks" "--list-default-env" "--list-default-yaml" "--list-docs" "--list-recent-output" "--list-recent-scripts" "--select-recent-output" "--select-recent-script" "--tab-completions" "--run-last-script" "--pwd" "--display-level" "--list-count" "--output-execution-summary" "--output-script" "--output-stdout" "--save-executed-script" "--save-execution-output" "--saved-script-folder" "--saved-stdout-folder")
+ opts=("--block-name" "--config" "--debug" "--filename" "--help" "--path" "--user-must-approve" "--version" "--exit" "--list-blocks" "--list-default-env" "--list-default-yaml" "--list-docs" "--list-recent-output" "--list-recent-scripts" "--select-recent-output" "--select-recent-script" "--tab-completions" "--run-last-script" "--pwd" "--list-count" "--output-execution-summary" "--output-script" "--output-stdout" "--save-executed-script" "--save-execution-output" "--saved-script-folder" "--saved-stdout-folder" "--display-level")
COMPREPLY=( $(compgen -W "$(printf "'%s' " "${opts[@]}")" -- "${cur}") )
return 0
fi
@@ -107,12 +107,10 @@
--user-must-approve) COMPREPLY=".BOOL."; return 0 ;;
-q) COMPREPLY=".BOOL."; return 0 ;;
- --display-level) COMPREPLY=".INT.0-3."; return 0 ;;
-
--list-count) COMPREPLY=".INT.1-."; return 0 ;;
--output-execution-summary) COMPREPLY=".BOOL."; return 0 ;;
--output-script) COMPREPLY=".BOOL."; return 0 ;;
@@ -125,10 +123,12 @@
--saved-script-folder) COMPREPLY=".RELATIVE_PATH."; return 0 ;;
--saved-stdout-folder) COMPREPLY=".RELATIVE_PATH."; return 0 ;;
+ --display-level) COMPREPLY=".INT.0-3."; return 0 ;;
+
esac
fi
# current word is unrecognized
# present matching directory or file names
@@ -136,6 +136,6 @@
__filedirs
}
complete -o filenames -o nospace -F _mde mde
# _mde_echo_version
-# echo "Updated: 2023-10-05 14:21:31 UTC"
+# echo "Updated: 2023-10-15 15:31:41 UTC"