cli_router 0.0.2 copy "cli_router: ^0.0.2" to clipboard
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 description in pubspec.yaml to meet pub.dev guidelines.
  • Updated homepage → GitHub and documentation → pub.dev for valid URLs.
  • Applied dart format . and dart fix --apply to match Dart style.
  • Updated README.md with version ^0.0.2 and added pub badge.
  • Completed MIT LICENSE text.

Removed #

  • Removed unused test/cli_router_test.dart.

Docs #

  • Improved DartDoc coverage for CliRequest methods.
  • 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) or cmd('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).
0
likes
160
points
154
downloads

Publisher

verified publisherccisne.dev

Weekly Downloads

Router for CLIs inspired by shelf_router that uses spaces between segments instead of /

Repository (GitHub)
View/report issues

Topics

#cli #router #macss

Documentation

API reference

License

MIT (license)

More

Packages that depend on cli_router