You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have some generic setup code (helpers) and some contract-specific code (see #148) it would be nice to import both of them without merging the source files. This could be done if we support multiple instances of --init in packages/cli/src/cli.ts
exportfunctionmain(originalArgs: readonlystring[]): void{constparser=newArgumentParser({description: "The CosmWasm REPL"});parser.addArgument("--version",{action: "storeTrue",help: "Print version and exit",});parser.addArgument("--init",{metavar: "FILEPATH",help: "Read initial TypeScript code from file",});// ...if(args.init){init+=fs.readFileSync(args.init,"utf8")+"\n";}
The text was updated successfully, but these errors were encountered:
If I have some generic setup code (helpers) and some contract-specific code (see #148) it would be nice to import both of them without merging the source files. This could be done if we support multiple instances of
--init
inpackages/cli/src/cli.ts
The text was updated successfully, but these errors were encountered: