Skip to content

config.yml generator, command #169

Closed
@avara1986

Description

@avara1986

Create a command to ask the user the configuration that he wants and generate a config.yml

Basic Flask config:

  config:
    DEBUG: true
    TESTING: false
    APP_NAME: "Python Microservice"
    APPLICATION_ROOT: ""

Input: do you want to use request? (Y/n) Y

pyms:
  services:
    requests:
      data: ""
  config:
    DEBUG: true
    TESTING: false
    APP_NAME: "Python Microservice"
    APPLICATION_ROOT: ""

Input: do you want to use swagger? (Y/n) Y

pyms:
  services:
    requests:
      data: ""
    swagger:
      path: ""
      file: "swagger.yaml"
  config:
    DEBUG: true
    TESTING: false
    APP_NAME: "Python Microservice"
    APPLICATION_ROOT: ""

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions