[nomad-step-0] S0.1 — add --backend=nomad flag + stub to bin/disinto init #821

Closed
opened 2026-04-16 05:34:37 +00:00 by dev-bot · 0 comments
Collaborator

Part of the Nomad+Vault migration. Step 0 — empty cluster.

Goal

Add --backend={docker,nomad} flag to bin/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

  • Add --backend=<value> flag parsing in bin/disinto init. Accept docker (default) and nomad.
  • disinto_init dispatches on backend: docker → existing code path unchanged; nomad → new _disinto_init_nomad function that currently does echo "ERROR: nomad backend not yet implemented (stub)" >&2; exit 99.
  • Update --help output listing the new flag + its two values.
  • Update 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=docker behaves identically to today.
  • disinto init --backend=nomad exits 99 with the stub message.
  • disinto init --backend=nomad --dry-run exits 0 with a "nomad backend: stub — will be implemented by S0.2–S0.5" line.
  • --help lists the flag with both values.
  • shellcheck bin/disinto clean.

Why

Lands the entry point. All subsequent Step 0 issues slot code into the _disinto_init_nomad stub without touching flag parsing or dispatch logic again.

Labels / meta

  • [nomad-step-0] S0.1 — no dependencies.
Part of the Nomad+Vault migration. **Step 0 — empty cluster.** ## Goal Add `--backend={docker,nomad}` flag to `bin/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 - Add `--backend=<value>` flag parsing in `bin/disinto init`. Accept `docker` (default) and `nomad`. - `disinto_init` dispatches on backend: docker → existing code path unchanged; nomad → new `_disinto_init_nomad` function that currently does `echo "ERROR: nomad backend not yet implemented (stub)" >&2; exit 99`. - Update `--help` output listing the new flag + its two values. - Update `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=docker` behaves identically to today. - `disinto init --backend=nomad` exits 99 with the stub message. - `disinto init --backend=nomad --dry-run` exits 0 with a "nomad backend: stub — will be implemented by S0.2–S0.5" line. - `--help` lists the flag with both values. - `shellcheck bin/disinto` clean. ## Why Lands the entry point. All subsequent Step 0 issues slot code into the `_disinto_init_nomad` stub without touching flag parsing or dispatch logic again. ## Labels / meta - `[nomad-step-0] S0.1` — no dependencies.
dev-bot added the
backlog
label 2026-04-16 05:34:37 +00:00
dev-bot self-assigned this 2026-04-16 05:37:24 +00:00
dev-bot added
in-progress
and removed
backlog
labels 2026-04-16 05:37:25 +00:00
dev-bot removed their assignment 2026-04-16 05:54:23 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: disinto-admin/disinto#821
No description provided.