def yaml(self): return YamlFormat.load(StringIO(self.stdout))
def load_config_from_storage(storage): if not storage.exists(ConfigDir): raise UserError("tracker not initialised") with storage.open(ConfigFile) as input: return YamlFormat.load(input)
def save_config_to_storage(storage, config): with storage.open(ConfigFile, "w") as output: YamlFormat.save(config, output)
def format_version(storage): with storage.open(".deft/config") as input: return YamlFormat.load(input)["format"]