Skip to content

Add markpost push --dry-run to preview which files would be pushed before creating records #136

Description

@grimicorn-agent

commands/push.ts already resolves the full plan up front via resolveMarkdownInputs (files, missing, skipped) before pushFiles creates records, and sync recently gained --dry-run (src/index.ts reportDryRunPlan). A bulk import across globs/directories has no way to confirm the glob matched the right notes before it hammers POST /api/records once per file; a --dry-run that prints the resolved file list and the missing/skipped inputs, then exits without calling createRecord, catches a wrong glob cheaply and is symmetric with sync --dry-run.

Acceptance criteria

  • Give push the same preview affordance sync just got, listing the resolved files (and missing/skipped inputs) without creating any server records.
  • Includes tests covering the change.
  • Lint, tests, and CI green.

Promoted from improvement digest #132

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions