Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

App

The App struct bundles catalog, params, hooks, and runners together and provides methods for pipeline execution and CLI dispatch.

pub struct App<C, P, H = (), R = DefaultRunners> {
    catalog: C,
    params: P,
    hooks: H,
    runners: R,
    command: Command,
    // ...
}

App is generic over catalog, params, hooks, and runners. Builder methods return a new App with different type parameters, so the type system tracks what has been configured.

Subcommands

App::dispatch() selects behavior based on the stored Command:

CommandCLIDescription
Command::Runmy_app runExecute the pipeline
Command::Checkmy_app checkValidate pipeline structure
Command::Vizmy_app vizBuild graph and serve visualization

Chapter overview

  • Initialization — constructing an App (from_yaml, from_args, new)
  • YAML Configuration — catalog and params files, dot-notation overrides
  • Run — executing the pipeline
  • Check — validating pipeline structure via CLI
  • Viz — interactive pipeline visualization