I would like my schematics to look for a JSON file on startup. If this file exists, it should read the options (the ones defined in schema.json) from the file, suppressing all prompts.
So if I start it like this and options.json doesn't exist:
ng g my-schematic:foo
It should run normal, print prompts etc. But if options.json does exist, it should read all options from that file and shouldn't print any prompts.
Is this possible?
I know something like this could be done by passing command line options, but I need to do this using a file. I don't want to pass any flags.
Thanks ind advance!