cacti
cacti copied to clipboard
refactor(cmd-api-server): migrate from convict to yargs
Description
Pros and cons wise yargs wins out based on my recent experience with using both.
Convict cannot express certain things correctly in the configuration schema which makes it slightly harder to understand, specifically when it comes to asking in JSON strings as configuration parameters.
Acceptance Criteria
- Convict is no longer a dependency in the project
- Configuration parsing works as before, e.g. the existing config.json files, the CLI -> ENV -> FILE predence is kept
- API server is able to print it's own command line help message going through all the commands providing examples as before.
Hello! May I take up this issue?
@Leeyoungone Of course, all yours! Thank you!
Until there is an explicit need for this feature, this issue is closed.