jouet claim
- Usage:
jouet claim [--for <DUR>] [--note <TEXT>] [PATHS]… [SUBCOMMAND]
Claim paths for this session, so other sessions are warned off them
A claim is advisory: it blocks nothing. It tells other agent sessions on this machine that this session works on these paths, and jouet's hooks warn a session that edits or commits a path another live session claims, naming that session and its worktree. Every worktree of a repository shares its claims. PATH is a file, a directory (covering everything under it) or a glob (*, **, ?). A claim lasts --for (default 2h), and lapses early when its worktree is removed or its agent exits. Claiming a path again renews it. Refuses (exit 1) when another live session claims an overlapping path, naming it; exits 4 outside an agent session (set JOUET_SESSION_ID to claim from elsewhere).
Arguments
[PATHS]…— The files, directories or globs to claim
Flags
--for <DUR>— How long the claim lasts (default 2h)--note <TEXT>— What the session is doing there, shown to the others-h --help— Print help