mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-16 13:34:48 +02:00
33 lines
680 B
Python
33 lines
680 B
Python
#!/usr/bin/env python
|
|
# License: GPLv3 Copyright: 2025, Kovid Goyal <kovid at kovidgoyal.net>
|
|
|
|
import sys
|
|
|
|
from kitty.simple_cli_definitions import CompletionSpec
|
|
|
|
|
|
def main(args: list[str]) -> None:
|
|
raise SystemExit('This must be run as kitten choose-files')
|
|
|
|
|
|
usage = '[directory to start choosing files in]'
|
|
|
|
|
|
OPTIONS = '''
|
|
'''.format
|
|
|
|
|
|
help_text = '''\
|
|
'''
|
|
|
|
|
|
if __name__ == '__main__':
|
|
main(sys.argv)
|
|
elif __name__ == '__doc__':
|
|
cd = sys.cli_docs # type: ignore
|
|
cd['usage'] = usage
|
|
cd['options'] = OPTIONS
|
|
cd['help_text'] = help_text
|
|
cd['short_desc'] = 'Choose files, fast'
|
|
cd['args_completion'] = CompletionSpec.from_string('type:directory')
|