From b5f51687a7c0edc2e0f93e8ddd4b41dd60ff617d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Behmo?= Date: Sun, 26 May 2019 16:57:25 +0200 Subject: [PATCH] Add `-y/--yes` option to `local quickstart` --- CHANGELOG.md | 1 + tutor/commands/local.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 208c672..6942a53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ## Latest +- [Improvement] Add `-y/--yes` option to `local quickstart` for non-interactive quickstart - [Improvement] Persist LMS/CMS logs to disk by default (with collaboration from @silviot 💪) - [Bugfix] Fix installing a locally cloned requirement repository - [Improvement] Add `--no-cache` option to `images build` diff --git a/tutor/commands/local.py b/tutor/commands/local.py index 72f04e9..0943ca4 100644 --- a/tutor/commands/local.py +++ b/tutor/commands/local.py @@ -19,13 +19,14 @@ def local(): @click.command(help="Configure and run Open edX from scratch") +@click.option("-y", "--yes", "silent", is_flag=True, help="Run non-interactively") @click.option( "-p", "--pullimages", "pullimages_", is_flag=True, help="Update docker images" ) @opts.root -def quickstart(pullimages_, root): +def quickstart(silent, pullimages_, root): click.echo(fmt.title("Interactive platform configuration")) - tutor_config.save(root) + tutor_config.save(root, silent=silent) click.echo(fmt.title("Stopping any existing platform")) stop.callback(root) if pullimages_: