GREASE Router

Classes

Router Class

class tgt_grease.router.GreaseRouter

Bases: object

Main GREASE CLI Router

This class handles routing CLI requests as well as starting the Daemon on Windows/POSIX systems

_config

Main Configuration Object

Type:Configuration
_logger

Main Logging Instance

Type:Logging
_importTool

Importer Tool Instance

Type:ImportTool
_exit_message

Exit Message

Type:str
StartGREASE()

EntryPoint for CLI scripts for GREASE

Returns:Void Method for GREASE
Return type:None
exit(code, message=None)

Exit program with exit code

Parameters:
  • code (int) – Exit Code
  • message (str) – Exit message if any
Returns:

Will exit program

Return type:

None

get_arguments()

Parse CLI long arguments into dictionaries

This expects arguments separated by space –opt val, colon –opt:val, or equal –opt=val signs

Returns:key->value pairs of arguments
Return type:object, dict
run()

Route commands through GREASE

Returns:Exit Code
Return type:int