Skip to content

infoctl init: create an example project #8

Open

Description

@codecapo

infoctl init <dir> creates a working example project in the RFC 0001 layout.

Crate: crates/cli

Done when

  • Creates infostash.toml, one CSV source with sample data, one Clean model and one Ready model
  • Refuses to overwrite a non-empty directory
  • Adds .infostash/ to a generated .gitignore
  • infoctl run succeeds on the generated project unchanged (checked in Five-minute quick start, tested in CI #16)
  • Test that runs init in a temporary directory and checks the files

Depends on: #5
Blocks: #14

Activity

  1. added this to the 0.1.0 milestone on Oct 29, 2026
  2. codecapo commented on Nov 6, 2026

    @codecapo
    OwnerAuthor

    The design review of 2026-11-01 touches this issue. The Ready model that init writes, ready/daily_revenue, is a GROUP BY aggregate that gives wrong results when run over only the new rows, so it has to carry -- @full_refresh: true, and the sample data should set up the case that shows the difference.

    Suggested additions to the Done-when:

    Work that moved to new tickets:

    Source: design review of 2026-11-01, finding C02 and its worked example in section 2.1, with finding C01 for the append-only alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions