Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an endpoint to clear an instance's console buffer #408

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Aug 16, 2024

  1. Add an endpoint to clear an instance's console buffer

    Fixes #299
    
    Add an endpoint to clear an instance's console buffer by clearing the circular buffer within the global app state buffer.
    
    * **core/src/lib.rs**
      - Add a method `clear_console_buffer` to the `AppState` struct to clear the console buffer for a specific instance.
    
    * **core/src/handlers/events.rs**
      - Add a new function `clear_console_buffer` to handle the request to clear the console buffer.
      - Add a new route `/instance/:uuid/console/clear` to handle the request to clear the console buffer.
    
    ---
    
    For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Lodestone-Team/lodestone/issues/299?shareId=XXXX-XXXX-XXXX-XXXX).
    Ynng committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    c3bb247 View commit details
    Browse the repository at this point in the history