Skip to main content

Module init

Module init 

Source
Expand description

Init Command - Initialize a new ggen project

ggen init scaffolds a minimal, working ggen project with hardcoded files. Creates directory structure and seed files that can be customized.

§BIG BANG 80/20 Screening Gate

Before initialization, users must confirm they have:

  1. Real user data (CSV/JSON, not promised)
  2. Found an existing standard ontology (schema.org, FOAF, Dublin Core, SKOS)
  3. Clear problem articulation (one sentence, no 100-page docs)
  4. Market signal (email list, beta users, commitment - not enthusiasm)
  5. Speed validation plan (can validate with 10 users in 48 hours)

This prevents Seth-like patterns: custom ontologies, 3-month research cycles, zero market validation.

§Atomic Initialization

Uses FileTransaction for atomic file operations with automatic rollback on failure. Either all files are created successfully, or no changes are made.

Structs§

InitOutput
Output for the ggen init command
TransactionInfo
Transaction information for atomic init operation

Functions§

init
Initialize a new ggen project with default structure and scripts.

Type Aliases§

Result