Skip to content
Snippets Groups Projects
Commit 3d0703e7 authored by dilawar's avatar dilawar :ant:
Browse files

Merge branch 'devel' of gitlab.subcom.tech:bitia/bitia-cli into devel

parents 3aae3071 c702f502
No related branches found
No related tags found
1 merge request!2version 0.2.0
Pipeline #3696 failed with stages
in 1 minute and 50 seconds
...@@ -9,6 +9,24 @@ python -m pip install bitia --user ...@@ -9,6 +9,24 @@ python -m pip install bitia --user
python -m bitia --help 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 ## BiTIA runner
If you are self-hosting the BiTIA server, you need `bitia-runner` as well. See If you are self-hosting the BiTIA server, you need `bitia-runner` as well. See
......
...@@ -184,7 +184,7 @@ def create_pipeline_from_command(cmd: str) -> Path: ...@@ -184,7 +184,7 @@ def create_pipeline_from_command(cmd: str) -> Path:
pipeline_file = pipeline_dir / BITIA_MAIN_SCRIPT_NAME pipeline_file = pipeline_dir / BITIA_MAIN_SCRIPT_NAME
with pipeline_file.open("w", newline="\n") as outf: with pipeline_file.open("w", newline="\n") as outf:
outf.write(f"#!/bin/sh\n\n{cmd}") 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) return prepare_archive(pipeline_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment