diff --git a/src/usr/bin/tyto b/src/usr/bin/tyto index 5256a1b..35cccb2 100755 --- a/src/usr/bin/tyto +++ b/src/usr/bin/tyto @@ -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) diff --git a/src/var/lib/tyto/program/publish.py b/src/var/lib/tyto/program/publish.py index 0ebcd7e..d3abf50 100644 --- a/src/var/lib/tyto/program/publish.py +++ b/src/var/lib/tyto/program/publish.py @@ -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')