def __init__(self, verbose=False): ''' Initial constructor. :param verbose: enable/disable verbose option. :type verbose: <bool> :exceptions: None ''' current_dir = Path(__file__).resolve().parent base_info = '{0}{1}'.format(current_dir, GenSTM32.CONFIG) CfgCLI.__init__(self, base_info, verbose=verbose) verbose_message(GenSTM32.GEN_VERBOSE, verbose, 'init tool info') self.logger = ATSLogger(GenSTM32.GEN_VERBOSE.lower(), '{0}{1}'.format(current_dir, GenSTM32.LOG), verbose=verbose) if self.tool_operational: self.add_new_option(GenSTM32.OPS[0], GenSTM32.OPS[1], dest='gen', help='generate project') self.add_new_option(GenSTM32.OPS[2], GenSTM32.OPS[3], action='store_true', default=False, help='activate verbose mode for generation') self.add_new_option(GenSTM32.OPS[4], action='version', version=__version__)
def __init__(self, verbose=False): '''Initial constructor.''' current_dir = dirname(__file__) base_info = '{0}{1}'.format(current_dir, ATSCliCfgAPI.__CONFIG) CfgCLI.__init__(self, base_info, verbose=verbose) if self.tool_operational: self.add_new_option(ATSCliCfgAPI.__OPS[0], ATSCliCfgAPI.__OPS[1], dest='test', help='flag') self.add_new_option(ATSCliCfgAPI.__OPS[2], action='store_true', default=False, help='activate verbose mode')
def __init__(self, verbose=False): ''' Initial constructor. :param verbose: enable/disable verbose option. :type verbose: <bool> :exceptions: None ''' current_dir = dirname(realpath(__file__)) gen_unix_domain_socket_property = { 'ats_organization': 'vroncevic', 'ats_repository': 'gen_unix_domain_socket', 'ats_name': 'gen_unix_domain_socket', 'ats_logo_path': '{0}{1}'.format( current_dir, GenUnixDomainSocket.LOGO ), 'ats_use_github_infrastructure': True } splash = Splash(gen_unix_domain_socket_property, verbose=verbose) base_info = '{0}{1}'.format(current_dir, GenUnixDomainSocket.CONFIG) CfgCLI.__init__(self, base_info, verbose=verbose) verbose_message( GenUnixDomainSocket.GEN_VERBOSE, verbose, 'init tool info' ) self.logger = ATSLogger( GenUnixDomainSocket.GEN_VERBOSE.lower(), '{0}{1}'.format(current_dir, GenUnixDomainSocket.LOG), verbose=verbose ) if self.tool_operational: self.add_new_option( GenUnixDomainSocket.OPS[0], GenUnixDomainSocket.OPS[1], dest='gen', help='generate unix domain modules' ) self.add_new_option( GenUnixDomainSocket.OPS[2], GenUnixDomainSocket.OPS[3], action='store_true', default=False, help='activate verbose mode for generation' ) self.add_new_option( GenUnixDomainSocket.OPS[4], action='version', version=__version__ )
def __init__(self, verbose=False): ''' Initial constructor. :param verbose: enable/disable verbose option. :type verbose: <bool> :exceptions: None ''' current_dir = Path(__file__).resolve().parent dist_py_module_property = { 'ats_organization': 'vroncevic', 'ats_repository': 'dist_py_module', 'ats_name': 'dist_py_module', 'ats_logo_path': '{0}{1}'.format(current_dir, DistPyModule.LOGO), 'ats_use_github_infrastructure': True } splash = Splash(dist_py_module_property, verbose=verbose) base_info = '{0}{1}'.format(current_dir, DistPyModule.CONFIG) CfgCLI.__init__(self, base_info, verbose=verbose) verbose_message(DistPyModule.GEN_VERBOSE, verbose, 'init tool info') self.logger = ATSLogger(DistPyModule.GEN_VERBOSE.lower(), '{0}{1}'.format(current_dir, DistPyModule.LOG), verbose=verbose) if self.tool_operational: self.add_new_option(DistPyModule.OPS[0], DistPyModule.OPS[1], dest='gen', help='generate module setup.py') self.add_new_option(DistPyModule.OPS[2], DistPyModule.OPS[3], action='store_true', default=False, help='activate verbose mode') self.add_new_option(DistPyModule.OPS[4], action='version', version=__version__)