Skip to content

Instantly share code, notes, and snippets.

@john-osullivan
Last active November 7, 2019 09:31
Show Gist options
  • Save john-osullivan/d0f9ea436a9b882effdd0348ffc4a26c to your computer and use it in GitHub Desktop.
Save john-osullivan/d0f9ea436a9b882effdd0348ffc4a26c to your computer and use it in GitHub Desktop.
Dev Diary #3 - Loading File via Arg Name
export function builder(yargs:Argv<UniversalArgs>) {
yargs
.middleware(requireAuthData)
.options({
'AbiPath' : {
type: 'string'
},
...
});
}
export function handler(args:ArgShape<UpdateDapp.Args & DappNameArg>) {
let updateArg = {} as UpdateDapp.Args;
if (args.AbiFile) updateArg.Abi = args.AbiFile;
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment