azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
30 lines (7 loc) • 954 B
JavaScript
/*** Generated by streamline 0.10.17 (callbacks) - DO NOT EDIT ***/ var __rt=require('streamline/lib/callbacks/runtime').runtime(__filename, false),__func=__rt.__func,__cb=__rt.__cb; var profile = require("../util/profile");
var utils = require("../util/utils");
var $ = utils.getLocaleString;
exports.init = function(cli) {
cli.command("portal").description($("Open the portal in a browser")).option("-e, --environment <environment>", $("the publish settings download environment")).option("-r, --realm <realm>", $("the organization's realm")).execute(function __1(options, _) { var targetUrl; var __frame = { name: "__1", line: 27 }; return __func(_, this, arguments, __1, 1, __frame, function __$__1() {
targetUrl = profile.current.getEnvironment(options.environment).getPortalUrl(options.realm);
return cli.interaction.launchBrowser(targetUrl, __cb(_, __frame, 2, 22, function __$__1() { _(); }, true)); }); });};