add edit for layout
This commit is contained in:
parent
926a126fb8
commit
381c8a0568
1 changed files with 9 additions and 3 deletions
|
|
@ -755,15 +755,21 @@ def edit(param='help', branch=None):
|
||||||
else:
|
else:
|
||||||
project_branch = branch
|
project_branch = branch
|
||||||
|
|
||||||
config_path = _get_configuration_path('config', project_branch)
|
meta_path = _get_configuration_path('config', project_branch)
|
||||||
|
layout_path = _get_configuration_path('layout', project_branch)
|
||||||
|
|
||||||
# locations = ['gunicorn', 'gunicorn_link', 'gunicorn_build',
|
# locations = ['gunicorn', 'gunicorn_link', 'gunicorn_build',
|
||||||
# 'settings', 'local']
|
# 'settings', 'local']
|
||||||
locations = {
|
locations = {
|
||||||
'configuration': {
|
'meta': {
|
||||||
'path': config_path,
|
'path': meta_path,
|
||||||
'desc': 'meta configuration file',
|
'desc': 'meta configuration file',
|
||||||
},
|
},
|
||||||
|
|
||||||
|
'layout': {
|
||||||
|
'path': layout_path,
|
||||||
|
'desc': 'layout configuration file',
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
if param in locations.keys():
|
if param in locations.keys():
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue