Skip to content

anasmohammad611/compose-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

compose-cli

Interface

CLI (Inputs parse karo sahi se)

// 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

Service (Context: Input validation, File I/O, Comm b/w presentation/core)

  • Array of obj (ServiceName, TemplateName)
  • file management
  • Call Core.addConfig(oldConfig string, newItem) (newConfig, error)

Core (Context: Yaml, Docker-compose, MasterConfig, Yaml/Docker related checks)

  • 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') }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages