From f8419c9184a9f77ae4f7d5bbb02d727c52867a1c Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Fri, 29 Jan 2016 14:38:06 +0200 Subject: [PATCH] Inform users about PlatformIO IDE --- platformio/maintenance.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/platformio/maintenance.py b/platformio/maintenance.py index f7e5a51f..c727e635 100644 --- a/platformio/maintenance.py +++ b/platformio/maintenance.py @@ -14,7 +14,7 @@ import re import struct -from os import remove +from os import getenv, remove from os.path import isdir, isfile, join from shutil import rmtree from time import time @@ -142,10 +142,17 @@ def after_upgrade(ctx): (click.style("follow", fg="cyan"), click.style("https://twitter.com/PlatformIO_Org", fg="cyan")) ) - click.echo("- %s it on GitHub! > %s" % ( + click.echo("- %s it on GitHub > %s" % ( click.style("star", fg="cyan"), click.style("https://github.com/platformio/platformio", fg="cyan") )) + + if not getenv("PLATFORMIO_IDE"): + click.echo("- %s PlatformIO IDE for IoT development > %s" % ( + click.style("try", fg="cyan"), + click.style("http://platformio.org/", fg="cyan") + )) + click.echo("*" * terminal_width) click.echo("")