bifrost/bifrost-cli
Dmitry Tantsur 12c6f7120f Quick start Bifrost CLI
This change adds a local CLI ./bifrost-cli that allows to easily
run bifrost playbooks. It is targeting early adopters and thus
is opinionated and does not expose all possible options.

Only the very minimum is provided in this patch. More options
will be added later as we decide they are important.

Documentation will also be provided later as it's going to be
quite large. This feature should be considered technical preview
at this point until we give it more testing.

Change-Id: I2205e759431024124518716eccd07f79bda14f3a
2020-06-10 15:03:47 +02:00

14 lines
352 B
Bash
Executable File

#!/bin/sh
if ! python3 --version > /dev/null; then
echo "Python 3 not found, version 3.6 or newer is required for Bifrost"
exit 1
fi
if ! python3 -c "import sys; assert sys.version_info >= (3, 6)" 2> /dev/null; then
echo "Python 3.6 or newer is required for Bifrost"
exit 1
fi
PYTHONPATH=$(dirname $0) exec python3 -m bifrost.cli $@