aboutsummaryrefslogtreecommitdiff
path: root/completions
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-06-26 21:15:09 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-06-26 21:15:09 +0000
commit5dca0458a09ebc586fda49c50533976f055d8de2 (patch)
tree9e1f768a9e3302fe5048a8d3a86cb614a8a57e5e /completions
parentvt: don’t reset utf8proc grapheme state when we’re not at a grapheme break (diff)
log: add LOG_CLASS_NONE and use as initializer for log_level
This means that logging will be completely disabled until log_init() has been called, which is useful to prevent log spam when running UNITTEST{} blocks in debug builds. Note that this doesn't change the default log level at runtime, which was already being set to LOG_CLASS_INFO in main.c and client.c. The new log level is also exposed to the command-line interface as `--log-level=none`, which allows disabling logging entirely.
Diffstat (limited to 'completions')
-rw-r--r--completions/bash/foot2
-rw-r--r--completions/bash/footclient2
-rw-r--r--completions/fish/foot.fish2
-rw-r--r--completions/fish/footclient.fish2
-rw-r--r--completions/zsh/_foot2
-rw-r--r--completions/zsh/_footclient2
6 files changed, 6 insertions, 6 deletions
diff --git a/completions/bash/foot b/completions/bash/foot
index f03a9f53..f9d9d0fd 100644
--- a/completions/bash/foot
+++ b/completions/bash/foot
@@ -68,7 +68,7 @@ _foot()
which fc-list > /dev/null || return 1
COMPREPLY=( $(compgen -W "$(fc-list : family | sed 's/,/\n/g' | uniq | tr -d ' ')" -- ${cur}) )
elif [[ ${prev} == '--log-level' ]] ; then
- COMPREPLY=( $(compgen -W "error warning info" -- ${cur}) )
+ COMPREPLY=( $(compgen -W "none error warning info" -- ${cur}) )
elif [[ ${prev} == '--log-colorize' ]] ; then
COMPREPLY=( $(compgen -W "never always auto" -- ${cur}) )
elif [[ ${prev} =~ ^(--app-id|--help|--override|--title|--version|--window-size-chars|--window-size-pixels|--check-config)$ ]] ; then
diff --git a/completions/bash/footclient b/completions/bash/footclient
index 8e0aa017..fea45945 100644
--- a/completions/bash/footclient
+++ b/completions/bash/footclient
@@ -59,7 +59,7 @@ _footclient()
which toe > /dev/null || return 1
COMPREPLY=( $(compgen -W "$(toe -a | awk '$1 ~ /[+]/ {next}; {print $1}')" -- ${cur}) )
elif [[ ${prev} == '--log-level' ]] ; then
- COMPREPLY=( $(compgen -W "error warning info" -- ${cur}) )
+ COMPREPLY=( $(compgen -W "none error warning info" -- ${cur}) )
elif [[ ${prev} == '--log-colorize' ]] ; then
COMPREPLY=( $(compgen -W "never always auto" -- ${cur}) )
elif [[ ${prev} =~ ^(--app-id|--help|--override|--title|--version|--window-size-chars|--window-size-pixels|)$ ]] ; then
diff --git a/completions/fish/foot.fish b/completions/fish/foot.fish
index dbec61e7..81c7da61 100644
--- a/completions/fish/foot.fish
+++ b/completions/fish/foot.fish
@@ -15,7 +15,7 @@ complete -c foot -x -s W -l window-size-chars
complete -c foot -F -s s -l server -d "run as server; open terminals by running footclient"
complete -c foot -s H -l hold -d "remain open after child process exits"
complete -c foot -r -s p -l print-pid -d "print PID to this file or FD when up and running (server mode only)"
-complete -c foot -x -s d -l log-level -a "info warning error" -d "log-level (info)"
+complete -c foot -x -s d -l log-level -a "info warning error none" -d "log-level (info)"
complete -c foot -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr"
complete -c foot -s S -l log-no-syslog -d "disable syslog logging (server mode only)"
complete -c foot -s v -l version -d "show the version number and quit"
diff --git a/completions/fish/footclient.fish b/completions/fish/footclient.fish
index 9b8caa84..8133f663 100644
--- a/completions/fish/footclient.fish
+++ b/completions/fish/footclient.fish
@@ -12,7 +12,7 @@ complete -c footclient -F -s s -l server-socket
complete -c footclient -s H -l hold -d "remain open after child process exits"
complete -c footclient -s N -l no-wait -d "detach the client process from the running terminal, exiting immediately"
complete -c footclient -x -s o -l override -d "configuration option to override, in form SECTION.KEY=VALUE"
-complete -c footclient -x -s d -l log-level -a "info warning error" -d "log-level (info)"
+complete -c footclient -x -s d -l log-level -a "info warning error none" -d "log-level (info)"
complete -c footclient -x -s l -l log-colorize -a "always never auto" -d "enable or disable colorization of log output on stderr"
complete -c footclient -s v -l version -d "show the version number and quit"
complete -c footclient -s h -l help -d "show help message and quit"
diff --git a/completions/zsh/_foot b/completions/zsh/_foot
index b3f9b42c..0f184cc0 100644
--- a/completions/zsh/_foot
+++ b/completions/zsh/_foot
@@ -18,7 +18,7 @@ _arguments \
'(-s --server)'{-s,--server}'[run as server; open terminals by running footclient]:server:_files' \
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \
'(-p --print-pid)'{-p,--print-pid}'[print PID to this file or FD when up and running (server mode only)]:pidfile:_files' \
- '(-d --log-level)'{-d,--log-level}'[log level (info)]:loglevel:(info warning error)' \
+ '(-d --log-level)'{-d,--log-level}'[log level (info)]:loglevel:(info warning error none)' \
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
'(-S --log-no-syslog)'{-s,--log-no-syslog}'[disable syslog logging (server mode only)]' \
'(-v --version)'{-v,--version}'[show the version number and quit]' \
diff --git a/completions/zsh/_footclient b/completions/zsh/_footclient
index 3889c488..81b2ea95 100644
--- a/completions/zsh/_footclient
+++ b/completions/zsh/_footclient
@@ -15,7 +15,7 @@ _arguments \
'(-H --hold)'{-H,--hold}'[remain open after child process exits]' \
'(-N --no-wait)'{-N,--no-wait}'[detach the client process from the running terminal, exiting immediately]' \
'(-o --override)'{-o,--override}'[configuration option to override, in form SECTION.KEY=VALUE]:()' \
- '(-d --log-level)'{-d,--log-level}'[log level (info)]:loglevel:(info warning error)' \
+ '(-d --log-level)'{-d,--log-level}'[log level (info)]:loglevel:(info warning error none)' \
'(-l --log-colorize)'{-l,--log-colorize}'[enable or disable colorization of log output on stderr]:logcolor:(never always auto)' \
'(-v --version)'{-v,--version}'[show the version number and quit]' \
'(-h --help)'{-h,--help}'[show help message and quit]' \