- Correct the `generator` command to use a string flag for the path.
- Update templates to use correct heap allocation annotation.
- Remove unnecessary code in templates.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Improve the logger test to include more specific assertions.
- Add timestamp filtering to the logger search function.
- Fix a bug in the logger search function that prevented it from correctly handling continuation lines.
- Update redisclient tests to use the correct return type.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Refactor the redis client to use a mutex for thread safety.
- Improve error handling in context and playbook factory.
- Remove the play_mdbook command and associated tests.
- Add play_publisher command and tests for publishing books.
- Update the repository cache to use a reference to the redis client.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Refactor the rclone client factory to improve its
organization and functionality.
- Add support for multiple rclone instances with named
instances.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Updated the OpenAI client to use environment variables for API keys.
- Improved the configuration and management of OpenAI clients.
- Added retry mechanism to HTTP requests for improved reliability.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Replace `lut.incremental!` with a safer check using `if v := lut.incremental`.
- This ensures that the test doesn't panic if `incremental` is unexpectedly nil.
- The new assertions explicitly check for the existence of a value and its correctness.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Remove unnecessary parameter from `errors_report` function.
- Pass `Collection` by mutable reference to `export` function.
- Fix `.collection` file content in export test.
- Update test cases to reflect changes.
- Correct path in test data.
- Use mutable reference for `col` in `Tree.export`.
Co-authored-by: mahmmoud.hassanein <mahmmoud.hassanein@gmail.com>
- Improve the installation process for Gitea and PostgreSQL.
- Change the location of the Gitea config file to `/etc`.
- Add a health check for the PostgreSQL container.
- Ensure the Gitea user is created only if it doesn't exist.
- Add a restart command for Gitea to ensure it starts after.
- Improve error handling during user creation.
- Simplify PostgreSQL configuration in Gitea actions.
- Replace `osal.cmd_add` with explicit `cp` and `chmod`
- commands for more robust installation.
- This ensures gitea is correctly added to the path and
- made executable, providing better error handling.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Corrected a typo in the Gitea SMTP port configuration
- across multiple files: `gitea.vsh`, `gitea_model.v`,
- `server.v`, and `app.ini`. The incorrect `smpt_port`
- was changed to the correct `smtp_port`.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Remove unnecessary and incomplete code in `gitea_actions.v`.
- Simplify the `upload`, `startupcmd`, and `running` functions.
- Use a temporary file for the Gitea configuration.
- Implement a simpler health check using `curl`.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- The Gitea installer now automatically starts the Gitea server after installation.
- Updated the installer to include a `start()` function.
- Added PostgreSQL installation and configuration to the Gitea installer.
- Improved error handling and logging.
- Updated configuration file template for better clarity and consistency.
- Renamed some variables for better readability.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Refactor the Gitea installer to use a more robust and.
- configurable approach. The installer now uses a more.
- flexible configuration system and handles different.
- platforms more effectively. The installation process.
- is now more modular and easier to maintain. The.
- previous method was overly simplistic and lacked.
- essential configuration options.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Migrate Gitea installation to use Podman containers.
- This simplifies the installation process and improves
- portability. Removes reliance on direct binary
- downloads and manual installation steps. The
- Gitea instance is now managed as a container.
- Updates configuration to reflect container-based
- deployment. Updates version to 'latest' to
- leverage Podman's image management capabilities.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Improved error handling in `get` method of Zinit struct.
- Changed the return type of `new()` function in `zinit_factory.v` to `!&Zinit`.
- Updated `zinit_global_manager` to hold references to `Zinit` instances.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>
- Remove unnecessary error return in `installed_()`.
- Remove `workdir` from `startupcmd()` as it's not needed.
- Simplify healthcheck to only return boolean.
Co-authored-by: mariobassem12 <mariobassem12@gmail.com>