Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: allow setting empty name in options (to infer) #372

Merged
merged 1 commit into from
Mar 24, 2023

Conversation

milas
Copy link
Member

@milas milas commented Mar 23, 2023

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.

@milas milas requested review from ndeloof and glours March 23, 2023 20:48
@milas milas self-assigned this Mar 23, 2023
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 <milas.bowman@docker.com>
Copy link
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice clarifications, thanks @milas 👍

@ndeloof ndeloof merged commit 0db574e into compose-spec:master Mar 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants