cli_router 0.0.2
cli_router: ^0.0.2 copied to clipboard
Router for CLIs inspired by shelf_router that uses spaces between segments instead of /
Changelog #
All notable changes to this project will be documented in this file.
The format loosely follows Keep a Changelog and the project adheres to Semantic Versioning.
0.0.2 - 2025-10-13 #
Changed #
- Shortened
descriptioninpubspec.yamlto meet pub.dev guidelines. - Updated
homepage→ GitHub anddocumentation→ pub.dev for valid URLs. - Applied
dart format .anddart fix --applyto match Dart style. - Updated
README.mdwith version^0.0.2and added pub badge. - Completed MIT
LICENSEtext.
Removed #
- Removed unused
test/cli_router_test.dart.
Docs #
- Improved DartDoc coverage for
CliRequestmethods. - Fixed unresolved reference in doc comment for
CliRequest.matchedCommand.
Fixed #
- Minor analyzer and formatting warnings reported by pana.
0.0.1 - 2025-10-13 #
Added #
- Initial release of cli_router.
- Space-based routing for commands:
cmd('route subroute', handler). - Nested routers via
mount('prefix', subRouter)orcmd('prefix', subRouter). - Dynamic parameters
<id>and wildcard*. - GNU-style flag parsing (
--k v,--k=v,-abc,--no-k). - Shelf-like middlewares with
use(). - Helpers:
flagBool,flagInt,flagDouble,flagString,param('id'). - Simple help output and exit codes (
0,64).
- Space-based routing for commands: