def print_command_candidates(template=None): cmds = [] if template: cmds.extend(commands.get_command_names_by_criteria(template=template)) if template != "builtins": cmds.extend(commands.get_command_names_by_criteria(template="builtins")) cmds.sort() print _("Candidate commands are: %s") % ", ".join(cmds)
def print_command_candidates(template=None): cmds = [] if template: cmds.extend( commands.get_command_names_by_criteria(template=template)) if template != "builtins": cmds.extend( commands.get_command_names_by_criteria(template="builtins")) cmds.sort() print _("Candidate commands are: %s") % ", ".join(cmds)
def print_template_candidates(for_cmd=None): templates = [] if for_cmd: possible_command = commands.get_command_names_by_criteria(name=for_cmd, followed_by_template=True) if possible_command: templates = tools.list_template_for_command(for_cmd) else: templates = templates or commands.get_all_templates() if templates: templates.sort() print _("Candidate templates are: %s") % ", ".join(templates)
def print_template_candidates(for_cmd=None): templates = [] if for_cmd: possible_command = commands.get_command_names_by_criteria( name=for_cmd, followed_by_template=True) if possible_command: templates = tools.list_template_for_command(for_cmd) else: templates = templates or commands.get_all_templates() if templates: templates.sort() print _("Candidate templates are: %s") % ", ".join(templates)
def print_command_candidates(): cmds = [] cmds.extend(commands.get_command_names_by_criteria()) cmds.sort() print _("Candidate commands are: %s") % ", ".join(cmds)