-
Notifications
You must be signed in to change notification settings - Fork 16
Closed
Labels
Milestone
Description
User story
As a developer I want to have a a tool that handles miss configuration or miss usage as graceful as possible while still helping me to understand the problem and gat some actionable feedback.
When it comes to configuration of the CLI I ran into cases where I feel hindered by the strictness of the upload options.
The validation requires the fields project, server, organization, apyKey to be set or non of them.
Cases where it is hindering:
- it throws when running any command also
collect - env variables for
.envfile or the process it self can cause those errors - it adds complexity to the code as we have to consider this case internally now to get good Dx
How it could work instead:
- the upload config is all optional in
CoreConfig - it gets evaluated with the
uploadConfig.parsehelper inside the autorun and upload command right before calling the functionality fromcore
Acceptance criteria
- All CLI commands but upload should work with partially configured upload data
- The
nx-pluginshould work for all commands but upload should work with partially configured upload data
Implementation details
No response