sonar/api.py
def add(args):
        """
        Add a new tool to the database.

        Args:
            args (object): Holds attributes
                name (str): Name of tool
                version (str): Version of tool
                cad (str): Name of CAD executable
                hls (str): Name of HLS executable
                sim (str): Name of simulation executable
                script (str): Shell script to initialize tool
        """
        try:
            sonar.database.Tool.add(
                args.name,
                args.version,
                args.cad,
                args.hls,
                args.sim,
                args.script,
            )
        except SonarException as exc:
            logger.exception(
                "Adding a tool to the database failed: %s", exc.exit_str
            )
            sys.exit(exc.exit_code)

        Add a new tool to the database.

        Args:
            args (object): Holds attributes
                name (str): Name of tool
                version (str): Version of tool
                cad (str): Name of CAD executable
                hls (str): Name of HLS executable
                sim (str): Name of simulation executable
                script (str): Shell script to initialize tool
        
Add a new tool to the database.
Add a new tool to the database .
def add(args):
        try:
            sonar.database.Tool.add(
                args.name,
                args.version,
                args.cad,
                args.hls,
                args.sim,
                args.script,
            )
        except SonarException as exc:
            logger.exception(
                "Adding a tool to the database failed: %s", exc.exit_str
            )
            sys.exit(exc.exit_code)
def add ( args ) : try : sonar . database . Tool . add ( args . name , args . version , args . cad , args . hls , args . sim , args . script , ) except SonarException as exc : logger . exception ( "Adding a tool to the database failed: %s" , exc . exit_str ) sys . exit ( exc . exit_code )
Add a new tool to the database.
Add a new tool to the database .
"""
        Add a new tool to the database.

        Args:
            args (object): Holds attributes
                name (str): Name of tool
                version (str): Version of tool
                cad (str): Name of CAD executable
                hls (str): Name of HLS executable
                sim (str): Name of simulation executable
                script (str): Shell script to initialize tool
        """
args
Holds attributes
name (str): Name of tool
version (str): Version of tool
cad (str): Name of CAD executable
hls (str): Name of HLS executable
sim (str): Name of simulation executable
script (str): Shell script to initialize tool
Holds attributes name ( str ) : Name of tool version ( str ) : Version of tool cad ( str ) : Name of CAD executable hls ( str ) : Name of HLS executable sim ( str ) : Name of simulation executable script ( str ) : Shell script to initialize tool