Migrated first commands to new argument parser
This commit is contained in:
parent
2fed654c16
commit
4fe073580a
@ -54,7 +54,7 @@ class AddService(CommandABC):
|
|||||||
"""
|
"""
|
||||||
if 'simulate' in args:
|
if 'simulate' in args:
|
||||||
args.remove('simulate')
|
args.remove('simulate')
|
||||||
Console.write_line('Simulating:')
|
Console.write_line('Running in simulation mode:')
|
||||||
self._is_simulation = True
|
self._is_simulation = True
|
||||||
|
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
|
@ -39,7 +39,7 @@ class InstallService(CommandABC):
|
|||||||
self._project_settings = project_settings
|
self._project_settings = project_settings
|
||||||
self._cli_settings = cli_settings
|
self._cli_settings = cli_settings
|
||||||
|
|
||||||
self._is_simulating = False
|
self._is_simulation = False
|
||||||
self._is_virtual = False
|
self._is_virtual = False
|
||||||
|
|
||||||
self._project_file = f'{self._config.get_configuration("ProjectName")}.json'
|
self._project_file = f'{self._config.get_configuration("ProjectName")}.json'
|
||||||
@ -172,7 +172,7 @@ class InstallService(CommandABC):
|
|||||||
|
|
||||||
self._project_settings.dependencies.append(new_name)
|
self._project_settings.dependencies.append(new_name)
|
||||||
|
|
||||||
if not self._is_simulating:
|
if not self._is_simulation:
|
||||||
config = {
|
config = {
|
||||||
ProjectSettings.__name__: SettingsHelper.get_project_settings_dict(self._project_settings),
|
ProjectSettings.__name__: SettingsHelper.get_project_settings_dict(self._project_settings),
|
||||||
BuildSettings.__name__: SettingsHelper.get_build_settings_dict(self._build_settings)
|
BuildSettings.__name__: SettingsHelper.get_build_settings_dict(self._build_settings)
|
||||||
@ -190,14 +190,14 @@ class InstallService(CommandABC):
|
|||||||
:param args:
|
:param args:
|
||||||
:return:
|
:return:
|
||||||
"""
|
"""
|
||||||
if '--virtual' in args:
|
if 'virtual' in args:
|
||||||
self._is_virtual = True
|
self._is_virtual = True
|
||||||
args.remove('--virtual')
|
args.remove('virtual')
|
||||||
Console.write_line('Running in virtual mode:')
|
Console.write_line('Running in virtual mode:')
|
||||||
|
|
||||||
if '--simulate' in args:
|
if 'simulate' in args:
|
||||||
self._is_virtual = True
|
self._is_simulation = True
|
||||||
args.remove('--simulate')
|
args.remove('simulate')
|
||||||
Console.write_line('Running in simulation mode:')
|
Console.write_line('Running in simulation mode:')
|
||||||
|
|
||||||
if len(args) == 0:
|
if len(args) == 0:
|
||||||
|
@ -75,7 +75,7 @@ class RemoveService(CommandABC):
|
|||||||
"""
|
"""
|
||||||
if 'simulate' in args:
|
if 'simulate' in args:
|
||||||
args.remove('simulate')
|
args.remove('simulate')
|
||||||
Console.write_line('Simulating:')
|
Console.write_line('Running in simulation mode:')
|
||||||
self._is_simulation = True
|
self._is_simulation = True
|
||||||
|
|
||||||
project_name = args[0]
|
project_name = args[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user