HomePhabricator

Add utility for managing local configuration settings

Authored by chris on Aug 11 2019, 2:04 PM.

Description

Add utility for managing local configuration settings

Summary: This adds a .bin/config utility to manage local configuration settings. Available arguments are --list, --get, --set, and --delete

Test Plan:

$ ./bin/config --set mysql.port 3306
INFO:root:[INFO]: Set local configuration values for mysql.port

$ ./bin/config --list
INFO:root:[INFO]:
  mysql.host:  127.0.0.1
  mysql.port:  3306
  mysql.user:  root
  mysql.password:  *****
  mysql.namespace:  simplex

$ ./bin/config --delete mysql.namespace
INFO:root:[INFO]: Successfully deleted keys: ['namespace']

$ ./bin/config --get mysql.host
INFO:root:[INFO]:
  mysql.host:  127.0.0.1

Reviewers: brooke

Reviewed By: brooke

Differential Revision: https://phabricator.tbmh.org/D20

Details

Committed
chrisAug 11 2019, 2:07 PM
Pushed
chrisAug 11 2019, 2:07 PM
Reviewer
brooke
Differential Revision
D20: Add utility for managing local configuration settings
Parents
rSIM69a86b9c8a57: Perform databse setup checks
Branches
Unknown
Tags
Unknown