reorganize proto files a bit (#30)
Some checks are pending
test / test (macos-latest) (push) Waiting to run
test / test (ubuntu-latest) (push) Waiting to run
test / test (windows-latest) (push) Waiting to run

This commit is contained in:
Josh Thomas 2024-12-14 00:06:06 -06:00 committed by GitHub
parent b1b3e6a5ec
commit 8e941ba8a0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 225 additions and 210 deletions

View file

@ -13,7 +13,7 @@ pub trait IpcCommand: Default {
}
}
impl IpcCommand for v1::check::HealthRequest {
impl IpcCommand for v1::commands::check::HealthRequest {
fn into_request(&self) -> messages::Request {
messages::Request {
command: Some(messages::request::Command::CheckHealth(*self)),
@ -29,7 +29,7 @@ impl IpcCommand for v1::check::HealthRequest {
}
}
impl IpcCommand for v1::check::GeoDjangoPrereqsRequest {
impl IpcCommand for v1::commands::check::GeoDjangoPrereqsRequest {
fn into_request(&self) -> messages::Request {
messages::Request {
command: Some(messages::request::Command::CheckGeodjangoPrereqs(*self)),
@ -45,7 +45,7 @@ impl IpcCommand for v1::check::GeoDjangoPrereqsRequest {
}
}
impl IpcCommand for v1::python::GetEnvironmentRequest {
impl IpcCommand for v1::commands::python::GetEnvironmentRequest {
fn into_request(&self) -> messages::Request {
messages::Request {
command: Some(messages::request::Command::PythonGetEnvironment(*self)),
@ -61,7 +61,7 @@ impl IpcCommand for v1::python::GetEnvironmentRequest {
}
}
impl IpcCommand for v1::django::GetProjectInfoRequest {
impl IpcCommand for v1::commands::django::GetProjectInfoRequest {
fn into_request(&self) -> messages::Request {
messages::Request {
command: Some(messages::request::Command::DjangoGetProjectInfo(*self)),

View file

@ -79,7 +79,7 @@ impl PythonProcess {
) -> Result<(), ProcessError> {
let request = messages::Request {
command: Some(messages::request::Command::CheckHealth(
check::HealthRequest {},
commands::check::HealthRequest {},
)),
};

View file

@ -1,16 +1,16 @@
pub mod v1 {
pub mod messages {
include!(concat!(env!("OUT_DIR"), "/djls.v1.messages.rs"));
}
pub mod check {
include!(concat!(env!("OUT_DIR"), "/djls.v1.check.rs"));
pub mod commands {
include!(concat!(env!("OUT_DIR"), "/djls.v1.commands.rs"));
}
pub mod django {
include!(concat!(env!("OUT_DIR"), "/djls.v1.django.rs"));
}
pub mod messages {
include!(concat!(env!("OUT_DIR"), "/djls.v1.messages.rs"));
}
pub mod python {
include!(concat!(env!("OUT_DIR"), "/djls.v1.python.rs"));
}