Compare commits

..

No commits in common. "688381b1065a206aeb125cfccd9b179889822d06" and "cae2e6d92e130d10b096c20847f5dbca92051edd" have entirely different histories.

37 changed files with 128 additions and 137 deletions

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli" __title__ = "cpl_cli"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli" __title__ = "cpl_cli"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -28,4 +28,4 @@ from .main import main
from .startup import Startup from .startup import Startup
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli._templates" __title__ = "cpl_cli._templates"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,21 +6,21 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
__title__ = "cpl_cli._templates.build" __title__ = 'cpl_cli._templates.build'
__author__ = "Sven Heidemann" __author__ = 'Sven Heidemann'
__license__ = "MIT" __license__ = 'MIT'
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = 'Copyright (c) 2020 - 2023 sh-edraft.de'
__version__ = "2024.10.0" __version__ = '2023.4.0.post3'
from collections import namedtuple from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major='2023', minor='4', micro='0.post3')

View File

@ -19,19 +19,19 @@ class InitTemplate:
\"\"\" \"\"\"
__title__ = "$Title" __title__ = '$Title'
__author__ = "$Author" __author__ = '$Author'
__license__ = "$LicenseName" __license__ = '$LicenseName'
__copyright__ = "Copyright (c) $CopyrightDate $CopyrightName" __copyright__ = 'Copyright (c) $CopyrightDate $CopyrightName'
__version__ = "$Version" __version__ = '$Version'
from collections import namedtuple from collections import namedtuple
$Imports $Imports
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple('VersionInfo', 'major minor micro')
version_info = VersionInfo(major="$Major", minor="$Minor", micro="$Micro") version_info = VersionInfo(major='$Major', minor='$Minor', micro='$Micro')
""" """
) )

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli._templates.publish" __title__ = "cpl_cli._templates.publish"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.abc" __title__ = "cpl_cli.abc"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports # imports
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.command" __title__ = "cpl_cli.command"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -29,4 +29,4 @@ from .publish_service import PublishService
from .version_service import VersionService from .version_service import VersionService
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.configuration" __title__ = "cpl_cli.configuration"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -31,4 +31,4 @@ from .workspace_settings import WorkspaceSettings
from .workspace_settings_name_enum import WorkspaceSettingsNameEnum from .workspace_settings_name_enum import WorkspaceSettingsNameEnum
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -2,16 +2,16 @@
"ProjectSettings": { "ProjectSettings": {
"Name": "cpl-cli", "Name": "cpl-cli",
"Version": { "Version": {
"Major": "2024", "Major": "2023",
"Minor": "10", "Minor": "4",
"Micro": "0" "Micro": "0.post3"
}, },
"Author": "Sven Heidemann", "Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de", "AuthorEmail": "sven.heidemann@sh-edraft.de",
"Description": "CPL CLI", "Description": "CPL CLI",
"LongDescription": "CPL Command Line Interface", "LongDescription": "CPL Command Line Interface",
"URL": "https://www.sh-edraft.de", "URL": "https://www.sh-edraft.de",
"CopyrightDate": "2020 - 2024", "CopyrightDate": "2020 - 2023",
"CopyrightName": "sh-edraft.de", "CopyrightName": "sh-edraft.de",
"LicenseName": "MIT", "LicenseName": "MIT",
"LicenseDescription": "MIT, see LICENSE for more details.", "LicenseDescription": "MIT, see LICENSE for more details.",
@ -19,7 +19,7 @@
"cpl-core>=2023.4.0" "cpl-core>=2023.4.0"
], ],
"DevDependencies": [], "DevDependencies": [],
"PythonVersion": ">=3.12", "PythonVersion": ">=3.10",
"PythonPath": { "PythonPath": {
"linux": "../../venv" "linux": "../../venv"
}, },

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.helper" __title__ = "cpl_cli.helper"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.live_server" __title__ = "cpl_cli.live_server"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -1,6 +1,7 @@
import importlib.metadata
from typing import Type from typing import Type
import pkg_resources
from cpl_cli.cli import CLI from cpl_cli.cli import CLI
from cpl_cli.startup import Startup from cpl_cli.startup import Startup
from cpl_cli.startup_argument_extension import StartupArgumentExtension from cpl_cli.startup_argument_extension import StartupArgumentExtension
@ -15,12 +16,13 @@ def get_startup_extensions() -> list[Type[StartupExtensionABC]]:
blacklisted_packages = ["cpl-cli"] blacklisted_packages = ["cpl-cli"]
startup_extensions = [] startup_extensions = []
installed_packages = importlib.metadata.distributions() installed_packages = pkg_resources.working_set
for p in installed_packages: for p in installed_packages:
if not p.name.startswith("cpl-") or p.name in blacklisted_packages: package = str(p).split(" ")[0]
if not package.startswith("cpl-") or package in blacklisted_packages:
continue continue
package = p.name.replace("-", "_") package = package.replace("-", "_")
loaded_package = __import__(package) loaded_package = __import__(package)
if "__cli_startup_extension__" not in dir(loaded_package): if "__cli_startup_extension__" not in dir(loaded_package):
continue continue

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.migrations" __title__ = "cpl_cli.migrations"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports # imports
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.migrations.base" __title__ = "cpl_cli.migrations.base"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.migrations.service" __title__ = "cpl_cli.migrations.service"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.publish" __title__ = "cpl_cli.publish"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -25,4 +25,4 @@ from .publisher_abc import PublisherABC
from .publisher_service import PublisherService from .publisher_service import PublisherService
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.source_creator" __title__ = "cpl_cli.source_creator"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -28,13 +28,10 @@ class StartupArgumentExtension(StartupExtensionABC):
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "add", ["a", "A"], AddService, True, validators=[WorkspaceValidator] ArgumentTypeEnum.Executable, "", "add", ["a", "A"], AddService, True, validators=[WorkspaceValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"]) ).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"])
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "build", ["b", "B"], BuildService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "build", ["b", "B"], BuildService, True, validators=[ProjectValidator]
) )
config.create_console_argument(ArgumentTypeEnum.Executable, "", "generate", ["g", "G"], GenerateService, True) config.create_console_argument(ArgumentTypeEnum.Executable, "", "generate", ["g", "G"], GenerateService, True)
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "install", ["i", "I"], InstallService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "install", ["i", "I"], InstallService, True, validators=[ProjectValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"]).add_console_argument( ).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"]).add_console_argument(
@ -48,7 +45,6 @@ class StartupArgumentExtension(StartupExtensionABC):
).add_console_argument( ).add_console_argument(
ArgumentTypeEnum.Flag, "--", "cpl-dev", ["cd", "CD"] ArgumentTypeEnum.Flag, "--", "cpl-dev", ["cd", "CD"]
) )
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "new", ["n", "N"], NewService, True ArgumentTypeEnum.Executable, "", "new", ["n", "N"], NewService, True
).add_console_argument(ArgumentTypeEnum.Flag, "--", "async", ["a", "A"]).add_console_argument( ).add_console_argument(ArgumentTypeEnum.Flag, "--", "async", ["a", "A"]).add_console_argument(
@ -64,23 +60,18 @@ class StartupArgumentExtension(StartupExtensionABC):
).add_console_argument( ).add_console_argument(
ArgumentTypeEnum.Flag, "--", "base", ["b", "B"] ArgumentTypeEnum.Flag, "--", "base", ["b", "B"]
) )
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "publish", ["p", "P"], PublishService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "publish", ["p", "P"], PublishService, True, validators=[ProjectValidator]
) )
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "remove", ["r", "R"], RemoveService, True, validators=[WorkspaceValidator] ArgumentTypeEnum.Executable, "", "remove", ["r", "R"], RemoveService, True, validators=[WorkspaceValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"]) ).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"])
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "run", [], RunService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "run", [], RunService, True, validators=[ProjectValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"]) ).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"])
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "start", ["s", "S"], StartService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "start", ["s", "S"], StartService, True, validators=[ProjectValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"]) ).add_console_argument(ArgumentTypeEnum.Flag, "--", "dev", ["d", "D"])
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, ArgumentTypeEnum.Executable,
"", "",
@ -94,7 +85,6 @@ class StartupArgumentExtension(StartupExtensionABC):
).add_console_argument( ).add_console_argument(
ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"] ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"]
) )
config.create_console_argument( config.create_console_argument(
ArgumentTypeEnum.Executable, "", "update", ["u", "U"], UpdateService, True, validators=[ProjectValidator] ArgumentTypeEnum.Executable, "", "update", ["u", "U"], UpdateService, True, validators=[ProjectValidator]
).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"]).add_console_argument( ).add_console_argument(ArgumentTypeEnum.Flag, "--", "simulate", ["s", "S"]).add_console_argument(
@ -104,7 +94,6 @@ class StartupArgumentExtension(StartupExtensionABC):
).add_console_argument( ).add_console_argument(
ArgumentTypeEnum.Flag, "--", "cpl-dev", ["cd", "CD"] ArgumentTypeEnum.Flag, "--", "cpl-dev", ["cd", "CD"]
) )
config.create_console_argument(ArgumentTypeEnum.Executable, "", "version", ["v", "V"], VersionService, True) config.create_console_argument(ArgumentTypeEnum.Executable, "", "version", ["v", "V"], VersionService, True)
config.for_each_argument(lambda a: a.add_console_argument(ArgumentTypeEnum.Flag, "--", "help", ["h", "H"])) config.for_each_argument(lambda a: a.add_console_argument(ArgumentTypeEnum.Flag, "--", "help", ["h", "H"]))

