aboutsummaryrefslogtreecommitdiffstats
path: root/auto-auto-complete.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xauto-auto-complete.py23
1 files changed, 22 insertions, 1 deletions
diff --git a/auto-auto-complete.py b/auto-auto-complete.py
index a0e199d..4280e61 100755
--- a/auto-auto-complete.py
+++ b/auto-auto-complete.py
@@ -159,6 +159,25 @@ class Parser:
stack.append(item)
+
+'''
+Completion script generator for GNU Bash
+'''
+class GeneratorBASH:
+ '''
+ Constructor
+
+ @param program:str The command to generate completion for
+ @param unargumented:list<dict<str, list<str>>> Specification of unargumented options
+ @param argumented:list<dict<str, list<str>>> Specification of argumented options
+ @param variadic:list<dict<str, list<str>>> Specification of variadic options
+ @param suggestion:list<list<↑|str>> Specification of argument suggestions
+ '''
+ def __init__(self, program, unargumented, argumented, variadic, suggestion):
+ print("{bash}")
+
+
+
'''
mane!
'''
@@ -231,5 +250,7 @@ if __name__ == '__main__':
map[elem[0]] = elem[1:]
group[index] = map
- print(shell)
+ generator = 'Generator' + shell
+ generator = globals()[generator]
+ generator = generator(program, unargumented, argumented, variadic, suggestion)