Last active
November 7, 2019 09:31
-
-
Save john-osullivan/d0f9ea436a9b882effdd0348ffc4a26c to your computer and use it in GitHub Desktop.
Dev Diary #3 - Loading File via Arg Name
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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