Skip to content

Commit

Permalink
Add instruction to add new command handler
Browse files Browse the repository at this point in the history
  • Loading branch information
TTWNO committed Sep 7, 2024
1 parent 37b911c commit 7987483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Here is what you need to know if you want to add a new feature:
- Then, add it to the list of `.atspi_listener(fn_name)` calls in `main`.
- The list of possible `Command`s can be found in the type `OdiliaCommand` enum in `common/src/commands.rs`.
- [ ] If a new `Command` is required, create a newtype, implement the `IntoCommands` trait, add it as a variant to the enum, then finally implement the `CommandType` trait.
- To add funcionality to this command, create an `async fn` that takes `Command(NewCommandType)` and `NewStateType` (if necessary).
- To add funcionality to this command, create an `async fn` that takes `Command(NewCommandType)` and `NewStateType` (if necessary). Finally, add it to the list of `.command_listener(fn_name)` calls in `main`.

## Performance Benchmarking

Expand Down

0 comments on commit 7987483

Please sign in to comment.