diff options
author | Alexei Frolov <frolv@google.com> | 2020-03-06 11:14:13 -0800 |
---|---|---|
committer | CQ Bot Account <commit-bot@chromium.org> | 2020-03-07 00:15:37 +0000 |
commit | a137f970fa4d5b43958fd5dc8046abecf98954e5 (patch) | |
tree | 48e8a357cb00041784c32274dcca7de9bd11fd93 /pw_cli | |
parent | 72b87dc93bd3491c3df7fedede3eb25788b57586 (diff) | |
download | pigweed-a137f970fa4d5b43958fd5dc8046abecf98954e5.tar.gz |
pw_env_setup: Improve POSIX CLI output
This change updates the output of the bootstrap and env_setup scripts to
make it more detailed and prettier.
The POSIX-side improvements are handled here; Windows will come in a
follow-up change.
Example output:
WELCOME TO...
▒█████▄ █▓ ▄███▒ ▒█ ▒█ ░▓████▒ ░▓████▒ ▒▓████▄
▒█░ █░ ░█▒ ██▒ ▀█▒ ▒█░ █ ▒█ ▒█ ▀ ▒█ ▀ ▒█ ▀█▌
▒█▄▄▄█░ ░█▒ █▓░ ▄▄░ ▒█░ █ ▒█ ▒███ ▒███ ░█ █▌
▒█▀ ░█░ ▓█ █▓ ░█░ █ ▒█ ▒█ ▄ ▒█ ▄ ░█ ▄█▌
▒█ ░█░ ░▓███▀ ▒█▓▀▓█░ ░▓████▒ ░▓████▒ ▒▓████▀
BOOTSTRAP! Bootstrap may take a few minutes; please be patient.
Downloading and installing packages into local source directory:
Setting up CIPD package manager...done
Setting up Python environment.....done
Setting up Pigweed host tools.....done
Setting up Rust's cargo...........done
Activating environment (setting environment variables):
Setting environment variables for CIPD package manager...done
Setting environment variables for Python environment.....done
Setting environment variables for Pigweed host tools.....done
Setting environment variables for Rust's cargo...........skipped
Note: Re-run bootstrap with PW_CARGO_SETUP=1 set in your environment
to enable Rust.
Sanity checking the environment:
20200306 12:48:12 ℹ️ Pigweed environment passes all checks!
Environment looks good; you are ready to go!
To activate this environment in the future, run this in your terminal:
. pw_env_setup/env_setup.sh
Bug: 143
Change-Id: If91457888cecfa117d5b8907c82c396413c640e8
Diffstat (limited to 'pw_cli')
-rw-r--r-- | pw_cli/py/pw_cli/env.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pw_cli/py/pw_cli/env.py b/pw_cli/py/pw_cli/env.py index 356c26d30..933250637 100644 --- a/pw_cli/py/pw_cli/env.py +++ b/pw_cli/py/pw_cli/env.py @@ -22,6 +22,9 @@ def pigweed_environment_parser() -> envparse.EnvironmentParser: """Defines Pigweed's environment variables on an EnvironmentParser.""" parser = envparse.EnvironmentParser(prefix='PW_') + parser.add_var('PW_BOOTSTRAP_PY27', + type=envparse.strict_bool, + default=False) parser.add_var('PW_CARGO_SETUP', type=envparse.strict_bool, default=False) parser.add_var('PW_EMOJI', type=envparse.strict_bool, default=False) parser.add_var('PW_ENVSETUP') |