mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-24 17:23:36 +02:00
jw-pkg.py: Enable argcomplete
Register a bash-completion handler for jw-pkg.py, and mark it with PYTHON_ARGCOMPLETE_OK. Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
5d84eb0877
commit
e9cb539ecf
3 changed files with 10 additions and 0 deletions
8
conf/bash-completion.d/Makefile
Normal file
8
conf/bash-completion.d/Makefile
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
TOPDIR = ../..
|
||||||
|
|
||||||
|
INSTALL_CFGDIR = $(ENV_PREFIX)/usr/share/bash-completion/completions
|
||||||
|
LOCAL_CFG = $(filter-out Makefile,$(wildcard *))
|
||||||
|
PACKAGE_INSTALL_DIR = false
|
||||||
|
|
||||||
|
include $(TOPDIR)/make/proj.mk
|
||||||
|
include $(JWBDIR)/make/conf.mk
|
||||||
1
conf/bash-completion.d/jw-pkg.py
Normal file
1
conf/bash-completion.d/jw-pkg.py
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
eval "$(register-python-argcomplete /opt/jw-pkg/bin/jw-pkg.py jw-pkg.py)"
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
# PYTHON_ARGCOMPLETE_OK
|
||||||
|
|
||||||
from jw.pkg.App import App
|
from jw.pkg.App import App
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue