mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-30 01:57:13 +02:00
Show different info about upgrading PlatformIO within CLI or IDE
This commit is contained in:
@ -30,7 +30,7 @@ PlatformIO
|
|||||||
:target: https://gitter.im/platformio/platformio
|
:target: https://gitter.im/platformio/platformio
|
||||||
.. image:: https://img.shields.io/donate/PlatformIO.png?color=yellow
|
.. image:: https://img.shields.io/donate/PlatformIO.png?color=yellow
|
||||||
:alt: Donate for PlatformIO.Org
|
:alt: Donate for PlatformIO.Org
|
||||||
:target: https://www.liqpay.com/api/3/checkout?data=eyJ2ZXJzaW9uIjozLCJhY3Rpb24iOiJwYXlkb25hdGUiLCJwdWJsaWNfa2V5IjoiaTc0NzkxMDA2NjIxIiwiYW1vdW50IjoiMSIsImN1cnJlbmN5IjoiVVNEIiwiZGVzY3JpcHRpb24iOiJEb25hdGlvbiBmb3IgUGxhdGZvcm1JTy5PcmciLCJ0eXBlIjoiZG9uYXRlIiwibGFuZ3VhZ2UiOiJlbiJ9&signature=XYvETjqlpoFhoFtxUJlF6hQyS7Y%3D
|
:target: http://platformio.org/donate/
|
||||||
|
|
||||||
|
|
||||||
`Home & Demo <http://platformio.org>`_ |
|
`Home & Demo <http://platformio.org>`_ |
|
||||||
|
@ -146,12 +146,15 @@ def after_upgrade(ctx):
|
|||||||
click.style("star", fg="cyan"),
|
click.style("star", fg="cyan"),
|
||||||
click.style("https://github.com/platformio/platformio", fg="cyan")
|
click.style("https://github.com/platformio/platformio", fg="cyan")
|
||||||
))
|
))
|
||||||
|
|
||||||
if not getenv("PLATFORMIO_IDE"):
|
if not getenv("PLATFORMIO_IDE"):
|
||||||
click.echo("- %s PlatformIO IDE for IoT development > %s" % (
|
click.echo("- %s PlatformIO IDE for IoT development > %s" % (
|
||||||
click.style("try", fg="cyan"),
|
click.style("try", fg="cyan"),
|
||||||
click.style("http://platformio.org/", fg="cyan")
|
click.style("http://platformio.org/", fg="cyan")
|
||||||
))
|
))
|
||||||
|
click.echo("- %s to keep PlatformIO alive! > %s" % (
|
||||||
|
click.style("donate", fg="cyan"),
|
||||||
|
click.style("http://platformio.org/donate/", fg="cyan")
|
||||||
|
))
|
||||||
|
|
||||||
click.echo("*" * terminal_width)
|
click.echo("*" * terminal_width)
|
||||||
click.echo("")
|
click.echo("")
|
||||||
@ -200,10 +203,16 @@ def check_platformio_upgrade():
|
|||||||
click.secho("There is a new version %s of PlatformIO available.\n"
|
click.secho("There is a new version %s of PlatformIO available.\n"
|
||||||
"Please upgrade it via `" % latest_version,
|
"Please upgrade it via `" % latest_version,
|
||||||
fg="yellow", nl=False)
|
fg="yellow", nl=False)
|
||||||
click.secho("platformio upgrade", fg="cyan", nl=False)
|
if getenv("PLATFORMIO_IDE"):
|
||||||
click.secho("` or `", fg="yellow", nl=False)
|
click.secho("PlatformIO IDE Menu: Upgrade PlatformIO",
|
||||||
click.secho("pip install -U platformio", fg="cyan", nl=False)
|
fg="cyan", nl=False)
|
||||||
click.secho("` command.\nChanges: ", fg="yellow", nl=False)
|
click.secho("`.", fg="yellow")
|
||||||
|
else:
|
||||||
|
click.secho("platformio upgrade", fg="cyan", nl=False)
|
||||||
|
click.secho("` or `", fg="yellow", nl=False)
|
||||||
|
click.secho("pip install -U platformio", fg="cyan", nl=False)
|
||||||
|
click.secho("` command.", fg="yellow")
|
||||||
|
click.secho("Changes: ", fg="yellow", nl=False)
|
||||||
click.secho("http://docs.platformio.org/en/latest/history.html",
|
click.secho("http://docs.platformio.org/en/latest/history.html",
|
||||||
fg="cyan")
|
fg="cyan")
|
||||||
click.echo("*" * terminal_width)
|
click.echo("*" * terminal_width)
|
||||||
|
Reference in New Issue
Block a user