teller icon indicating copy to clipboard operation
teller copied to clipboard

Export providers meta to JSON

Open ChengaDev opened this issue 3 years ago • 1 comments

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":{
                 ..
          }
      }
}

ChengaDev avatar Jul 20 '22 12:07 ChengaDev

Tasks:

  • [ ] teller export providers should export the teller with version and empty array of providers @ChengaDev

    dod. when running the providers export command new file called teller-providers.json with 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

eladbash avatar Jul 20 '22 12:07 eladbash