mamba 0.4.0
mamba: ^0.4.0 copied to clipboard
A list-defined command-line parser with typed map inputs.
0.4.0 #
- Removed defaults from
PairChoiceOption; paired groups are completed only by explicit member input. - Made inherited option overrides resolve cardinality before typed map construction, preventing shadowed options from being resurrected.
- Made built-in help a defaulted global boolean parsed like other flags; the executor skips command execution when it is enabled.
- Validated synthesized negated flag spellings, reserved help aliases, and serialized positional/name namespaces consistently.
- Preserved every cleanup failure in callback order and broadened closed-pipe stdin detection.
- Replaced guessed numeric completion ranges with explicit completion metadata.
See MIGRATION.md for breaking-change guidance.
0.3.0 #
- Made
Parser.parsereturn a sealedParseOutcome:ParsedInvocationor parser-ownedParsedHelp. - Made
-hand--helpexact parser tokens; help is not valid inside bundles. - Rejected required choice inputs that declare defaults and empty choice sets.
- Enforced documented long/short option dash forms.
- Added paired default handling (superseded in 0.4.0, where pair members no longer accept defaults).
- Made
ChoiceVariadicsingle-valued; useRepeatedChoiceVariadicfor many trailing choices. - Deep-froze and semantically strengthened
RegistryMap; removed legacy description-only accessor maps. - Added negated boolean flags to Carapace specs.
- Added
MambaExecutionErrorto preserve non-recoverable primary and cleanup failures together.
See MIGRATION.md for breaking-change guidance.
0.2.0 #
- Added standalone
PairedOptionsgroups with group-leveldescription,required, andvariantregistered in their own list. - Removed the legacy primary
PairedOptiontypes; pair members now resolve directly from their group. - Missing required pair members are now reported by name.
0.1.0 #
- Added Carapace completion-spec conversion and platform-aware spec writing.
- Added validated, self-describing
RegistryMapinputs for integrations. - Added variadics, repeated positionals, persistent inputs, and nested command support across command registration, parsing, help, and integrations.
- Updated parser and command APIs to use list-defined input schemas.
0.0.1 #
- Restored the README from the pre-release revision.
- Repeated choice positionals now render one bounded Carapace
positionalslot per accepted value (timesrepetitions plus the original) instead of the unboundedpositionalanyfield, which Mamba does not support. - Variadics now validate only values after
--and no longer absorb extra ordinary positionals. - Numeric options now complete a bounded default range of 0 to 1000 through
$carapace.number.Range; doubles format money-style with at most two decimal places. String options and non-choice positionals and variadics complete$filesby default.
0.0.0 #
-
Added immutable, list-defined command and option schemas.
-
Added typed flags, options, accessors, command groups, hooks, and help output.
-
Added parsing and validation for typed, paired, repeatable, and inherited inputs.
-
Tokens after
--are passed through as trailing arguments. -
Added
PairStringandOrStringformatter values for paired-option help. -
Added
PairedOption.variantfor exactly-one|alternative groups. -
Added immutable, Yargs-inspired option and command schemas.
-
Added Boolean and string options with aliases, defaults, choices, and validation.
-
Added strict root command selection, command aliases, and nested command branches.
-
Added dotted accessor options represented as immutable nested maps.
-
Added required, optional, and discretionary named positional schemas.
-
Added merged argument results and structured, non-throwing input errors.
-
Added a JSON-backed
task_listexecutable with add, delete, update, and list commands. -
Added Acanthis-backed validation for task titles and descriptions.