Source code for eosfactory.testnets

import argparse
import eosfactory.core.testnet as testnet

[docs]def main(): ''' usage: [-h] [--name NAME] [--remove] List saved testnets. Args: --name: print a testent of the given name --remove: remove a testent of the given name -h: show help message and exit ''' parser = argparse.ArgumentParser(description=''' List saved testnets. ''') parser.add_argument( "--name", help="The name of the testnet chosen.", default="") parser.add_argument( "--remove", help="Remove testnet of the given name.", action="store_true") args = parser.parse_args() if print(testnet.get_testnet(, raise_exception=False)) if args.remove: testnet.remove_from_mapping( testnet.testnets() else: testnet.testnets()
if __name__ == '__main__': main()