Created
November 7, 2019 04:51
-
-
Save john-osullivan/4277714793fee23703d0ed8b65f6d691 to your computer and use it in GitHub Desktop.
Dev Diaries #3 - CLI goto handler
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 handler(args:ArgShape<DappNameArg>) { | |
const { DappName, hubUrl } = args; | |
const url = `${hubUrl}/${DappName}`; | |
// Each and every handler function has a | |
// render call like this one. | |
render( | |
<SuccessBox result={{ | |
message: `Opening ${url} now!` | |
}} /> | |
) | |
open(url); | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment