doit/cmd_completion.py
def _zsh_arg_list(cls, cmd):
        """return list of arguments lines for zsh completion"""
        args = []
        for opt in cmd.get_options():
            args.append(cls._zsh_arg_line(opt))
        if 'TASK' in cmd.doc_usage:
            args.append("'*::task:(($tasks))'")
        if 'COMMAND' in cmd.doc_usage:
            args.append("'::cmd:(($commands))'")
        return args
return list of arguments lines for zsh completion
return list of arguments lines for zsh completion
return list of arguments lines for zsh completion
def _zsh_arg_list(cls, cmd):
        args = []
        for opt in cmd.get_options():
            args.append(cls._zsh_arg_line(opt))
        if 'TASK' in cmd.doc_usage:
            args.append("'*::task:(($tasks))'")
        if 'COMMAND' in cmd.doc_usage:
            args.append("'::cmd:(($commands))'")
        return args
def _zsh_arg_list ( cls , cmd ) : args = [ ] for opt in cmd . get_options ( ) : args . append ( cls . _zsh_arg_line ( opt ) ) if 'TASK' in cmd . doc_usage : args . append ( "'*::task:(($tasks))'" ) if 'COMMAND' in cmd . doc_usage : args . append ( "'::cmd:(($commands))'" ) return args
return list of arguments lines for zsh completion
return list of arguments lines for zsh completion
"""return list of arguments lines for zsh completion"""
cls
cmd