Files
fish-shell/share/functions/__fish_is_zfs_feature_enabled.fish
Johannes Altmanninger 2c0e912fe1 Mark private functions that don't need localization
See the next commit.

Part of #11833

(cherry picked from commit a53db72564)
2025-09-30 11:52:41 +02:00

9 lines
342 B
Fish

# localization: skip(private)
function __fish_is_zfs_feature_enabled \
-a feature pool \
-d "Returns 0 if the given ZFS pool feature is active or enabled for the given pool or for any pool if none specified"
type -q zpool || return
zpool get -H -o value $feature $pool 2>/dev/null | string match -rq '^(enabled|active)$'
end