elvish_config/lib/moi/completion/archiver.elv
2020-03-13 15:03:36 +01:00

30 lines
439 B
Plaintext

options = [
z
l
x
b
g
h
]
description = [
&z='zst compression (default)'
&l='lz4 compression'
&x='xz compression'
&b='bz2 compression'
&g='gzip compression'
&h='display help'
]
fn -options {
each [o]{
put [&short=$o &desc=$description[$o]]
} $options
}
fn complete [@argv]{
edit:complete-getopt $argv [(-options)] [ $edit:complete-filename~ ...]
}
edit:completion:arg-completer[archiver] = $complete~