Export providers meta to JSON
Feature Request
The first step in order to create auto-generated docs for all the providers is to add a new command to teller that allows exporting all the providers' meta to a local JSON file.
Is your feature request related to a problem? Please describe. Yes, every new provider added, requires its developer to manually update the docs as well. Teller docs better have a defined format for all of the providers to make docs more clear and readable.
Describe the solution you'd like
New teller command teller providers export would collect all the meta's from defined providers and would export this data to a JSON file which contains the version as well.
The output might have this structure:
{
"teller":{
"version": "1.0.0"
},
"providers":{
"aws_asm":{
..
}
}
}
Tasks:
-
[ ]
teller export providersshould export the teller with version and empty array of providers @ChengaDevdod. when running the providers export command new file called
teller-providers.jsonwith the teller version, and empty providers. -
[ ] refactor providers switch to use the new map object, and the export too. @eladbash dod. when running export command the providers should be populated based on the providers source of truth, and replace the empty object