Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Print message when successfully setting the tns proxy configuration #991

Merged
merged 1 commit into from
Aug 15, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions commands/proxy/proxy-set.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export class ProxySetCommand extends ProxyCommandBase {
private $injector: IInjector,
private $prompter: IPrompter,
private $hostInfo: IHostInfo,
private $staticConfig: Config.IStaticConfig,
protected $analyticsService: IAnalyticsService,
protected $logger: ILogger,
protected $options: ICommonOptions,
Expand Down Expand Up @@ -103,6 +104,13 @@ export class ProxySetCommand extends ProxyCommandBase {
this.$logger.warn(`Note that storing credentials is not supported on ${platform()} yet.`);
}

const clientName = this.$staticConfig.CLIENT_NAME.toLowerCase();
let messageNote = (clientName === "tns" ?
"Note that 'npm' and 'Gradle' need to be configured separately to work with a proxy." :
"Note that `npm` needs to be configured separately to work with a proxy.") + EOL;

this.$logger.warn(`${messageNote}Run '${clientName} proxy set --help' for more information.`);

this.$proxyService.setCache(proxyCache);
this.$logger.out(`Successfully setup proxy.${EOL}`);
this.$logger.out(await this.$proxyService.getInfo());
Expand Down