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

Conversation

petekanev
Copy link
Contributor

Log a message instructing the user to run the proxy set help command to find out how to setup the npm and Gradle proxy configurations.

Implemented as suggested in NativeScript/nativescript-cli#2816

Related: NativeScript/nativescript-cli#3004

@justcodebuilduser
Copy link

💔

@@ -103,6 +103,8 @@ export class ProxySetCommand extends ProxyCommandBase {
this.$logger.warn(`Note that storing credentials is not supported on ${platform()} yet.`);
}

this.$logger.warn("Note that 'npm' and 'Gradle' need to be configured separately to work with a proxy. Run 'tns proxy set --help' for more information.");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As this code is shared between AppBuilder and NativeScript CLI, you should use $staticConfig.CLIENT_NAME instead of tns in the message.
Also Gradle is not used in AppBuilder CLI.
Maybe we can place some if here to print the message only when we are in NativeScript CLI scenario.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not consider that scenario, you are right!

@petekanev petekanev force-pushed the pete/proxy-set-info branch from b81e8e5 to b13d070 Compare August 3, 2017 12:41
@petekanev petekanev force-pushed the pete/proxy-set-info branch from b13d070 to 93a60e1 Compare August 15, 2017 10:01
@petekanev petekanev merged commit 8c4d71c into master Aug 15, 2017
@petekanev petekanev deleted the pete/proxy-set-info branch August 15, 2017 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants