enable import of multiple toml files at once via cli
This commit is contained in:
parent
005c1dd776
commit
5fa80077aa
2 changed files with 9 additions and 3 deletions
|
|
@ -45,6 +45,11 @@ def check_measurement_data(measurements: dict, code: str) -> None:
|
|||
return
|
||||
|
||||
|
||||
def import_tomls(path: str, files: str, copy_files: bool=True) -> None:
|
||||
for file in files:
|
||||
import_toml(path, file, copy_files)
|
||||
|
||||
|
||||
def import_toml(path: str, file: str, copy_file: bool=True) -> None:
|
||||
"""
|
||||
Import a project decribed by a .toml file.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue