def list_commands():
    """
    List the commands available.
    """
    commands = []
    for f in listdir(_commands_dir):
        if isdir(join(_commands_dir, f)):
            continue
        if not f.endswith('.py'):
            continue
        try:
            commands.append(get_command(f.split('.')[0]))
        except (__HOLE__, AttributeError):
            continue
    return commands
dataset/ETHPy150Open robmadole/jig/src/jig/commands/base.py/list_commands