(data)
Parse and print the commands

    The yml file contains the following fields: Description, Command,
    Category, Privileges, OperatingSystem, UseCase, MitreID, MItreLink.

    If any more data has to be printed then we can just do that.

    For easy reference see the following yml file: RAW_URL/Libraries/Ieadvpack.md

    Arguments:
        data {list} -- list of dictionary having everything a command
        yml file contains
Parse and print the commands
Parse and print the commands
def parse(data):
    """Parse and print the commands

    The yml file contains the following fields: Description, Command,
    Category, Privileges, OperatingSystem, UseCase, MitreID, MItreLink.

    If any more data has to be printed then we can just do that.

    For easy reference see the following yml file: RAW_URL/Libraries/Ieadvpack.md

    Arguments:
        data {list} -- list of dictionary having everything a command
        yml file contains
    """

    # TODO: Figure out a way to improve this printing
    cmd = data['Commands']

    for c in cmd:
        print("# " + colors(c['Description'], 93) + "\n")
        print("CMD:\t\t" + colors(c["Command"], 92))
        print("Category:\t" + colors(c["Category"], 91))
        print("Privileges:\t" + colors(c["Privileges"], 91))
        print("\n")
def parse ( data ) : # TODO: Figure out a way to improve this printing cmd = data [ 'Commands' ] for c in cmd : print ( "# " + colors ( c [ 'Description' ] , 93 ) + "\n" ) print ( "CMD:\t\t" + colors ( c [ "Command" ] , 92 ) ) print ( "Category:\t" + colors ( c [ "Category" ] , 91 ) ) print ( "Privileges:\t" + colors ( c [ "Privileges" ] , 91 ) ) print ( "\n" )