mardi 27 octobre 2020

Recommended design pattern for config generator

I am writing an CLI application (or engine) that generates, validates, publishes and parses a single YAML or JSON configuration file (for end users). The idea is to parse user provided config file and perform user actions such as validate or publish commands. When config is not available, there is also initialize command to build config as user goes through interactive prompt.

The config items within the file can consist of types such as simple key value, object list, group and nested list of groups

What is the recommended design pattern in the context of Typescript?

Aucun commentaire:

Enregistrer un commentaire