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

View file

@ -2,8 +2,8 @@
# list block devices
#= lb
a__list_block() {
a__list_block_output \
rwx_list_block() {
rwx_list_block_output \
"SIZE" \
"TYPE" \
"FSTYPE" \
@ -13,8 +13,9 @@ a__list_block() {
}
# base arguments
#| lsblk
#= lbne
a__list_block_no_empty() {
rwx_list_block_no_empty() {
lsblk \
--noempty \
"${@}"
@ -22,12 +23,12 @@ a__list_block_no_empty() {
# output arguments
#= lbo
a__list_block_output() {
rwx_list_block_output() {
local argument
local arguments="NAME"
for argument in "${@}"; do
arguments="${arguments},${argument}"
done
a__list_block_no_empty \
rwx_list_block_no_empty \
--output "${arguments}"
}