markgw / pimlico

The Pimlico Processing Toolkit
http://pimlico.readthedocs.org/
GNU Lesser General Public License v3.0
6 stars 1 forks source link

Finish adding non-interactive mode swtich #13

Open markgw opened 6 years ago

markgw commented 6 years ago

By default, we run in interative mode, assuming the user's at a terminal

This switch tells interface components that they can't expect input from a user

This should mean, for example, that we don't display progress bars, whose output looks bad when piped to a file

The parameter can be set using the environment variable PIM_NON_INT to 1 (implemented) or the cmd line switch --non-interactive (not implemented).

NON_INTERACTIVE_MODE = len(os.environ.get("PIM_NON_INT", "")) > 0

markgw commented 6 years ago

Mostly done now.

Still need to add to documentation.