WIP make token deploy work with cli export stage
This commit is contained in:
@@ -19,7 +19,8 @@ data_dir = os.path.join(script_dir, '..', 'data')
|
||||
base_config_dir = os.path.join(data_dir, 'config')
|
||||
schema_dir = os.path.join(script_dir, '..', 'schema')
|
||||
|
||||
argparser = chainlib.cli.ArgumentParser(env=os.environ, description='CIC cli tool for generating and publishing tokens')
|
||||
arg_flags = chainlib.cli.argflag_std_read | chainlib.cli.Flag.SEQ
|
||||
argparser = chainlib.cli.ArgumentParser(env=os.environ, arg_flags=arg_flags, description='CIC cli tool for generating and publishing tokens')
|
||||
|
||||
sub = argparser.add_subparsers()
|
||||
sub.dest = 'command'
|
||||
@@ -31,7 +32,6 @@ sub_export = sub.add_parser('export', help='export cic data directory state to a
|
||||
cmd_export.process_args(sub_export)
|
||||
|
||||
args = argparser.parse_args(sys.argv[1:])
|
||||
config = chainlib.cli.Config.from_args(args, base_config_dir=base_config_dir)
|
||||
|
||||
if args.command == None:
|
||||
logg.critical('Subcommand missing')
|
||||
@@ -41,6 +41,10 @@ modname = 'cic.cmd.{}'.format(args.command)
|
||||
logg.debug('using module {}'.format(modname))
|
||||
cmd_mod = importlib.import_module(modname)
|
||||
|
||||
extra_args = {
|
||||
'p': 'RPC_PROVIDER',
|
||||
}
|
||||
config = chainlib.cli.Config.from_args(args, arg_flags=arg_flags, base_config_dir=base_config_dir, extra_args=extra_args)
|
||||
|
||||
def main():
|
||||
#try:
|
||||
|
||||
Reference in New Issue
Block a user