Skip to main content

Crate jan_cli

Crate jan_cli 

Source

Modules§

remote
HTTPS fetch with SHA256 verification and TTL-based local caching (wgex-inspired).

Structs§

CommandNode
EnvSpec
Child-process environment declaration for a command node.
ExecSpec
HostPlatform
Which platform string to use when filtering os: lists on commands.
IncludeLink
Retained include identity after load (not authored directly in YAML).
LocalInclude
Local include under the preferred jan directory (YAML subtree or script file).
MatchOutcome
Metadata
PackagesSpec
Package-manager deps for a command node (packages: in YAML).
RemoteInclude
RootSpec
RunContext
SpecRootIdentity
Stable identity for where a YAML spec tree is rooted (directory of linked fragments + entry file).
UserConfig

Enums§

IncludeLinkKind
Whether an include link pointed at YAML (subtree graft) or a script file (exec leaf).
IncludeRef
Local path or remote HTTPS include target.
UvPackages
uv dependency declaration: inline list, project dir, or requirements file.

Functions§

default_db_path
format_help
load_spec
load_spec_from_str
Parse YAML from memory. Use include_base when the document uses include: (root or subtree).
load_user_config
match_commands
merge_specs_into
Deep-merge overlay.commands into base, letting included YAML fragments add or replace leaves and extend nested groups.
resolve_git_branch
resolve_preferred_spec
Resolve the preferred jan directory saved by jan use.
resolve_spec_dir_entry
Resolve a jan directory + entry file name into an absolute spec path and identity.
run_jan
run_matched
validate_spec
Validate every command in the tree (after merges or programmatic edits).