Skip to content

Instantly share code, notes, and snippets.

@john-osullivan
Created November 7, 2019 04:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save john-osullivan/4277714793fee23703d0ed8b65f6d691 to your computer and use it in GitHub Desktop.
Save john-osullivan/4277714793fee23703d0ed8b65f6d691 to your computer and use it in GitHub Desktop.
Dev Diaries #3 - CLI goto handler
...
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