Preparing publish action
This commit is contained in:
parent
8e74f8dece
commit
153417aa22
|
@ -35,7 +35,7 @@ if not __name__ == "__main__":
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
import args
|
import args
|
||||||
import check, domain, wip, html
|
import check, domain, wip, html, publish
|
||||||
|
|
||||||
noarg = False
|
noarg = False
|
||||||
target = ''
|
target = ''
|
||||||
|
@ -44,15 +44,20 @@ option = ''
|
||||||
# Command start argument
|
# Command start argument
|
||||||
actions = {
|
actions = {
|
||||||
'check' : check.manage_check,
|
'check' : check.manage_check,
|
||||||
'wip' : wip.manage_wip,
|
|
||||||
'domain' : domain.manage_domain,
|
'domain' : domain.manage_domain,
|
||||||
'sidebar' : html.manage_configs,
|
'footer' : html.manage_configs,
|
||||||
'navbar' : html.manage_configs,
|
|
||||||
'metas' : html.manage_configs,
|
'metas' : html.manage_configs,
|
||||||
'footer' : html.manage_configs
|
'navbar' : html.manage_configs,
|
||||||
|
'publish' : publish.manage_publish,
|
||||||
|
'sidebar' : html.manage_configs,
|
||||||
|
'wip' : wip.manage_wip
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# Argument 1
|
# Argument 1
|
||||||
#-----------
|
#-----------
|
||||||
actions[sys.argv[1]](args.target, args.option)
|
try:
|
||||||
|
actions[sys.argv[1]](args.target, args.option)
|
||||||
|
except KeyError:
|
||||||
|
print(':< No action for', sys.argv[1])
|
||||||
|
sys.exit(1)
|
||||||
|
|
|
@ -17,6 +17,10 @@
|
||||||
|
|
||||||
#**********************************************************************
|
#**********************************************************************
|
||||||
|
|
||||||
|
def manage_publish(target, option):
|
||||||
|
print('> In manage_publish: t="%s", o="%s"'%(target, option))
|
||||||
|
|
||||||
|
|
||||||
def replace_line_pub():
|
def replace_line_pub():
|
||||||
# Testing html publis
|
# Testing html publis
|
||||||
print('> Testing html publish')
|
print('> Testing html publish')
|
||||||
|
|
Loading…
Reference in New Issue