-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli: allow setting empty name in options (to infer)
The `ProjectOptions` includes config to pass to the loader, but most of the fields, including `Name`, are optional. If unset/empty, the loader will determine a project name (if possible). Allow (re-)setting it to empty here. This is mostly for convenience based on the way these helpers are used in practice, so that it's possible to pass a value from e.g. a CLI flag in, which will be empty if unset. Also added a bunch of documentation to the type. Signed-off-by: Milas Bowman <[email protected]>
- Loading branch information
Showing
2 changed files
with
74 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters