dash_router_cli 1.1.1
dash_router_cli: ^1.1.1 copied to clipboard
CLI tool for dash_router - generate routes and manage configuration
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.1.1 - 2025-12-21 #
Changed #
- Enhanced Code Documentation: Improved documentation accuracy and clarity across the codebase
1.1.0 - 2025-12-20 #
1.0.1 - 2025-12-14 #
1.0.0 - 2025-12-13 #
Added #
-
Initial stable release of dash_router_cli
-
Command-line interface with the following commands:
-
generate(aliases:gen,g) - Generate route code from annotations--config- Explicit config file path--verbose- Enable verbose output--dry-run- Preview without writing files--build-runner- Use build_runner instead of CLI generator
# Generate routes dart run dash_router generate # Generate with verbose output dart run dash_router gen --verbose # Preview without writing dart run dash_router g --dry-run -
watch(alias:w) - Watch files and auto-regenerate on changes--verbose- Enable verbose output
# Watch and auto-regenerate dart run dash_router watch -
init- Initialize dash_router configuration--force- Overwrite existing configuration
# Initialize config file dart run dash_router init # Force overwrite existing config dart run dash_router init --force -
validate- Validate route configuration--verbose- Enable verbose output
# Validate routes dart run dash_router validate -
clean- Remove generated files--dry-run- Preview without deleting files
# Clean generated files dart run dash_router clean # Preview what would be deleted dart run dash_router clean --dry-run
-
-
Configuration system:
ConfigLoader- Load configuration from multiple sourcesConfigValidator- Validate configuration- Auto-detection from
dash_router.yamlorpubspec.yaml - Default configuration when no config file exists
- Example
dash_router.yaml:dash_router: input: include: - lib/**/*.dart exclude: - lib/generated/** output: routes: lib/generated/routes.dart typed_routes: lib/generated/typed_routes/ navigation: lib/generated/navigation.dart route_info: lib/generated/route_info.dart
-
File scanning with
FileScanner:- Glob pattern support
- Exclude pattern support
- Smart file filtering
-
File watching with
FileWatcher:- Debounced regeneration
- Efficient file system monitoring
-
Logging utilities:
Logger- Colored console output- Verbose mode support
- Info, warning, error, and success messages
-
CLI utilities:
- Working directory management
- Process execution helpers
-
Monorepo support via
--configflag -
Integration with
dash_router_generatorfor code generation