refactor(config): migrate C4 integrations call sites to self-identifying guard
This commit is contained in:
@@ -4,6 +4,9 @@
|
||||
# CATEGORY
|
||||
# 08-terminal-management
|
||||
#
|
||||
# COMPONENT
|
||||
# integrations/window-mgmt
|
||||
#
|
||||
# SYNOPSIS
|
||||
# spwin [args...]
|
||||
#
|
||||
@@ -22,7 +25,7 @@
|
||||
# spwin
|
||||
function spwin --wraps='~/.config/kitty/spawn-window.sh' --description 'spawn window in kitty or wezterm'
|
||||
# Opinionated guard (C4): integrations disabled
|
||||
if not __fish_config_op_enabled __fish_config_op_integrations
|
||||
if not __fish_config_op_enabled (status current-function)
|
||||
set -l c_err (set_color red)
|
||||
set -l c_reset (set_color normal)
|
||||
echo "$c_err"'spwin: disabled by __fish_config_op_integrations'"$c_reset" >&2
|
||||
|
||||
Reference in New Issue
Block a user