feat(core): organisations and targets shared by every module, -c org:context, module link #3
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tycho/tycho!3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/contexts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
One
tychomanages several targets; the list belongs to the core, not to each module.Content
tycho context list|add <dir>|use <name>|current|remove <name>: a target is registered undermetadata.nameof itstarget.yaml, with its engine (spec.engine: kubernetes or podman). Stored in~/.config/tycho/targets.json(0600;TYCHO_CONFIG_DIRoverrides).--target <name>(elseTYCHO_TARGET, else the current target; never a guess). The core removes the flag and hands the target to the module:ctx.target,ctx.targetError, andTYCHO_TARGET_NAME|PATH|ENGINEin its env. An explicitly requested unknown target fails in the core.tycho module link <dir>: runs a module from a local working copy (symlink, lock entrylink:<path>), with the same contract checks as a published module. Used to test modules before they are published.Checks
bun test: 18 tests (7 new: registration, resolution order, refusals, flag extraction, link, target hand-over to a module).tsc --noEmitOK.@tycho/orchestrationlinked from tycho/modules#1: contexts,--target,TYCHO_TARGET, podman target refused by orchestration, unknown target refused.Pairs with tycho/modules#1 (the module uses
ctx.target).🤖 Generated with Claude Code
feat(core): targets shared by every module, and module linkto feat(core): organisations and targets shared by every module, -c org:context, module link