Repo#

class graftkit.Repo[source]#

Bases: FrozenModel

The repository root a command runs in, as the core hands it to every command.

Attributes:
rootPath

The absolute path of the folder holding graftkit.toml.

configConfig

The root’s validated graftkit.toml.

settings

The settings in force, every layer merged; read on first use.

Methods

load(root)

Return the repository at a root, with its configuration validated.

property settings: Settings[source]#

The settings in force, every layer merged.

classmethod load(root: Path) → Repo[source]#

Return the repository at a root, with its configuration validated.

Parameters:
rootPath

A folder holding graftkit.toml.

Returns:
Repo

The repository.