Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added CLI support for seperated file classes generation #13

Merged
merged 18 commits into from
Jun 22, 2024

Conversation

mmvergara
Copy link
Owner

supadart -s # Defaults to /lib/models/
supadart -s -o /lib/classes/ # to specify
-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" or "lib/models/" if --seperated is enabled)
-d, --dart         Enable if you are not using Flutter, just normal Dart project
-s, --seperated    Generate Seperate files for each classes
-v, --version      v1.3.2

@mmvergara mmvergara linked an issue Jun 22, 2024 that may be closed by this pull request
Copy link

vercel bot commented Jun 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
supabase-schema-dart-class-generator ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 22, 2024 3:51pm

@mmvergara mmvergara merged commit 2996fc2 into main Jun 22, 2024
3 checks passed
@mmvergara mmvergara deleted the seperated-files branch June 22, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Separate each model into its own file
1 participant