mmvergara / supadart

Typesafe queries in Supabase Flutter! Generate Flutter / Dart 🎯 classes from your Supabase schema.
https://supadart.vercel.app
MIT License
43 stars 5 forks source link

add cmd args #6

Closed noga-dev closed 5 months ago

noga-dev commented 5 months ago

-h, --help missing

  1. Need to be able to specify .env path/name (e.g. .env.dev) via --path
  2. Allow directly setting supabase url and anon key via --url and --key args
mmvergara commented 5 months ago

As per 1.1.0

-h, --help        Show usage information
-e, --env-path    Path to the .env file -- (default: .env)
-u, --url         Supabase URL          -- (default: .env SUPABASE_URL)
-k, --key         Supabase ANON KEY     -- (default: .env SUPABASE_ANON_KEY)
-o, --output      Output file path      -- (default: lib/generated_classes.dart)

let me know if you have any problems.. 🙏

noga-dev commented 5 months ago

-v, --version

and lgtm 👍

mmvergara commented 5 months ago

As per 1.2.0

Added --version option and -d for dart class version only instead of flutter version