forked from platformio/platformio-core
Allow to initialize project in off-line mode
This commit is contained in:
1 parent
d2a45245e2
commit
7116deaf54
3 files changed
+23
-28
No files matched your search
@@ -118,6 +118,15 @@ class PlatformManager(BasePkgManager):
|
||||
def get_registered_boards():
|
||||
return util.get_api_result("/boards")
|
||||
|
||||
def board_config(self, id_):
|
||||
for manifest in self.get_installed_boards():
|
||||
if manifest['id'] == id_:
|
||||
return manifest
|
||||
for manifest in self.get_registered_boards():
|
||||
if manifest['id'] == id_:
|
||||
return manifest
|
||||
raise exception.UnknownBoard(id_)
|
||||
|
||||
|
||||
class PlatformFactory(object):
|
||||
|
||||
|
||||
Reference in new issue
Block a user