mason_cli
0.1.4, released 2 months ago by brickhub.dev
CLI tool to create and consume reusable template bricks for code generation.
WASM-ready
What it does
Mason CLI lets developers define reusable templates called bricks and generate files from them via the command line. It supports variable prompts, config files, custom output directories, and conflict resolution.
AI-written summary of version 0.1.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to scaffold files or projects consistently
- You want reusable, shareable templates for code generation
- You prefer a CLI-driven workflow over IDE plugins
Skip it when
- You need runtime code generation inside a Flutter app
- You require a UI-based template editor
Strengths
- Rich CLI with many options
- Supports hooks and custom scripts
- Cross‑platform and works with any Dart/Flutter project
Weaknesses
- Only works at build time, not at runtime
- Requires learning brick syntax
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 9
dart pub global activate mason_cli
mason init
mason add hello
mason make hello --name FelixAlternatives
Packages that do the same job and could replace mason_cli.
- openapi_generator
Generator for OpenAPI client SDKs in Dart and Flutter projects.
67Compare
Works with
Packages commonly used together with mason_cli: ones it builds on, ones built on it, and its own family.
- watchermason_cli depends on itMonitors file system changes and notifies when files are added, removed, or modified.
- argsmason_cli depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- checked_yamlmason_cli depends on itProvides checkedYamlDecode to give detailed errors when decoding YAML with json_serializable.
- pub_updatermason_cli depends on itChecks if a pub package is up to date and can trigger updates
- masonmason_cli depends on itDart template generator for quick file creation
- cli_completionmason_cli depends on itCompletion functionality for Dart Command-Line Interfaces built using CommandRunner.
- mason_apimason_cli depends on itDart API client for Mason CLI
- mason_loggerSame familyA lightweight CLI logger with prompts, progress, and custom styling.