summaryrefslogtreecommitdiff
path: root/buildstream/_frontend/main.py
diff options
context:
space:
mode:
authorAngelos Evripiotis <jevripiotis@bloomberg.net>2018-01-24 08:29:45 +0000
committerJürg Billeter <j@bitron.ch>2018-01-31 15:42:04 +0000
commit4c116c6d2141f33a0ebfe16ec72bf9bc409751d6 (patch)
tree8e9a7f55414e5ad00e484a0ead18ac9366615718 /buildstream/_frontend/main.py
parent8890142147a6f3a460a0f7a0690996a9c6b48137 (diff)
downloadbuildstream-4c116c6d2141f33a0ebfe16ec72bf9bc409751d6.tar.gz
_frontend: more doc on parameters
Diffstat (limited to 'buildstream/_frontend/main.py')
-rw-r--r--buildstream/_frontend/main.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index b2bf493ff..48c282f53 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -52,6 +52,12 @@ INDENT = 4
# Special completion for completing the bst elements in a project dir
def complete_target(ctx, 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
@@ -92,6 +98,13 @@ def complete_target(ctx, args, incomplete):
def override_completions(cmd_param, ctx, 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
+ """
# We can't easily extend click's data structures without
# modifying click itself, so just do some weak special casing