Command - refactor to use typed interfaces to implement commands for workers
#6702
Labels
Component: API
ockam_api
Component: Command
hacktoberfest
Apply to issues you want contributors to help with
help wanted
Implementation: Rust
Following the refactoring of RPC calls, we can now implement all commands using typed interfaces and implemented with a specific RPC client.
For example the
Projects
trait provides an access to projects, to create/list/delete them. That trait is implemented by theController
client by making requests to the controller.The use of the
Projects
interface can be seen in the following command to create projects.Desired behavior
Provide similar interfaces for all other commands and remove all the "api helpers" from the
ockam_command
crate for the following:All the interfaces and implementations must be part of the
ockam_api
crate so that the purpose of theockam_command
is only to:ockam_api
crateNote
Related epic: #6310
We love helping new contributors! ❤️
If you have questions or need help as you explore, please join us on Discord. If you're looking for other issues to contribute to, please checkout our good first issues.
The text was updated successfully, but these errors were encountered: