forked from platformio/platformio-core
Refactored "base" paltform
This commit is contained in:
1 parent
02d7aa1e1e
commit
dac83d6164
11 files changed
+47
-22
No files matched your search
@@ -3,7 +3,7 @@
|
||||
|
||||
from click import argument, command, option, secho
|
||||
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
|
||||
|
||||
@command("install", short_help="Install new platforms")
|
||||
|
||||
@@ -9,7 +9,7 @@ from platformio.pkgmanager import PackageManager
|
||||
@command("list", short_help="List installed platforms")
|
||||
def cli():
|
||||
|
||||
for name, pkgs in PackageManager.get_installed().iteritems():
|
||||
for name, pkgs in PackageManager.get_installed().items():
|
||||
echo("{name:<20} with packages: {pkgs}".format(
|
||||
name=style(name, fg="cyan"),
|
||||
pkgs=", ".join(pkgs.keys())
|
||||
|
||||
@@ -5,7 +5,7 @@ from click import command, echo, option, secho, style
|
||||
|
||||
from platformio.exception import (InvalidEnvName, ProjectEnvsNotAvaialable,
|
||||
UndefinedEnvPlatform, UnknownEnvNames)
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
from platformio.util import get_project_config
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
from click import argument, command, echo, style
|
||||
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
from platformio.util import get_platforms
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from click import argument, command, echo, style
|
||||
|
||||
from platformio.exception import PlatformNotInstalledYet
|
||||
from platformio.pkgmanager import PackageManager
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
|
||||
|
||||
@command("show", short_help="Show details about an installed platforms")
|
||||
@@ -22,7 +22,7 @@ def cli(platform):
|
||||
info=p.get_short_info()))
|
||||
|
||||
pm = PackageManager(platform)
|
||||
for name, data in pm.get_installed(platform).iteritems():
|
||||
for name, data in pm.get_installed(platform).items():
|
||||
echo("----------")
|
||||
echo("Package: %s" % style(name, fg="yellow"))
|
||||
echo("Location: %s" % join(pm.get_platform_dir(), data['path']))
|
||||
|
||||
@@ -5,7 +5,7 @@ from click import argument, command, secho
|
||||
|
||||
from platformio.exception import PlatformNotInstalledYet
|
||||
from platformio.pkgmanager import PackageManager
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
|
||||
|
||||
@command("uninstall", short_help="Uninstall platforms")
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
from click import command, echo, style
|
||||
|
||||
from platformio.pkgmanager import PackageManager
|
||||
from platformio.platforms._base import PlatformFactory
|
||||
from platformio.platforms.base import PlatformFactory
|
||||
|
||||
|
||||
@command("update", short_help="Update installed platforms")
|
||||
|
||||
Reference in new issue
Block a user