forked from platformio/platformio-core
Allowed to skip default packages via --skip-default-package flag
This commit is contained in:
1 parent
dac83d6164
commit
3125c8485b
6 files changed
+28
-14
No files matched your search
@@ -8,14 +8,13 @@ from platformio.platforms.base import PlatformFactory
|
||||
|
||||
@command("install", short_help="Install new platforms")
|
||||
@argument("platforms", nargs=-1)
|
||||
@option('--with-package', multiple=True, metavar="<package>")
|
||||
@option('--without-package', multiple=True, metavar="<package>")
|
||||
def cli(platforms, with_package, without_package):
|
||||
@option("--with-package", multiple=True, metavar="<package>")
|
||||
@option("--without-package", multiple=True, metavar="<package>")
|
||||
@option("--skip-default-package", is_flag=True)
|
||||
def cli(platforms, with_package, without_package, skip_default_package):
|
||||
|
||||
for platform in platforms:
|
||||
|
||||
p = PlatformFactory().newPlatform(platform)
|
||||
|
||||
if p.install(with_package, without_package):
|
||||
if p.install(with_package, without_package, skip_default_package):
|
||||
secho("The platform '%s' has been successfully installed!" %
|
||||
platform, fg="green")
|
||||
Reference in new issue
Block a user