Skip to content

feat(direct): support prefix and regex default args #653

@risu729

Description

@risu729

Summary

direct.default_args currently matches exact shim command names only. Add a future matcher model that can apply defaults by prefix, including subcommand-like invocations, or by regex.

Motivation

Some direct commands have families of invocations where the right biwa run defaults are shared by more than one exact shim name. For example, commands that never depend on synchronized project files could consistently get --skip-sync without listing every concrete command key.

Notes

  • Keep the current exact-key behavior as the simple/default path.
  • Design precedence explicitly when exact, prefix, and regex matchers overlap.
  • Avoid making static shim installation enumerate unbounded regex matches.

Follow-up from #632.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions