Skip to content

Commit

Permalink
Merge 5a902bd into 9c0c9be
Browse files Browse the repository at this point in the history
  • Loading branch information
joehan committed Nov 13, 2019
2 parents 9c0c9be + 5a902bd commit 16aeeac
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CHANGELOG.md
@@ -1,2 +1,3 @@
* Fixes a bug where the Functions emulator ignored the "host" configuration (#1722)
* Fixes a bug where the Functions emulator accepted requests to too many paths (#1773)
* Fixes a bug where the Functions emulator accepted requests to too many paths (#1773)
* Print Firebase Console links for Extensions after operations.
9 changes: 9 additions & 0 deletions src/commands/ext-configure.ts
Expand Up @@ -69,6 +69,15 @@ export default new Command("ext:configure <extensionInstanceId>")
const res = await extensionsApi.configureInstance(projectId, instanceId, params);
spinner.stop();
utils.logLabeledSuccess(logPrefix, `successfully configured ${clc.bold(instanceId)}.`);
utils.logLabeledBullet(
logPrefix,
marked(
`You can view your reconfigured instance in the Firebase console: ${utils.consoleUrl(
projectId,
`/extensions/instances/${instanceId}?tab=config`
)}`
)
);
return res;
} catch (err) {
spinner.fail();
Expand Down
9 changes: 9 additions & 0 deletions src/commands/ext-install.ts
Expand Up @@ -91,6 +91,15 @@ async function installExtension(options: InstallExtensionOptions): Promise<void>
} else {
logger.debug("No usage instructions provided.");
}
utils.logLabeledBullet(
logPrefix,
marked(
`You can view your new instance in the Firebase console: ${utils.consoleUrl(
projectId,
`/extensions/instances/${instanceId}?tab=usage`
)}`
)
);
} catch (err) {
spinner.fail();
if (err instanceof FirebaseError) {
Expand Down
9 changes: 9 additions & 0 deletions src/commands/ext-update.ts
Expand Up @@ -82,6 +82,15 @@ export default new Command("ext:update <extensionInstanceId>")
await update(updateOptions);
spinner.stop();
utils.logLabeledSuccess(logPrefix, `successfully updated ${clc.bold(instanceId)}.`);
utils.logLabeledBullet(
logPrefix,
marked(
`You can view your updated instance in the Firebase console: ${utils.consoleUrl(
projectId,
`/extensions/instances/${instanceId}?tab=usage`
)}`
)
);
} catch (err) {
spinner.fail();
if (!(err instanceof FirebaseError)) {
Expand Down

0 comments on commit 16aeeac

Please sign in to comment.