diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-01-10 12:47:38 +0100 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2023-01-10 15:54:32 +0100 |
commit | a50cf5be7ac73bf97afde3c725a2ce5137962572 (patch) | |
tree | 6d10cd9a77a83f95fb53747f36840381b0c1fd44 /bin/just-import-git.py | |
parent | 3e6ba85cacea36cfbebdbea4d5e96c5f068cb990 (diff) | |
download | justbuild-a50cf5be7ac73bf97afde3c725a2ce5137962572.tar.gz |
just-import-git: accept config from stdin
... to allow simple chaining of imports.
Diffstat (limited to 'bin/just-import-git.py')
-rwxr-xr-x | bin/just-import-git.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/just-import-git.py b/bin/just-import-git.py index c061bc74..397c7a80 100755 --- a/bin/just-import-git.py +++ b/bin/just-import-git.py @@ -107,6 +107,8 @@ def get_repository_config_file(root=None): def get_base_config(repository_config): + if repository_config == "-": + return json.load(sys.stdin) if not repository_config: repository_config = get_repository_config_file() with open(repository_config) as f: |