Read a project's language, title templates and branch template from its config
This commit is contained in:
@@ -61,6 +61,8 @@ def main(argv: list[str]) -> int:
|
||||
config = project()
|
||||
if not given and isinstance(config, Failure):
|
||||
return failed(config)
|
||||
if not isinstance(config, Failure):
|
||||
checkout = dataclasses.replace(checkout, branch=config.branch)
|
||||
record: RecordStore = FileStore(pathlib.Path(given[0]), None) if given or isinstance(config, Failure) else store(config, "reading-cost")
|
||||
updated = update(record, archive, checkout, str(home), utc(time.time()) if reset else None)
|
||||
if isinstance(updated, Failure):
|
||||
|
||||
Reference in New Issue
Block a user