Skip to content

Remove execute_command function and replace it with separate functions - #33

Merged
cofob merged 2 commits into
mainfrom
feature-separate-commands
Aug 24, 2025
Merged

Remove execute_command function and replace it with separate functions#33
cofob merged 2 commits into
mainfrom
feature-separate-commands

Conversation

@cofob

@cofob cofob commented Jul 21, 2025

Copy link
Copy Markdown
Contributor
  • Replaced the handle_execute_command function with specific handlers for each command: handle_status_command, handle_needs_command, handle_add_need_command, and handle_open_door_command.
  • Updated command argument types to enhance clarity and enforce structure, introducing NothingArgs and AddNeedArgs.
  • Modified the command processing logic to directly call the new handlers based on user requests, improving maintainability and readability.
  • Updated documentation to reflect changes in available functions and their usage.

cofob added 2 commits July 21, 2025 16:50
- Replaced the `handle_execute_command` function with specific handlers for each command: `handle_status_command`, `handle_needs_command`, `handle_add_need_command`, and `handle_open_door_command`.
- Updated command argument types to enhance clarity and enforce structure, introducing `NothingArgs` and `AddNeedArgs`.
- Modified the command processing logic to directly call the new handlers based on user requests, improving maintainability and readability.
- Updated documentation to reflect changes in available functions and their usage.
…owedItem` struct

- Introduced a custom deserializer for the `returned` field to handle various input types, including null, boolean, and string formats.
- Ensured compatibility with previous data storage methods by interpreting `true` as the UNIX epoch timestamp.
- Updated the `BorrowedItem` struct to utilize the new deserialization logic, enhancing data integrity and flexibility.
@cofob
cofob merged commit ab9f74f into main Aug 24, 2025
2 of 3 checks passed
@cofob
cofob deleted the feature-separate-commands branch August 24, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant