chore: remove lib
All checks were successful
continuous-integration/drone/push Build is passing

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2024-08-25 17:20:12 +02:00
parent 5e88ffdbc9
commit b01543a8b9
Signed by: kjuulh
GPG Key ID: D85D7535F18F35FA
2 changed files with 7 additions and 10 deletions

View File

@ -1,4 +0,0 @@
mod plan;
mod project;
mod schema_validator;
mod state;

View File

@ -1,5 +1,5 @@
use cuddle_state::Cuddle;
use state::{validated_project::Project, ValidatedState};
use state::ValidatedState;
mod cuddle_state;
mod plan;
@ -37,7 +37,7 @@ impl Cli {
Self { cli, cuddle }
}
pub async fn setup(mut self) -> anyhow::Result<Self> {
pub async fn setup(self) -> anyhow::Result<Self> {
let s = self
.add_default()
.await?
@ -52,16 +52,17 @@ impl Cli {
Ok(s)
}
pub async fn execute(mut self) -> anyhow::Result<()> {
pub async fn execute(self) -> anyhow::Result<()> {
match self
.cli
.get_matches_from(std::env::args())
.subcommand()
.ok_or(anyhow::anyhow!("failed to find subcommand"))?
{
("do", args) => {
("do", _args) => {
tracing::debug!("executing do");
}
("get", _args) => {}
_ => {}
}
@ -77,7 +78,7 @@ impl Cli {
Ok(self)
}
async fn add_project_commands(mut self) -> anyhow::Result<Self> {
async fn add_project_commands(self) -> anyhow::Result<Self> {
if let Some(project) = self.cuddle.state.project.as_ref() {
// Add project level commands
}
@ -85,7 +86,7 @@ impl Cli {
Ok(self)
}
async fn add_plan_commands(mut self) -> anyhow::Result<Self> {
async fn add_plan_commands(self) -> anyhow::Result<Self> {
if let Some(plan) = self.cuddle.state.plan.as_ref() {
// Add plan level commands
}