supabase-plus 0.9.1

An extra set of tools for managing Supabase projects going beyond the possibilities of regular Supabase CLI
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::prelude::*;
use crate::abstraction::{SupabaseProject, SupabaseRuntime};

#[async_trait]
impl CliSubcommand for StopAny {
    async fn run(self: Box<Self>) -> anyhow::Result<()> {
        let projects = SupabaseProject::running().await?;

        for project in projects {
            supercli::styled!("Detected project `{}` running", (project.id(), "id"));
        }

        SupabaseRuntime::passthrough("stop --all")?;

        Ok(())
    }
}