Preparing publish action

This commit is contained in:
Cyrille L 2023-02-06 11:01:03 +01:00
parent 8e74f8dece
commit 153417aa22
2 changed files with 15 additions and 6 deletions

View File

@ -35,7 +35,7 @@ if not __name__ == "__main__":
sys.exit(1)
import args
import check, domain, wip, html
import check, domain, wip, html, publish
noarg = False
target = ''
@ -44,15 +44,20 @@ option = ''
# Command start argument
actions = {
'check' : check.manage_check,
'wip' : wip.manage_wip,
'domain' : domain.manage_domain,
'sidebar' : html.manage_configs,
'navbar' : html.manage_configs,
'footer' : 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
#-----------
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)

View File

@ -17,6 +17,10 @@
#**********************************************************************
def manage_publish(target, option):
print('> In manage_publish: t="%s", o="%s"'%(target, option))
def replace_line_pub():
# Testing html publis
print('> Testing html publish')