Refactored (1)

Performed a general refactoring, focusing on the following:

- Removing layers of abstraction in config handling
- Stubbing out proper config validator
- Updating envvar names located throughout the project
This commit is contained in:
Chris Lane
2019-01-31 16:45:28 -05:00
parent c922ef4c8d
commit 8f757d7735
5 changed files with 99 additions and 136 deletions

View File

@ -43,13 +43,16 @@ from cheat.configuration import Configuration
from docopt import docopt
import os
if __name__ == '__main__':
# parse the command-line options
options = docopt(__doc__, version='cheat 2.4.2')
# initialize and validate configs
config = Configuration()
config.validate()
# bootsrap
sheets = Sheets(config)
utils = Utils(config)
sheet = Sheet(sheets, utils)