Releases: clue/commander
Releases · clue/commander
v1.4.0
v1.3.0
-
Feature: Add support for custom filter callbacks
(#25 by @clue)$tokenizer = new Tokenizer(); $tokenizer->addFilter('ip', function ($value) { return filter_var($ip, FILTER_VALIDATE_IP); }); $tokenizer->addFilter('lower', function (&$value) { $value = strtolower($value); return true; }); $router = new Router($tokenizer); $router->add('add <name:lower>', function ($args) { }); $router->add('--search=<address:ip>', function ($args) { });
-
Improve test suite by locking Travis distro so new future defaults will not break the build
(#24 by @clue)
v1.2.2
v1.2.1
v1.2.0
- Feature: Add support for predefined filters to limit accepted values and avoid requiring double dash separator
(#19 by @clue) - Feature: Support preset option values, option values now accept any tokens
(#17 by @clue) - Feature: Unify handling ellipses after any token and whitespace around option values
(#17 by @clue)