[nomad-step-0] S0.1 — add --backend=nomad flag + stub to bin/disinto init #821
Labels
No labels
action
backlog
blocked
bug-report
cannot-reproduce
in-progress
in-triage
needs-triage
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
rejected
reproduced
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#821
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Part of the Nomad+Vault migration. Step 0 — empty cluster.
Goal
Add
--backend={docker,nomad}flag tobin/disinto init. Docker path stays default + unchanged. Nomad path is a stub that errors with "nomad backend not yet implemented" so nothing is silently misrouted while later Step 0 issues fill in the real code.Scope
--backend=<value>flag parsing inbin/disinto init. Acceptdocker(default) andnomad.disinto_initdispatches on backend: docker → existing code path unchanged; nomad → new_disinto_init_nomadfunction that currently doesecho "ERROR: nomad backend not yet implemented (stub)" >&2; exit 99.--helpoutput listing the new flag + its two values.disinto init --dry-run --backend=nomad(from P7) to report stub status cleanly instead of erroring.Acceptance criteria
disinto init(no flag) behaves identically to today — smoke path passes.disinto init --backend=dockerbehaves identically to today.disinto init --backend=nomadexits 99 with the stub message.disinto init --backend=nomad --dry-runexits 0 with a "nomad backend: stub — will be implemented by S0.2–S0.5" line.--helplists the flag with both values.shellcheck bin/disintoclean.Why
Lands the entry point. All subsequent Step 0 issues slot code into the
_disinto_init_nomadstub without touching flag parsing or dispatch logic again.Labels / meta
[nomad-step-0] S0.1— no dependencies.