mason
mason copied to clipboard
feat: When using `mason add --path` (or other file references), infer the name of the package
Description
When I have a local brick at package/bricks/dart_package
I would like mason add
to infer the name of the brick with out specifying (where possible).
If I run
mason add --path package/bricks/dart_package
The error appears:
brick name is required.
Correct command (now):
mason add --path package/bricks/dart_package dart_package
But I would like mason
to infer the brick name since it's already available at that path.
Requirements
- [ ]
mason add --path path/to/my_brick
infers brick namemy_brick
Additional Context
The other mason add
options might also benefit from this feature. mason add some_brick
that uses the mason_api is the only one that would likely require the brick name.