summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_frontend/main.py')
-rw-r--r--buildstream/_frontend/main.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 679ff37e5..d894280e0 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -54,14 +54,12 @@ INDENT = 4
##################################################################
# Special completion for completing the bst elements in a project dir
-def complete_target(ctx, args, incomplete):
+def complete_target(args, incomplete):
"""
- :param ctx: context associated with the parsed command
:param args: full list of args typed before the incomplete arg
:param incomplete: the incomplete text to autocomplete
:return: all the possible user-specified completions for the param
"""
- app = ctx.obj
# First resolve the directory, in case there is an
# active --directory/-C option
@@ -100,10 +98,9 @@ def complete_target(ctx, args, incomplete):
return complete_path("File", incomplete, base_directory=base_directory)
-def override_completions(cmd_param, ctx, args, incomplete):
+def override_completions(cmd_param, args, incomplete):
"""
:param cmd_param: command definition
- :param ctx: context associated with the parsed command
:param args: full list of args typed before the incomplete arg
:param incomplete: the incomplete text to autocomplete
:return: all the possible user-specified completions for the param
@@ -118,7 +115,7 @@ def override_completions(cmd_param, ctx, args, incomplete):
cmd_param.name == 'except_' or
cmd_param.opts == ['--track'] or
cmd_param.opts == ['--track-except']):
- return complete_target(ctx, args, incomplete)
+ return complete_target(args, incomplete)
raise CompleteUnhandled()