Skip to main content

Module config

Module config 

Source

Structs§

RobinConfig

Constants§

SCHEMA_URL
Canonical location of the published JSON Schema for .robin.json. Generated configs point their $schema here so editors can offer autocomplete and validation.

Functions§

find_config_from
Walks up from start (inclusive) looking for the first directory that contains a .robin.json. Returns the path to that config, or None when no ancestor holds one. This lets robin be run from any subdirectory of a project, mirroring how git and cargo locate their root files.
find_config_path
Resolves the config path for read commands: the nearest .robin.json found by walking up from the current directory, falling back to ./.robin.json so that “not found” errors still name a sensible location.
script_command
Returns the executable part of a script entry.
script_description
Returns the human-readable description of a script entry, when it uses the object form and carries a non-empty desc.