This commit is contained in:
Marc Beninca 2025-07-27 16:51:38 +02:00
parent 8709e457a8
commit 2bfddfbd59
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -1,34 +0,0 @@
# handle block devices
# list block devices
#= lb
rwx_list_block() {
rwx_list_block_output \
"SIZE" \
"TYPE" \
"FSTYPE" \
"LABEL" \
"MOUNTPOINTS" \
"${@}"
}
# base arguments
#| lsblk
#= lbne
rwx_list_block_no_empty() {
lsblk \
--noempty \
"${@}"
}
# output arguments
#= lbo
rwx_list_block_output() {
local argument
local arguments="NAME"
for argument in "${@}"; do
arguments="${arguments},${argument}"
done
rwx_list_block_no_empty \
--output "${arguments}"
}