elvish_config/lib/moi/completion/archiver.elv

30 lines
439 B
Plaintext
Raw Normal View History

2020-03-13 14:03:36 +00:00
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~