Skip to content

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 08:38
· 190 commits to main since this release
v0.1.0
f594f68

Added

  • @argument: Added automatic type inference for Argument class.
  • @argument: Added sentinel value _MISSING to properly distinguish between no default and default=None.
  • ChildNode: Added new context parameter for the ChildNode.process() method.
  • ChildNode: Added new ProcessMethod data class.
  • ChildNode: Added ProcessContext helper methods: is_tag(), is_option(), is_argument(), is_env(), get_tag_values().
  • ChildNode: Added type-hint-first system for ChildNode with automatic type inference from process() method signature.
  • ChildNode: Added get_supported_types() method to ChildNode for inspecting inferred types.
  • ChildNode: Added should_skip_none() method to ChildNode with automatic inference from type hints.
  • ChildNode: Added TypeMismatchError exception for type validation failures.
  • @option: Added automatic type inference for Option class.
  • @option: Made is_flag and type parameters exclusive for option decorator.
  • Testing: Added unit tests for type inference.
  • Testing: Added unit tests for required/optional argument behavior.
  • Testing: Added integration tests for type validation system.
  • Validation: Added validation module with @is_positive validator decorator.
  • Transform: Added transform module with @as_path transformer decorator for comprehensive path validation (14 parameters: existence, parents, file/directory type, empty checks, extensions, include/exclude patterns, permissions).
  • Error handling: Added exception hierarchy (CatchableError, ValidationError, TransformError, ParameterError) with Click-style error formatting that displays parameter context, usage information, and help hints.
  • Click Context: Updated framework to pass Click context through wrappers to process_children() for enhanced error reporting.