summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbst-marge-bot <marge-bot@buildstream.build>2020-07-14 12:51:24 +0000
committerbst-marge-bot <marge-bot@buildstream.build>2020-07-14 12:51:24 +0000
commitc25c819df8aa858cca72a9348bc81e7140e219f7 (patch)
treed6178738a118e676d39cde44e1061515baa10c9d
parent7ff7fb5cde1b491c2e2a321b705d695f48980cfe (diff)
parent83679067624c8f01eca90046df42be8cac554930 (diff)
downloadbuildstream-c25c819df8aa858cca72a9348bc81e7140e219f7.tar.gz
Merge branch 'dwinship/fix-tab-completion' into 'master'
fix tab-completion: hardcode default min version See merge request BuildStream/buildstream!1989
-rw-r--r--src/buildstream/_frontend/cli.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py
index b9cb26666..ff68af66d 100644
--- a/src/buildstream/_frontend/cli.py
+++ b/src/buildstream/_frontend/cli.py
@@ -371,22 +371,10 @@ def help_command(ctx, command):
##################################################################
# Init Command #
##################################################################
-def default_min_version():
- from .. import utils
-
- bst_major, bst_minor = utils._get_bst_api_version()
-
- return "{}.{}".format(bst_major, bst_minor)
-
-
@cli.command(short_help="Initialize a new BuildStream project")
@click.option("--project-name", type=click.STRING, help="The project name to use")
@click.option(
- "--min-version",
- type=click.STRING,
- default=default_min_version(),
- show_default=True,
- help="The required format version",
+ "--min-version", type=click.STRING, default="2.0", show_default=True, help="The required format version",
)
@click.option(
"--element-path",