Implemented "platformio search" command

This commit is contained in:
Ivan Kravets committed 2014-06-12 23:29:47 +03:00
1 parent 673a41c21c
commit bdfe849c97
9 files changed
+66 -14

No files matched your search

@@ -34,6 +34,13 @@ class BasePlatform(object):
def get_name(self):
raise NotImplementedError()
def get_short_info(self):
if self.__doc__:
doclines = [l.strip() for l in self.__doc__.splitlines()]
return " ".join(doclines).strip()
else:
raise NotImplementedError()
def install(self, with_packages, without_packages):
requirements = []
pm = PackageManager(self.get_name())
+5 -1
View File
@@ -3,10 +3,14 @@
from os.path import join
from platformio.platforms.base import BasePlatform
from platformio.platforms._base import BasePlatform
class AtmelavrPlatform(BasePlatform):
"""
An embedded platform for Atmel AVR microcontrollers
(with Arduino Framework)
"""
PACKAGES = {
+5 -1
View File
@@ -3,10 +3,14 @@
from os.path import join
from platformio.platforms.base import BasePlatform
from platformio.platforms._base import BasePlatform
class Timsp430Platform(BasePlatform):
"""
An embedded platform for TI MSP430 microcontrollers
(with Energia Framework)
"""
PACKAGES = {
+5 -1
View File
@@ -3,10 +3,14 @@
from os.path import join
from platformio.platforms.base import BasePlatform
from platformio.platforms._base import BasePlatform
class TitivaPlatform(BasePlatform):
"""
An embedded platform for TI TIVA C ARM microcontrollers
(with Energia Framework)
"""
PACKAGES = {