feat(help): header-driven --help for listing presets
lD, lsr, lss, lstree, lt, ltr, lx and ld. None shadows a real binary, so there is no disabled-fallback contract to honour, and `eza --help` documented eza rather than the preset that is these functions' entire content. First-arg-only interception leaves `lt -la --help` passing through to eza untouched.
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
# EXAMPLE
|
||||
# ld
|
||||
function ld --description 'Run lazydocker on the current Docker context'
|
||||
__fish_help_header (status current-function) $argv; and return 0
|
||||
|
||||
if not type -q docker
|
||||
echo "ld: docker is not installed" >&2
|
||||
return 1
|
||||
|
||||
Reference in New Issue
Block a user