Commit c38cc3f7 authored by David Danier's avatar David Danier

Merge branch 'task/7' into 'master'

#7 Optimize IDE support

See merge request build/b5!12
parents 50fb8815 bb296242
......@@ -4,15 +4,15 @@ import sys
import termcolor
from .lib.argumentparser import MainArgumentParser
from . import VERSION
from .exceptions import B5ExecutionError
from .lib.config import find_configs
from .lib.config import load_config
from .lib.detect import detect_project_path
from .lib.script import StoredScriptSource, construct_script_source, construct_script_run
from .lib.state import State
from .lib.taskfile import find_taskfiles
from b5.lib.argumentparser import MainArgumentParser
from b5 import VERSION
from b5.exceptions import B5ExecutionError
from b5.lib.config import find_configs
from b5.lib.config import load_config
from b5.lib.detect import detect_project_path
from b5.lib.script import StoredScriptSource, construct_script_source, construct_script_run
from b5.lib.state import State
from b5.lib.taskfile import find_taskfiles
def main():
......@@ -86,3 +86,6 @@ def main():
except B5ExecutionError as error:
termcolor.cprint(str(error), 'red')
sys.exit(1)
if __name__ == '__main__':
main()
\ No newline at end of file
import re
from ..lib.config import merge_config
from b5.lib.config import merge_config
CONFIG_PREFIX_RE = re.compile('[^A-Z0-9]')
MODULES = {
......@@ -33,7 +33,7 @@ class BaseModule:
pass
def _script_config_vars(self):
from ..lib.script import config_script_source
from b5.lib.script import config_script_source
return config_script_source(self.config, prefix=CONFIG_PREFIX_RE.sub('_', self.name.upper()))
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class ComposerModule(BaseModule):
......
......@@ -3,8 +3,8 @@ import os
import pwd
import warnings
from ..exceptions import B5ExecutionError
from . import BaseModule
from b5.exceptions import B5ExecutionError
from b5.modules import BaseModule
class DockerModule(BaseModule):
......
import os
import shlex
from .. import B5_PATH
from . import BaseModule
from b5 import B5_PATH
from b5.modules import BaseModule
class LegacyModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class NpmModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class PipenvModule(BaseModule):
......
......@@ -4,9 +4,9 @@ import sys
import termcolor
import jinja2
from ..lib.argumentparser import TemplateArgumentParser
from .. import VERSION
from . import BaseModule
from b5.lib.argumentparser import TemplateArgumentParser
from b5 import VERSION
from b5.modules import BaseModule
class TemplateModule(BaseModule):
......
import shlex
import os
from . import BaseModule
from b5.modules import BaseModule
class VirtualenvModule(BaseModule):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment