// global -v flag parsing
$ cc init:
Args: None
Task:Will initialise an empty docker-compose.yml file, as well as maybe a hidden config file.
$ cc add:
Args: ServiceName, TemplateCode[NO_AUTH]
Flags: Pass filepath;
Task: Add stuff to config, and add stuff to docker-compose.yml
$ cc ls:
Flags: serviceName
Task: Shows list of templates available for that service
$ cc help:
Autogen by cobra
- Array of obj (ServiceName, TemplateName)
- file management
- Call Core.addConfig(oldConfig string, newItem) (newConfig, error)
- Structure
- maintain config MASTER
- service
- templateArray
- templateCode: [NO_AUTH]
- description
- templateContent
- Config Location
- With Binary as json
- hosted json
- computed json from db(API)
- @chara/postgres-master-slave-template
- yaml
- docker
getMaster() struct fs.read() http.get('staticconfig.json')
getByServiceAndTemplate(serviceName string, templateCode string) struct { http.get('/api/?service=&templateCode') }