mason icon indicating copy to clipboard operation
mason copied to clipboard

feat: When using `mason add --path` (or other file references), infer the name of the package

Open Luckey-Elijah opened this issue 1 year ago • 2 comments

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 name my_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.

Luckey-Elijah avatar Apr 19 '23 14:04 Luckey-Elijah