mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 02:54:25 +02:00
Introduce PIO Home
This commit is contained in:
27
platformio/commands/home.py
Normal file
27
platformio/commands/home.py
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
# Copyright (c) 2014-present PlatformIO <contact@platformio.org>
|
||||||
|
#
|
||||||
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
# you may not use this file except in compliance with the License.
|
||||||
|
# You may obtain a copy of the License at
|
||||||
|
#
|
||||||
|
# http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
#
|
||||||
|
# Unless required by applicable law or agreed to in writing, software
|
||||||
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
# See the License for the specific language governing permissions and
|
||||||
|
# limitations under the License.
|
||||||
|
|
||||||
|
import sys
|
||||||
|
|
||||||
|
import click
|
||||||
|
|
||||||
|
from platformio.managers.core import pioplus_call
|
||||||
|
|
||||||
|
|
||||||
|
@click.command("home", short_help="PIO Home")
|
||||||
|
@click.option(
|
||||||
|
"--port", "-p", type=int, default=8008, help="HTTP port, default=8008")
|
||||||
|
@click.option("--no-open", is_flag=True)
|
||||||
|
def cli(*args, **kwargs): # pylint: disable=unused-argument
|
||||||
|
pioplus_call(sys.argv[1:])
|
@@ -98,7 +98,7 @@ class Upgrader(object):
|
|||||||
self._upgrade_to_3_0_0),
|
self._upgrade_to_3_0_0),
|
||||||
(semantic_version.Version("3.0.0-b.11"),
|
(semantic_version.Version("3.0.0-b.11"),
|
||||||
self._upgrade_to_3_0_0b11),
|
self._upgrade_to_3_0_0b11),
|
||||||
(semantic_version.Version("3.4.0-a.9"),
|
(semantic_version.Version("3.5.0-a.2"),
|
||||||
self._update_dev_platforms)]
|
self._update_dev_platforms)]
|
||||||
|
|
||||||
def run(self, ctx):
|
def run(self, ctx):
|
||||||
|
@@ -21,8 +21,9 @@ from platformio import __version__, exception, util
|
|||||||
from platformio.managers.package import PackageManager
|
from platformio.managers.package import PackageManager
|
||||||
|
|
||||||
CORE_PACKAGES = {
|
CORE_PACKAGES = {
|
||||||
"pysite-pioplus": ">=0.3.0,<2",
|
"contrib-piohome": "<2",
|
||||||
"tool-pioplus": ">=0.9.1,<2",
|
"pysite-pioplus": ">=0.4.2,<2",
|
||||||
|
"tool-pioplus": ">=0.10.0,<2",
|
||||||
"tool-unity": "~1.20302.1",
|
"tool-unity": "~1.20302.1",
|
||||||
"tool-scons": "~3.20501.2"
|
"tool-scons": "~3.20501.2"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user