Compare commits

...

154 Commits

Author SHA1 Message Date
Sven Heidemann cae2e6d92e Hopefully fixed db errors 2024-01-13 14:26:36 +01:00
Sven Heidemann 347418bdc5 Added ssl_disabled option 2023-12-06 17:56:13 +01:00
Sven Heidemann 153fc8922e Fixed dc collection 2023-10-13 15:20:26 +02:00
Sven Heidemann cdbfaeb013 Merge pull request 'Updated deps' (#176) from 2023.10 into master
Reviewed-on: #176
2023-10-13 15:01:06 +02:00
Sven Heidemann 4062a6ebe4 Updated deps 2023-10-13 14:57:46 +02:00
Sven Heidemann 46ef6b3938 Merge pull request '2023.10' (#175) from 2023.10 into master
Reviewed-on: #175
2023-10-13 14:48:39 +02:00
Sven Heidemann c1b9c0fb4a Added R as return type 2023-10-12 21:20:36 +02:00
Sven Heidemann 8ede2998fe Fixed configuration typing 2023-10-12 21:14:49 +02:00
Sven Heidemann 41f974fe6e Fixed cpl-discord deps 2023-10-12 21:06:10 +02:00
Sven Heidemann e7af5ce322 Fixed cpl-query typing 2023-10-12 21:05:38 +02:00
Sven Heidemann 7881294554 Fixed types 2023-10-12 20:55:24 +02:00
Sven Heidemann b3fd122fcd Build cpl-discord new version 2023-10-12 20:42:24 +02:00
Sven Heidemann 1dd48899d7 Improved cpl-discords service loading for commands and events 2023-10-12 20:41:34 +02:00
Sven Heidemann f357e97ce5 Build and formatted new version 2023-10-12 20:16:16 +02:00
Sven Heidemann 2d8ecd424a Switched mysql package 2023-10-12 20:11:14 +02:00
Sven Heidemann affbbc822d Removed handled vars from values in JP 2023-07-19 11:34:19 +02:00
Sven Heidemann 43ea732c5f Fixed config loading 2023-07-19 11:28:33 +02:00
Sven Heidemann 708918464f Improved config loading 2023-07-19 11:16:04 +02:00
Sven Heidemann ed2377c288 Updated discord.py 2023-06-13 16:22:54 +02:00
Sven Heidemann b819eb439c Fixed translaiton settings 2023-06-13 16:14:38 +02:00
Sven Heidemann b3ed7101fc Fixed update command 2023-06-13 15:56:46 +02:00
Sven Heidemann a3504af376 Fixed update command 2023-06-13 15:47:44 +02:00
Sven Heidemann 81c2f1cba9 Fixed discord service config loading 2023-06-13 15:38:04 +02:00
Sven Heidemann bea5b22251 Fixed db settings default port 2023-06-13 15:08:04 +02:00
Sven Heidemann e04d0beb68 Fixed circular import from query package 2023-06-13 13:27:37 +02:00
Sven Heidemann 08ba097aaa Merge pull request '#173' (#174) from #173 into master
Reviewed-on: #174
2023-06-12 20:48:34 +02:00
Sven Heidemann ea968d94e4 Build app 2023-06-12 20:47:14 +02:00
Sven Heidemann 8e12c72b07 Fixed cpl update dev deps bug #170 2023-06-12 20:47:13 +02:00
Sven Heidemann 8dee4d8f70 Fixed config type 2023-04-15 11:47:31 +02:00
Sven Heidemann 315b8e631a Merge pull request '2023.4' (#168) from 2023.4 into master
Reviewed-on: #168
2023-04-12 13:57:50 +02:00
Sven Heidemann cbb1860f25 Fixed internal settings 2023-04-12 13:47:38 +02:00
Sven Heidemann 9839bcaa14 Removed unused imports 2023-04-12 13:34:43 +02:00
Sven Heidemann da54337221 Fixed ProjectSettings 2023-04-12 13:31:59 +02:00
Sven Heidemann a6a1e764d1 Updated deps 2023-04-12 13:30:13 +02:00
Sven Heidemann eb6aa08c10 Updated deps 2023-04-12 12:57:58 +02:00
Sven Heidemann 14a190a67f Merge pull request '#166' (#167) from #166 into 2023.4
Reviewed-on: #167
Closes #166
2023-04-11 14:49:21 +02:00
Sven Heidemann cf5ae89884 Fixed start test 2023-04-11 14:26:17 +02:00
Sven Heidemann 558dfb8ced Deactivated test output 2023-04-11 12:51:49 +02:00
Sven Heidemann 2ec8fc22b3 Improved generic type hints 2023-04-11 12:50:05 +02:00
Sven Heidemann c94700495b Merge pull request '#157' (#165) from #157 into 2023.4
Reviewed-on: #165
Closes #157
2023-04-11 11:48:48 +02:00
Sven Heidemann 69a3bc5e31 Fixed cwd handling 2023-04-10 15:10:39 +02:00
Sven Heidemann d189f49418 Improved service_provider_tests 2023-04-10 14:53:59 +02:00
Sven Heidemann 60fb416b67 Added service_provider_tests 2023-04-10 14:47:25 +02:00
Sven Heidemann 792429d19d Added console argument tests 2023-04-10 13:35:11 +02:00
Sven Heidemann 106975015e Improved config tests 2023-04-09 12:51:57 +02:00
Sven Heidemann 1117735f2e Added configuration tests & improved json parsing by converting into target types 2023-04-09 12:31:31 +02:00
Sven Heidemann 0378f8944a Added AppEnv tests 2023-04-09 12:05:05 +02:00
Sven Heidemann 75fde0f444 Added pipe tests 2023-04-07 14:52:17 +02:00
Sven Heidemann 04f610c799 Removed obsolete pipes 2023-04-07 14:41:11 +02:00
Sven Heidemann 3178b59147 Added JSONProcessorTestCase 2023-04-07 14:40:03 +02:00
Sven Heidemann 9c7008e179 Improved core test suite 2023-04-07 14:08:06 +02:00
Sven Heidemann 7ff7dbc56b Added core test suite 2023-04-07 14:04:39 +02:00
Sven Heidemann 823d524a81 Added core.utils.string tests & fixed some functions 2023-04-07 14:03:45 +02:00
Sven Heidemann 1b60debba7 Fixed cli schematics & added tests 2023-04-07 13:42:20 +02:00
Sven Heidemann 3fc713cc8d Merge pull request '#154' (#164) from #154 into 2023.4
Reviewed-on: #164
Closes #154
2023-04-05 22:30:38 +02:00
Sven Heidemann bb26c7e94d Updated docs 2023-04-05 22:01:15 +02:00
Sven Heidemann 52404cf5d3 Updated docs 2023-04-05 21:59:58 +02:00
Sven Heidemann 32223bcfc2 Updated docs 2023-04-05 21:43:21 +02:00
Sven Heidemann 4e2bdb2b59 Fixed translation settings 2023-04-05 18:17:57 +02:00
Sven Heidemann d72514205c Updated PipSettings 2023-04-05 18:13:29 +02:00
Sven Heidemann 9b4afdbe18 Updated TranslationSettings & formatted code 2023-04-05 18:12:31 +02:00
Sven Heidemann 6751541269 Updated DiscordBotSettings 2023-04-05 18:11:16 +02:00
Sven Heidemann fe9918af16 Updated discord deps 2023-04-05 18:10:33 +02:00
Sven Heidemann d2c56f1a3f Fixed some broken references 2023-04-05 18:07:31 +02:00
Sven Heidemann 8624549aa6 Fixed some broken references 2023-04-05 18:03:13 +02:00
Sven Heidemann 9a6ce704b7 Removed from_dict from build and project settings 2023-04-05 16:30:02 +02:00
Sven Heidemann 9af2a1962d Improved internal settings 2023-04-04 23:19:59 +02:00
Sven Heidemann a8d4a7a362 Added JSONProcessor to utils & Added JSONProcessor as settings parser 2023-04-04 22:52:13 +02:00
Sven Heidemann 943f5ad50b Improved service scope 2023-04-04 21:45:32 +02:00
Sven Heidemann 4cd8fea07a Merge pull request 'Added more version operator support' (#163) from #160 into 2023.4
Reviewed-on: #163
Closes #160
2023-04-04 21:36:54 +02:00
Sven Heidemann 82b3a22ac8 Added more version operator support 2023-04-04 21:36:24 +02:00
Sven Heidemann 2c6367a408 Improved cpl query 2023-04-04 21:05:53 +02:00
Sven Heidemann af94a0c52d Formatted code 2023-04-04 15:56:37 +02:00
Sven Heidemann 9c374f6bb2 Merge pull request '#161' (#162) from #161 into 2023.4
Reviewed-on: #162
Closes #161
2023-04-04 14:52:30 +02:00
Sven Heidemann d0a19458c5 Formatted code 2023-04-04 14:50:19 +02:00
Sven Heidemann 5d6e7677de Improved typing in query 2023-04-04 14:42:43 +02:00
Sven Heidemann 01309e3124 Cleaned code 2023-04-04 13:58:37 +02:00
Sven Heidemann 083e1ce4a1 Fixed OrderedQueryable imports 2023-04-04 13:55:50 +02:00
Sven Heidemann 8c012e5902 Set Self type 2023-04-04 13:33:45 +02:00
Sven Heidemann 5e6d17cc86 Updated some stuff 2023-04-04 13:30:10 +02:00
Sven Heidemann c4a71de83f Formatted code 2023-04-04 13:30:00 +02:00
Sven Heidemann 01bc746092 Merge branch 'master' into 2023.4
# Conflicts:
#	src/cpl_cli/.cpl/__init__.py
#	src/cpl_cli/__init__.py
#	src/cpl_cli/_templates/__init__.py
#	src/cpl_cli/_templates/build/__init__.py
#	src/cpl_cli/_templates/publish/__init__.py
#	src/cpl_cli/abc/__init__.py
#	src/cpl_cli/command/__init__.py
#	src/cpl_cli/configuration/__init__.py
#	src/cpl_cli/cpl-cli.json
#	src/cpl_cli/helper/__init__.py
#	src/cpl_cli/live_server/__init__.py
#	src/cpl_cli/migrations/__init__.py
#	src/cpl_cli/migrations/base/__init__.py
#	src/cpl_cli/migrations/service/__init__.py
#	src/cpl_cli/publish/__init__.py
#	src/cpl_cli/source_creator/__init__.py
#	src/cpl_cli/validators/__init__.py
#	src/cpl_core/__init__.py
#	src/cpl_core/application/__init__.py
#	src/cpl_core/configuration/__init__.py
#	src/cpl_core/console/__init__.py
#	src/cpl_core/cpl-core.json
#	src/cpl_core/database/__init__.py
#	src/cpl_core/database/connection/__init__.py
#	src/cpl_core/database/context/__init__.py
#	src/cpl_core/dependency_injection/__init__.py
#	src/cpl_core/dependency_injection/service_provider.py
#	src/cpl_core/dependency_injection/service_provider_abc.py
#	src/cpl_core/environment/__init__.py
#	src/cpl_core/logging/__init__.py
#	src/cpl_core/mailing/__init__.py
#	src/cpl_core/pipes/__init__.py
#	src/cpl_core/time/__init__.py
#	src/cpl_core/utils/__init__.py
#	src/cpl_discord/.cpl/__init__.py
#	src/cpl_discord/.cpl/schematic_discord_event.py
#	src/cpl_discord/__init__.py
#	src/cpl_discord/application/__init__.py
#	src/cpl_discord/command/__init__.py
#	src/cpl_discord/configuration/__init__.py
#	src/cpl_discord/container/__init__.py
#	src/cpl_discord/cpl-discord.json
#	src/cpl_discord/events/__init__.py
#	src/cpl_discord/helper/__init__.py
#	src/cpl_discord/service/__init__.py
#	src/cpl_discord/service/discord_bot_service.py
#	src/cpl_discord/service/discord_bot_service_abc.py
#	src/cpl_discord/service/discord_service.py
#	src/cpl_query/__init__.py
#	src/cpl_query/base/__init__.py
#	src/cpl_query/base/queryable_abc.py
#	src/cpl_query/cpl-query.json
#	src/cpl_query/enumerable/__init__.py
#	src/cpl_query/extension/__init__.py
#	src/cpl_query/iterable/__init__.py
2023-04-04 13:29:45 +02:00
Sven Heidemann 87d023ef7f Merge pull request 'Updated docs' (#159) from #150 into 2023.4
Reviewed-on: #159
Closes #150
2023-04-04 13:16:38 +02:00
Sven Heidemann 119052f9a2 Updated docs 2023-04-04 13:16:19 +02:00
Sven Heidemann 43710717c9 Fixed cpl-discord deps 2023-03-11 01:33:56 +01:00
Sven Heidemann 7bf5e25c5e Fixed typing 2023-03-06 19:03:35 +01:00
Sven Heidemann faa030df96 Fixed typing 2023-03-06 19:03:01 +01:00
Sven Heidemann b2efe285a9 Added line counter 2023-02-20 15:59:33 +01:00
Sven Heidemann 9e28dce5ce Updated docs 2023-02-20 15:55:20 +01:00
Sven Heidemann 8179508248 Added scheduled event support for cpl-discord 2023-02-13 16:58:46 +01:00
Sven Heidemann 2c3664c1b9 Fixed schematic schematic 2023-01-15 10:01:19 +01:00
Sven Heidemann 269f083662 Fixed static inject args order 2023-01-15 02:34:09 +01:00
Sven Heidemann 8b40c65661 Fixed discord event schematic 2023-01-12 13:49:15 +01:00
Sven Heidemann 7be3cf38dc Fixed cpl-cli deps 2023-01-12 09:05:36 +01:00
Sven Heidemann b18a7297a7 Build fix version 2023-01-12 08:58:05 +01:00
Sven Heidemann 7f46fbe87a Added *args and **kwargs support to discord bot and DI 2023-01-12 08:57:01 +01:00
Sven Heidemann e0ca7c2ae6 Build fixed version 2023-01-07 15:03:21 +01:00
Sven Heidemann 6389a940bc Fixed static di injection 2023-01-07 15:00:38 +01:00
Sven Heidemann 48d0daabf5 Updated copyright 2022-12-25 12:05:02 +01:00
Sven Heidemann 8fc3c04720 Updated deps 2022-12-25 12:02:47 +01:00
Sven Heidemann 351f953fdb Merge pull request '2022.12' (#133) from 2022.12 into master
Reviewed-on: #133
Reviewed-by: edraft-dev <dev.sven.heidemann@sh-edraft.de>
2022-12-25 11:58:34 +01:00
Sven Heidemann e1560dfab5 Merge pull request '2022.12.1' (#158) from 2022.12.1 into 2022.12
Reviewed-on: #158
2022-12-25 11:29:56 +01:00
Sven Heidemann c9bc6a026a Build release 2022.12.1 2022-12-25 11:26:51 +01:00
Sven Heidemann 83f0e8bd42 Set version 2022-12-25 11:25:53 +01:00
Sven Heidemann 7af83b49a5 Merge pull request 'Added multiple instance handling (#152)' (#156) from #152 into 2022.12
Reviewed-on: #156
Closes #152
2022-12-23 17:29:15 +01:00
Sven Heidemann 59263ece6e Added multiple instance handling #152 2022-12-23 17:28:38 +01:00
Sven Heidemann a507ed9f46 Fixed publish all script 2022-12-23 16:45:14 +01:00
Sven Heidemann 6b451142e2 Merge pull request 'Static dependency injection (#148)' (#155) from #148 into 2022.12
Reviewed-on: #155
Closes #148
2022-12-23 16:36:21 +01:00
Sven Heidemann 12beea05a7 Merge branch '2022.12' into #148 2022-12-23 16:35:24 +01:00
Sven Heidemann 713fa5243c Fixed publisher service 2022-12-23 16:09:28 +01:00
Sven Heidemann d600852bec Added logic to support global service provider #148 2022-12-22 18:52:17 +01:00
Sven Heidemann c09f2f8e83 Fixed scoped #148 2022-12-20 14:50:35 +01:00
Sven Heidemann 2fb515195c Improved query performance test 2022-12-20 14:34:55 +01:00
Sven Heidemann 889f51f5c5 Fixed python path in settings 2022-12-20 14:29:43 +01:00
Sven Heidemann 742ba8314a Merge pull request 'cpl n l -> keine Fragen... (#144)' (#149) from #144 into 2022.12
Reviewed-on: #149
Closes #144
2022-12-19 08:39:30 +01:00
Sven Heidemann b95d90a191 Fixed python path in project settings #144 2022-12-19 08:36:40 +01:00
Sven Heidemann 46fa49a102 Updated project type library logic & fixed tests #144 2022-12-18 14:27:41 +01:00
Sven Heidemann d5e89d6e2a Fixed cpl cli build #144 2022-12-18 12:03:41 +01:00
Sven Heidemann 086fc75fec Build cpl query 2022-12-12 20:59:43 +01:00
Sven Heidemann 05c33990bb Performance improvements 2022-12-12 20:59:04 +01:00
Sven Heidemann cbae40ef4d Fixed skip function 2022-12-11 10:44:23 +01:00
Sven Heidemann 002ba6b4e0 Added split function 2022-12-11 09:16:38 +01:00
Sven Heidemann 85f75b4677 Fixed group by 2022-12-11 08:58:55 +01:00
Sven Heidemann 95d8df5bea Merge pull request 'Added new schematics & fixed run command #145' (#147) from #145 into 2022.12
Reviewed-on: #147
Closes #145
2022-12-10 21:44:17 +01:00
Sven Heidemann ac1cd9bdde Added new schematics & fixed run command #145 2022-12-10 21:43:46 +01:00
Sven Heidemann 2d9bb79af7 Merge pull request 'cli discord unterstützung (#143)' (#146) from #143 into 2022.12
Reviewed-on: #146
Closes #143
2022-12-09 15:07:27 +01:00
Sven Heidemann 120c9e6800 Fixed tests #143 2022-12-08 16:08:48 +01:00
Sven Heidemann 6f3099a8db Updated packages & improved docs #143 2022-12-08 15:29:48 +01:00
Sven Heidemann e46711dc54 Added unittests #143 2022-12-08 14:23:46 +01:00
Sven Heidemann 59920c59e0 Added cpl g & n discord support #143 2022-12-08 12:14:58 +01:00
Sven Heidemann 604bb8f55c Updated discord test app #143 2022-12-08 11:02:54 +01:00
Sven Heidemann 2f8dc63cdc Added discord command & event to cpl g schematics #143 2022-12-08 10:36:23 +01:00
Sven Heidemann 4fbb3ec838 Updated readme 2022-12-07 20:12:07 +01:00
Sven Heidemann 6818fe9a5c Improved cpl new appsettings template 2022-12-07 20:06:54 +01:00
Sven Heidemann 3854fa5aa6 Merge pull request 'cpl n <project-type> name (#139)' (#140) from #139 into 2022.12
Reviewed-on: #140
Closes #139
2022-12-07 16:16:14 +01:00
Sven Heidemann 1ca459e67a Removed skip test case #139 2022-12-07 15:48:37 +01:00
Sven Heidemann fe8ffb2839 Removed comments #139 2022-12-07 15:46:58 +01:00
Sven Heidemann 42fb88c35d Removed old new command #139 2022-12-07 15:45:15 +01:00
Sven Heidemann db7a0786a9 Merge branch '2022.12' into #139 2022-12-07 15:41:56 +01:00
Sven Heidemann f9f2612356 Merge pull request 'configuration.add_configuration(value: any) type fix (#141)' (#142) from #141 into 2022.12
Reviewed-on: #142
Closes #141
2022-12-07 15:41:18 +01:00
Sven Heidemann df81bb599f Merge branch '2022.12' into #141 2022-12-07 13:07:38 +01:00
Sven Heidemann 6d2492c1cf Added generic typing to configuration #141 2022-12-07 13:06:50 +01:00
Sven Heidemann e244535557 Improved cpl n custom templating #139 2022-12-06 17:42:55 +01:00
Sven Heidemann 5f10603fe5 [WIP] Improved cpl new templating #139 2022-12-05 23:08:52 +01:00
Sven Heidemann 6b8491eea2 Merge pull request 'cpl g <schematic> customizable (#137)' (#138) from #137 into 2022.12
Reviewed-on: #138
Closes #137
2022-12-05 20:34:45 +01:00
Sven Heidemann b63bf41294 Fixed cpl help #137 2022-12-05 20:24:15 +01:00
Sven Heidemann f6cc3a7ddf Removed cpl g arguments #137 2022-12-05 20:00:32 +01:00
Sven Heidemann d1c93abe2c Improved cpl g templating & added custom templating #137 2022-12-05 19:57:33 +01:00
Sven Heidemann d6e3b37f7f Fixed recursion in cpl 2022-12-05 14:37:25 +01:00
Sven Heidemann 9840779af4 build new cpl version 2022-12-05 14:30:33 +01:00
Sven Heidemann b893ec1fcf Merge pull request 'Removed old file #134' (#136) from #134 into 2022.12
Reviewed-on: #136
2022-12-05 14:16:55 +01:00
Sven Heidemann d5e5bfe69d Removed old file #134 2022-12-05 14:15:01 +01:00
Sven Heidemann 4afe5c4581 Fixed cpl query for now #134 2022-12-05 14:12:20 +01:00
Sven Heidemann e054ac364e Updated docs 2022-12-04 00:50:24 +01:00
794 changed files with 26395 additions and 24172 deletions

View File

@ -1,4 +1,4 @@
MIT License Copyright (c) 2020 - 2022 sh-edraft.de
MIT License Copyright (c) 2020 - 2023 sh-edraft.de
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -87,17 +87,17 @@
Install the CPL package
```sh
pip install sh_cpl --extra-index-url https://pip.sh-edraft.de
pip install cpl-core --extra-index-url https://pip.sh-edraft.de
```
Install the CPL CLI
```sh
pip install sh_cpl-cli --extra-index-url https://pip.sh-edraft.de
pip install cpl-cli --extra-index-url https://pip.sh-edraft.de
```
Create workspace:
```sh
cpl new <console|library> <PROJECT NAME>
cpl new <console|library|unittest> <PROJECT NAME>
```
Run the application:
@ -110,7 +110,7 @@ cpl start
<!-- ROADMAP -->
## Roadmap
See the [open issues](https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib/issues) for a list of proposed features (and known issues).
See the [open issues](https://git.sh-edraft.de/sh-edraft.de/sh_cpl/issues) for a list of proposed features (and known issues).
@ -139,7 +139,7 @@ Distributed under the MIT License. See [LICENSE] for more information.
Sven Heidemann - sven.heidemann@sh-edraft.de
Project link: [https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib](https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib)
Project link: [https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib](https://git.sh-edraft.de/sh-edraft.de/sh_cpl)
<!-- External LINKS -->
[pip_url]: https://pip.sh-edraft.de
@ -147,7 +147,7 @@ Project link: [https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib](https://g
[pip]: https://pypi.org/project/pip/
<!-- Internal LINKS -->
[project]: https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib
[quickstart]: https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib/wiki/quickstart
[contributing]: https://git.sh-edraft.de/sh-edraft.de/sh_common_py_lib/wiki/contributing
[project]: https://git.sh-edraft.de/sh-edraft.de/sh_cpl
[quickstart]: https://git.sh-edraft.de/sh-edraft.de/sh_cpl/wiki/quickstart
[contributing]: https://git.sh-edraft.de/sh-edraft.de/sh_cpl/wiki/contributing
[license]: LICENSE

View File

@ -1,6 +1,6 @@
{
"WorkspaceSettings": {
"DefaultProject": "cpl-cli",
"DefaultProject": "cpl-core",
"Projects": {
"cpl-cli": "src/cpl_cli/cpl-cli.json",
"cpl-core": "src/cpl_core/cpl-core.json",
@ -19,13 +19,19 @@
"Scripts": {
"hello-world": "echo 'Hello World'",
"format": "echo 'Formatting:'; black ./",
"sv": "cpl set-version",
"set-version": "cpl run set-version $ARGS; echo '';",
"set-version": "cpl run set-version --dev $ARGS; echo '';",
"spu": "cpl set-pip-urls",
"set-pip-urls": "cpl run set-pip-urls $ARGS; echo '';",
"set-pip-urls": "cpl run set-pip-urls --dev $ARGS; echo '';",
"docs-build": "echo 'Build Documentation'; cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; sphinx-apidoc -o source/ ../src/cpl_query; make clean; make html; rm source/cpl_query.tests.rst;",
"docs-build": "cpl format; echo 'Build Documentation'; cpl db-core; cpl db-discord; cpl db-query; cpl db-translation; cd docs/; make clean; make html;",
"db-core": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_core; cd ../",
"db-discord": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_discord; cd ../",
"db-query": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_query; cd ../",
"db-translation": "cd docs/; sphinx-apidoc -o source/ ../src/cpl_translation; cd ../",
"db": "cpl docs-build",
"docs-open": "xdg-open $PWD/docs/build/html/index.html &",
@ -46,7 +52,7 @@
"pre-publish-all": "cpl sv $ARGS; cpl spu $ARGS;",
"publish-all": "cpl publish-cli; cpl publish-core; cpl publish-discord; cpl publish-query; cpl publish-translation;",
"pa": "cpl build-all $ARGS",
"pa": "cpl publish-all $ARGS",
"publish-cli": "echo 'Publish cpl-cli'; cd ./src/cpl_cli; cpl publish; cd ../../;",
"publish-core": "echo 'Publish cpl-core'; cd ./src/cpl_core; cpl publish; cd ../../;",
"publish-discord": "echo 'Publish cpl-discord'; cd ./src/cpl_discord; cpl publish; cd ../../;",

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_cli.add.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_cli.help.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_cli.new.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_cli.run.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/cpl_discord.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
docs/build/doctrees/deprecated.doctree vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 9ea51a00cf3559575c97b7efd7a002e5
config: 7161cd79d6fb56140ef1c390e01dab1c
tags: 645f666f9bcd5a90fca523b33c5a78b7

View File

@ -1,38 +0,0 @@
# cpl generate
## Contents
- [Description](#description)
- [Arguments](#arguments)
- [Schematics](#schematics)
Generate a file based on schematic.
cpl **generate** *&lt;schematic&gt;* *&lt;name&gt;* <br>
cpl **g** *&lt;schematic&gt;* *&lt;name&gt;* <br>
cpl **G** *&lt;schematic&gt;* *&lt;name&gt;*
## Description
Generates files based on a schematic.
## Arguments
| Argument | Description | Value type |
| ----------------- |:---------------------------------:|:-------------:|
| ```<schematic>``` | The schematic to generate. | ```str``` |
| ```<name>``` | The name of the generated file. | ```str``` |
## Schematics
| Schematic | Description | Arguments |
|-----------------|:-------------------------------------:|:------------:|
| ```abc``` | Abstract base class | ```<name>``` |
| ```class``` | Class | ```<name>``` |
| ```enum``` | Enum class | ```<name>``` |
| ```pipe``` | Pipe class | ```<name>``` |
| ```service``` | Service class | ```<name>``` |
| ```settings``` | [Configmodel](cpl_core.configuration) | ```<name>``` |
| ```test``` | Test class | ```<name>``` |
| ```thread``` | Thread class | ```<name>``` |
| ```validator``` | Validator class | ```<name>``` |

View File

@ -1,7 +0,0 @@
# cpl start
Starts your application, restarting on file changes.
cpl **start** <br>
cpl **s** <br>
cpl **S**

View File

@ -44,7 +44,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
2. Be sure that an issue describes the problem you're fixing, or documents the design for the feature you'd like to add. Discussing the design upfront helps to ensure that we're ready to accept your work.
3. Fork the sh-edraft.de/sh_cpl repo.
3. Fork the sh-edraft.de/cpl repo.
4. In your forked repository, make your changes in a new git branch:
@ -70,7 +70,7 @@ Before you submit your Pull Request (PR) consider the following guidelines:
git push origin my-fix-branch
```
8. In Gitea, send a pull request to sh_cpl:master
8. In Gitea, send a pull request to cpl:master
### Reviewing a Pull Request
@ -104,7 +104,7 @@ To ensure consistency throughout the source code, keep these rules in mind as yo
## License
By contributing, you agree that your contributions will be licensed under its MIT License.
See [LICENSE](https://git.sh-edraft.de/sh-edraft.de/sh_cpl/src/branch/master/LICENSE)
See [LICENSE](https://git.sh-edraft.de/sh-edraft.de/cpl/src/branch/master/LICENSE)
<!-- LINKS -->
[gitea-repo]: https://git.sh-edraft.de/sh-edraft.de/sh_cpl/

View File

@ -29,4 +29,4 @@ If you call the command in a CPL workspace, you can use the project names. Other
| Argument | Description |
|------------------|:------------------------------------------:|
| ```--simulate``` | Specifies whether the command is simulated |
| ```--simulate``` | Specifies whether the command is simulated |

View File

@ -0,0 +1,43 @@
# cpl generate
## Contents
- [Description](#description)
- [Arguments](#arguments)
- [Schematics](#schematics)
Generate a file based on schematic.
cpl **generate** *&lt;schematic&gt;* *&lt;name&gt;* <br>
cpl **g** *&lt;schematic&gt;* *&lt;name&gt;* <br>
cpl **G** *&lt;schematic&gt;* *&lt;name&gt;*
## Description
Generates files based on a schematic.
You can define custom schematics by creating templates in a ```.cpl``` folder.
## Arguments
| Argument | Description | Value type |
|-------------------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:-------------:|
| ```<schematic>``` | The schematic to generate. | ```str``` |
| ```<name>``` | The name of the generated file. | ```str``` |
| ```--base``` | First element of path will be used as base-path not 'src'. For example: 'cpl g c test/Test' will be created at ```src/test/``` with --base it would be ```test/``` | ```str``` |
## Schematics
| Schematic | Description | Arguments |
|-----------------|:--------------------------------------:|:------------:|
| ```abc``` | Abstract base class | ```<name>``` |
| ```class``` | Class | ```<name>``` |
| ```enum``` | Enum class | ```<name>``` |
| ```pipe``` | Pipe class | ```<name>``` |
| ```service``` | Service class | ```<name>``` |
| ```settings``` | [Configmodel](cpl_core.configuration) | ```<name>``` |
| ```test``` | Test class | ```<name>``` |
| ```thread``` | Thread class | ```<name>``` |
| ```validator``` | Validator class | ```<name>``` |
| ```command``` | Discord bot command class | ```<name>``` |
| ```event``` | Discord bot event class | ```<name>``` |

View File

@ -16,12 +16,15 @@ cpl **N** *&lt;type&gt;* *&lt;name&gt;*
Generates a workspace and initial project or add a project to workspace.
You can define custom project types by creating templates in a ```.cpl``` folder.
If the command is running in a CPL workspace, it will add the new project to the workspace.
| Argument | Description | Value type |
|--------------|:----------------------------------------------------:|:----------:|
| ```<type>``` | The type of the project, see [types](#project-types) | ```str``` |
| ```<name>``` | The name of the project | ```str``` |
| Argument | Description | Value type |
|--------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:----------:|
| ```<type>``` | The type of the project, see [types](#project-types) | ```str``` |
| ```<name>``` | The name of the project | ```str``` |
| ```--base``` | First element of path will be used as base-path not 'src'. For example: 'cpl g c test/Test' will be created at ```src/test/``` with --base it would be ```test/``` | ```str``` |
## Project types

View File

@ -39,15 +39,15 @@ The cpl generate command takes as an argument the artifact to be generated. In
| Command | Alias | Description |
| ----------------------------- |:-------------:|:----------------:|
| [add](cli.add) | a or a | Adds a project reference to given project.
| [build](cli.build) | b or B | Prepares files for publish into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
| [generate](cli.generate) | g or G | Generate a new file.
| [help](cli.help) | h or H | Lists available command and their short descriptions.
| [install](cli.install) | i or I | With argument installs packages to project, without argument installs project dependencies.
| [new](cli.new) | n or N | Creates new CPL project.
| [publish](cli.publish) | p or P | Prepares files for publish into an output directory named dist/ at the given output path and executes ```setup.py```. Must be executed from within a library workspace directory.
| [remove](cli.remove) | r or R | Removes a project from workspace.
| [start](cli.start) | s or S | Starts CPL project, restarting on file changes.
| [uninstall](cli.uninstall) | ui or UI | Uninstalls packages from project.
| [update](cli.update) | u or U | Update CPL and project dependencies.
| [version](cli.version) | v or V | Outputs CPL CLI version.
| [add](cpl_cli.add) | a or a | Adds a project reference to given project.
| [build](cpl_cli.build) | b or B | Prepares files for publish into an output directory named dist/ at the given output path. Must be executed from within a workspace directory.
| [generate](cpl_cli.generate) | g or G | Generate a new file.
| [help](cpl_cli.help) | h or H | Lists available command and their short descriptions.
| [install](cpl_cli.install) | i or I | With argument installs packages to project, without argument installs project dependencies.
| [new](cpl_cli.new) | n or N | Creates new CPL project.
| [publish](cpl_cli.publish) | p or P | Prepares files for publish into an output directory named dist/ at the given output path and executes ```setup.py```. Must be executed from within a library workspace directory.
| [remove](cpl_cli.remove) | r or R | Removes a project from workspace.
| [start](cpl_cli.start) | s or S | Starts CPL project, restarting on file changes.
| [uninstall](cpl_cli.uninstall) | ui or UI | Uninstalls packages from project.
| [update](cpl_cli.update) | u or U | Update CPL and project dependencies.
| [version](cpl_cli.version) | v or V | Outputs CPL CLI version.

View File

@ -1,19 +1,20 @@
CLI Reference
CLI reference
=============
.. toctree::
:maxdepth: 4
cli.overview
cli.add
cli.build
cli.generate
cli.help
cli.install
cli.new
cli.publish
cli.remove
cli.start
cli.uninstall
cli.update
cli.version
cpl_cli.overview
cpl_cli.add
cpl_cli.build
cpl_cli.generate
cpl_cli.help
cpl_cli.install
cpl_cli.new
cpl_cli.publish
cpl_cli.remove
cpl_cli.run
cpl_cli.start
cpl_cli.uninstall
cpl_cli.update
cpl_cli.version

View File

@ -0,0 +1,12 @@
# cpl run
Starts your application once.
cpl **run** <br>
cpl **r** <br>
cpl **R**
| Argument | Description | Value type |
|-----------------|:----------------------------------------------------------------------------------------------------:|:----------:|
| ```<project>``` | Optional parameter to specify which project to start, if not set default project will be started. | ```str``` |
| ```--dev``` | To run the project from source and not from dist after build. | ```str``` |

View File

@ -0,0 +1,11 @@
# cpl start
Starts your application, restarting on file changes.
cpl **start** <br>
cpl **s** <br>
cpl **S**
| Argument | Description | Value type |
|-----------------|:----------------------------------------------------------------------------------------------------:|:----------:|
| ```--dev``` | To run the project from source and not from dist after build. | ```str``` |

View File

@ -1,34 +1,61 @@
cpl_core.application
=======================
cpl\_core.application package
=============================
cpl_core.application.application\_abc
---------------------------------------
Submodules
----------
cpl\_core.application.application\_abc module
---------------------------------------------
.. automodule:: cpl_core.application.application_abc
:members:
:undoc-members:
:show-inheritance:
cpl_core.application.application\_builder
-------------------------------------------
cpl\_core.application.application\_builder module
-------------------------------------------------
.. automodule:: cpl_core.application.application_builder
:members:
:undoc-members:
:show-inheritance:
cpl_core.application.application\_builder\_abc
------------------------------------------------
cpl\_core.application.application\_builder\_abc module
------------------------------------------------------
.. automodule:: cpl_core.application.application_builder_abc
:members:
:undoc-members:
:show-inheritance:
cpl_core.application.startup\_abc
-----------------------------------
cpl\_core.application.application\_extension\_abc module
--------------------------------------------------------
.. automodule:: cpl_core.application.application_extension_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.application.startup\_abc module
-----------------------------------------
.. automodule:: cpl_core.application.startup_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.application.startup\_extension\_abc module
----------------------------------------------------
.. automodule:: cpl_core.application.startup_extension_abc
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: cpl_core.application
:members:
:undoc-members:
:show-inheritance:

View File

@ -1,42 +1,109 @@
cpl_core.configuration
=========================
cpl\_core.configuration package
===============================
cpl_core.configuration.configuration
--------------------------------------
Submodules
----------
cpl\_core.configuration.argument\_abc module
--------------------------------------------
.. automodule:: cpl_core.configuration.argument_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.argument\_builder module
------------------------------------------------
.. automodule:: cpl_core.configuration.argument_builder
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.argument\_executable\_abc module
--------------------------------------------------------
.. automodule:: cpl_core.configuration.argument_executable_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.argument\_type\_enum module
---------------------------------------------------
.. automodule:: cpl_core.configuration.argument_type_enum
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.configuration module
--------------------------------------------
.. automodule:: cpl_core.configuration.configuration
:members:
:undoc-members:
:show-inheritance:
cpl_core.configuration.configuration\_abc
-------------------------------------------
cpl\_core.configuration.configuration\_abc module
-------------------------------------------------
.. automodule:: cpl_core.configuration.configuration_abc
:members:
:undoc-members:
:show-inheritance:
cpl_core.configuration.configuration\_model\_abc
--------------------------------------------------
cpl\_core.configuration.configuration\_model\_abc module
--------------------------------------------------------
.. automodule:: cpl_core.configuration.configuration_model_abc
:members:
:undoc-members:
:show-inheritance:
cpl_core.configuration.configuration\_variable\_name\_enum
------------------------------------------------------------
cpl\_core.configuration.configuration\_variable\_name\_enum module
------------------------------------------------------------------
.. automodule:: cpl_core.configuration.configuration_variable_name_enum
:members:
:undoc-members:
:show-inheritance:
cpl_core.configuration.console\_argument
------------------------------------------
cpl\_core.configuration.executable\_argument module
---------------------------------------------------
.. automodule:: cpl_core.configuration.console_argument
.. automodule:: cpl_core.configuration.executable_argument
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.flag\_argument module
---------------------------------------------
.. automodule:: cpl_core.configuration.flag_argument
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.validator\_abc module
---------------------------------------------
.. automodule:: cpl_core.configuration.validator_abc
:members:
:undoc-members:
:show-inheritance:
cpl\_core.configuration.variable\_argument module
-------------------------------------------------
.. automodule:: cpl_core.configuration.variable_argument
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: cpl_core.configuration
:members:
:undoc-members:
:show-inheritance:

Some files were not shown because too many files have changed in this diff Show More