本文整理匯總了TypeScript中ember-cli/lib/utilities/windows-admin.checkWindowsElevation函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript checkWindowsElevation函數的具體用法?TypeScript checkWindowsElevation怎麽用?TypeScript checkWindowsElevation使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了checkWindowsElevation函數的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: assign
.then(function(commandOptions: ServeTaskOptions) {
commandOptions = assign({}, commandOptions, {
baseURL: this.project.config(commandOptions.environment).baseURL || '/'
});
if (commandOptions.proxy) {
if (!commandOptions.proxy.match(/^(http:|https:)/)) {
var message = 'You need to include a protocol with the proxy URL.' + EOL + 'Try --proxy http://' + commandOptions.proxy;
return Promise.reject(new SilentError(message));
}
}
const ServeWebpackTask = (require('../tasks/serve-webpack.ts'))
var serve = new ServeWebpackTask({
ui: this.ui,
analytics: this.analytics,
project: this.project,
});
return win.checkWindowsElevation(this.ui).then(function() {
return serve.run(commandOptions);
});
}.bind(this));
示例2: build
function build() {
if (options.skipBuild) return Promise.resolve();
return win.checkWindowsElevation(ui)
.then(() => buildTask.run(buildOptions));
}