def task_gen_completion():
 cmd = 'nikola tabcompletion --shell {0} --hardcode-tasks > _nikola_{0}'
 for shell in ('bash', 'zsh'):
  (yield {'name': shell, 'actions': [cmd.format(shell)], 'targets': ['_nikola_{0}'.format(shell)]})

def task_gen_completion ( ) : cmd = 'nikola tabcompletion --shell {0} --hardcode-tasks > _nikola_{0}' for shell in ( 'bash' , 'zsh' ) : ( yield { 'name' : shell , 'actions' : [ cmd . format ( shell ) ] , 'targets' : [ '_nikola_{0}' . format ( shell ) ] } )
generate tab-completion scripts .