Last active
November 7, 2019 06:51
-
-
Save john-osullivan/193592275a7898e542a11900d5b2e998 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
import { SuccessBox } from '../ui'; | |
export function handler(args:ArgShape<DappNameArg>) { | |
const { DappName, hubUrl } = args; | |
const url = `${hubUrl}/${DappName}`; | |
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