From 07d0a269410331b6a6e0a245a2d463e84c624b2a Mon Sep 17 00:00:00 2001 From: dal Date: Mon, 12 May 2025 11:17:52 -0600 Subject: [PATCH] refactor makefile to remove redundant db reset command; update CLI argument attributes for local and cloud API modes --- api/makefile | 1 - cli/cli/src/main.rs | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/api/makefile b/api/makefile index b29ee50bd..6dc2c1ef3 100644 --- a/api/makefile +++ b/api/makefile @@ -2,7 +2,6 @@ dev: docker stop buster-redis-make || true && \ docker rm buster-redis-make || true && \ docker run -d --name buster-redis-make -p 6379:6379 -v buster_redis_data:/data redis && \ - supabase db reset || true && \ supabase start || true && \ supabase db reset || true && \ export DATABASE_URL=postgres://postgres:postgres@127.0.0.1:54322/postgres && \ diff --git a/cli/cli/src/main.rs b/cli/cli/src/main.rs index 483c09e8a..4dea56478 100644 --- a/cli/cli/src/main.rs +++ b/cli/cli/src/main.rs @@ -41,11 +41,11 @@ pub enum Commands { clear: bool, /// Use local Buster API - #[arg(long)] + #[arg(long, group = "api_mode")] local: bool, /// Use cloud Buster API - #[arg(long)] + #[arg(long, group = "api_mode")] cloud: bool, }, /// Update buster-cli to the latest version