INNER CODE UNIT · Python

get

tpm2-software/tpm2-pkcs11 · tools/tpm2_pkcs11/command.py:76

    def get():
        '''Retrieves the list of registered commandlets.'''
        return commandlet._commandlets

    @staticmethod
    def init(description):

        opt_parser = argparse.ArgumentParser(description=description)

        subparser = opt_parser.add_subparsers(help='commands')

        commandlets = commandlet.get()

        # for each commandlet, instantiate and set up their options
        for n, c in commandlets.items():
            p = subparser.add_parser(n, help=c.__doc__)
            p.set_defaults(which=n)
            # Instantiate

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…