View File

@ -6,7 +6,7 @@ cpl-cli CPL CLI
CPL Command Line Interface CPL Command Line Interface
:copyright: (c) 2020 - 2024 sh-edraft.de :copyright: (c) 2020 - 2023 sh-edraft.de
:license: MIT, see LICENSE for more details. :license: MIT, see LICENSE for more details.
""" """
@ -14,8 +14,8 @@ CPL Command Line Interface
__title__ = "cpl_cli.validators" __title__ = "cpl_cli.validators"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2023 sh-edraft.de"
__version__ = "2024.10.0" __version__ = "2023.4.0.post3"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="10", micro="0") version_info = VersionInfo(major="2023", minor="4", micro="0.post3")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -23,4 +23,4 @@ from collections import namedtuple
# imports: # imports:
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.application"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -29,4 +29,4 @@ from .startup_abc import StartupABC
from .startup_extension_abc import StartupExtensionABC from .startup_extension_abc import StartupExtensionABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.configuration"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -35,4 +35,4 @@ from .validator_abc import ValidatorABC
from .variable_argument import VariableArgument from .variable_argument import VariableArgument
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -345,7 +345,7 @@ class Configuration(ConfigurationABC):
executables: list[ExecutableArgument] = [] executables: list[ExecutableArgument] = []
self._parse_arguments(executables, arg_list, self._argument_types) self._parse_arguments(executables, arg_list, self._argument_types)
except Exception as e: except Exception as e:
Console.error("An error occurred while parsing arguments.", traceback.format_exc()) Console.error("An error occurred while parsing arguments.")
sys.exit() sys.exit()
try: try:

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.console"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -28,4 +28,4 @@ from .foreground_color_enum import ForegroundColorEnum
from .spinner_thread import SpinnerThread from .spinner_thread import SpinnerThread
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -2,9 +2,9 @@
"ProjectSettings": { "ProjectSettings": {
"Name": "cpl-core", "Name": "cpl-core",
"Version": { "Version": {
"Major": "2024", "Major": "2023",
"Minor": "6", "Minor": "10",
"Micro": "0" "Micro": "2"
}, },
"Author": "Sven Heidemann", "Author": "Sven Heidemann",
"AuthorEmail": "sven.heidemann@sh-edraft.de", "AuthorEmail": "sven.heidemann@sh-edraft.de",
@ -16,17 +16,17 @@
"LicenseName": "MIT", "LicenseName": "MIT",
"LicenseDescription": "MIT, see LICENSE for more details.", "LicenseDescription": "MIT, see LICENSE for more details.",
"Dependencies": [ "Dependencies": [
"art>=6.2", "art>=5.9",
"colorama>=0.4.6", "colorama>=0.4.6",
"psutil>=6.0.0", "psutil>=5.9.4",
"packaging>=24.1", "packaging>=23.0",
"pynput>=1.7.6", "pynput>=1.7.6",
"setuptools>=70.1.0", "setuptools>=67.6.1",
"tabulate>=0.9.0", "tabulate>=0.9.0",
"termcolor>=2.4.0", "termcolor>=2.2.0",
"watchdog>=4.0.1", "watchdog>=3.0.0",
"wheel>=0.43.0", "wheel>=0.40.0",
"mysql-connector-python>=8.4.0" "mysql-connector-python>=8.1.0"
], ],
"DevDependencies": [ "DevDependencies": [
"Sphinx==5.0.2", "Sphinx==5.0.2",
@ -36,7 +36,7 @@
"sphinx-markdown-builder==0.5.5", "sphinx-markdown-builder==0.5.5",
"pygount==1.5.1" "pygount==1.5.1"
], ],
"PythonVersion": ">=3.12", "PythonVersion": ">=3.10",
"PythonPath": {}, "PythonPath": {},
"Classifiers": [] "Classifiers": []
}, },

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.database"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -26,4 +26,4 @@ from .database_settings import DatabaseSettings
from .table_abc import TableABC from .table_abc import TableABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.database.connection"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -25,4 +25,4 @@ from .database_connection import DatabaseConnection
from .database_connection_abc import DatabaseConnectionABC from .database_connection_abc import DatabaseConnectionABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.database.context"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -25,4 +25,4 @@ from .database_context import DatabaseContext
from .database_context_abc import DatabaseContextABC from .database_context_abc import DatabaseContextABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.dependency_injection"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -31,4 +31,4 @@ from .service_provider import ServiceProvider
from .service_provider_abc import ServiceProviderABC from .service_provider_abc import ServiceProviderABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.environment"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -26,4 +26,4 @@ from .environment_name_enum import EnvironmentNameEnum
from .application_environment import ApplicationEnvironment from .application_environment import ApplicationEnvironment
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.logging"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -28,4 +28,4 @@ from .logging_settings import LoggingSettings
from .logging_settings_name_enum import LoggingSettingsNameEnum from .logging_settings_name_enum import LoggingSettingsNameEnum
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.mailing"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -28,4 +28,4 @@ from .email_client_settings import EMailClientSettings
from .email_client_settings_name_enum import EMailClientSettingsNameEnum from .email_client_settings_name_enum import EMailClientSettingsNameEnum
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.pipes"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -26,4 +26,4 @@ from .ip_address_pipe import IPAddressPipe
from .pipe_abc import PipeABC from .pipe_abc import PipeABC
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.time"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -25,4 +25,4 @@ from .time_format_settings import TimeFormatSettings
from .time_format_settings_names_enum import TimeFormatSettingsNamesEnum from .time_format_settings_names_enum import TimeFormatSettingsNamesEnum
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -15,7 +15,7 @@ __title__ = "cpl_core.utils"
__author__ = "Sven Heidemann" __author__ = "Sven Heidemann"
__license__ = "MIT" __license__ = "MIT"
__copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de" __copyright__ = "Copyright (c) 2020 - 2024 sh-edraft.de"
__version__ = "2024.6.0" __version__ = "2023.10.2"
from collections import namedtuple from collections import namedtuple
@ -26,4 +26,4 @@ from .string import String
from .pip import Pip from .pip import Pip
VersionInfo = namedtuple("VersionInfo", "major minor micro") VersionInfo = namedtuple("VersionInfo", "major minor micro")
version_info = VersionInfo(major="2024", minor="6", micro="0") version_info = VersionInfo(major="2023", minor="10", micro="2")

View File

@ -8,7 +8,7 @@ from cpl_core.dependency_injection import ServiceProviderABC
from cpl_core.logging import LoggerABC from cpl_core.logging import LoggerABC
from cpl_core.mailing import EMailClientABC, EMail from cpl_core.mailing import EMailClientABC, EMail
from cpl_core.pipes import IPAddressPipe from cpl_core.pipes import IPAddressPipe
from test_settings import TestSettings from general.test_settings import TestSettings
from test_service import TestService from test_service import TestService