diff --git a/README.md b/README.md index b39e80fe12ce20b9ec463e52a4f6db932ca43f52..7b18c6ad1524afc883c1c404bd206ef9be1abbee 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,24 @@ python -m pip install bitia --user python -m bitia --help ``` +## Configuration + +TODO: Order of searching configuration file. + +### Unix like systems + +1. `./bitia.toml` +2. `~/.bitia.toml` +3. `$HOME/.config/bitia.toml` +3. `/etc/bitia.toml` + + +### Windows + +1. `bitia.toml` +2. `%APPDATA%\bitia.toml` +3. `%PROGRAMDATA%\bitia.toml` + ## BiTIA runner If you are self-hosting the BiTIA server, you need `bitia-runner` as well. See diff --git a/bitia/__main__.py b/bitia/__main__.py index 68aeb8d5eb7d9c0805052cc1c259b1e6b9e6d687..8855fb7bb04ce3492bc4e4be91149e03e2be2b39 100644 --- a/bitia/__main__.py +++ b/bitia/__main__.py @@ -184,7 +184,7 @@ def create_pipeline_from_command(cmd: str) -> Path: pipeline_file = pipeline_dir / BITIA_MAIN_SCRIPT_NAME with pipeline_file.open("w", newline="\n") as outf: outf.write(f"#!/bin/sh\n\n{cmd}") - logging.info("Wrote pipeline %s", pipeline_file.read_text()) + logger.info("Wrote pipeline %s", pipeline_file.read_text()) return prepare_archive(pipeline_dir)