feat: When using `mason add --path` (or other file references), infer the name of the package
- Dominant language
- Dart
- Stars
- 1.1k
- Forks
- 113
- PR merge metrics
- No merged PRs in 30d
Description
**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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.