Skip to main content

Crate jan_cli

Crate jan_cli 

Source

Structs§

CommandNode
ExecSpec
HostPlatform
Which platform string to use when filtering os: lists on commands.
MatchOutcome
Metadata
RootSpec
RunContext
SpecRootIdentity
Stable identity for where a YAML spec tree is rooted (directory of linked fragments + entry file).

Constants§

EMBEDDED_DEFAULT_FILES
Embedded category fragments for the bundled default spec (paths relative to jan-cli/).
EMBEDDED_ROOT_YAML
EMBEDDED_SPEC_DIR

Functions§

default_db_path
embedded_spec_identity
format_help
load_embedded_default_spec
Built-in command tree used when no jan.yaml / JAN_SPEC / --spec is provided.
load_spec
load_spec_from_str
Parse YAML from memory. Use include_base when the document uses include: (root or subtree).
match_commands
merge_specs_into
Deep-merge overlay.commands into base, letting overlays add or replace leaves and extend nested groups. Used for --extra-spec / --stdin-spec fragments.
resolve_git_branch
resolve_spec_dir_entry
Resolve --spec-dir + root file name into an absolute spec path and identity.
resolve_spec_path
Resolve a YAML spec file, or Ok(None) to load the embedded default via load_embedded_default_spec.
run_jan
run_matched
spec_identity_for_spec_file
Build SpecRootIdentity for a concrete spec file on disk (include resolves from its parent).
validate_spec
Validate every command in the tree (after merges or programmatic edits).