supabase-plus 0.2.4

An extra set of tools for managing Supabase projects going beyond the possibilities of regular Supabase CLI
#[macro_use]
extern crate rust_shell;

pub(crate) mod abstraction;
mod cli;
mod commands;
mod config;
mod sys;

use crate::cli::Cli;
use crate::config::{CONFIG_FILENAME, Config};
use clap::Parser;
use figment::Figment;
use figment::providers::{Format, Toml};
use lazy_static::lazy_static;

lazy_static! {
    static ref CONFIG: Option<Config> = Figment::new()
        .merge(Toml::file(CONFIG_FILENAME))
        .extract()
        .ok();
}

#[tokio::main]
async fn main() {
    sys::run_before_hook();
    Cli::parse().command.to_object().run().await;
}