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

interactive mode for crud #49

Closed
Tobi-De opened this issue Jan 23, 2024 · 3 comments
Closed

interactive mode for crud #49

Tobi-De opened this issue Jan 23, 2024 · 3 comments

Comments

@Tobi-De
Copy link
Member

Tobi-De commented Jan 23, 2024

Reading this mastodon thread https://fosstodon.org/@paulox/111783847246554164 gave me an idea
An interactive --interactive mode for the crud command, the current idea is to have the crud command able to generate an application when it doesn't exist and add a model from the CLI, but adding all these options to the command directly could result in too many options, so they could all be available in the experimental interactive mode.
basic workflow idea:

  1. falco crud books.model --interactive
  2. create the books app and add it to INSTALLED_APPS if it does not exists
  3. ask for the Book model fields in CLI and add to model the the models.py file
  4. Generate migrations
  5. generate crud views for the model
  6. register the urls in the root url config
@Tobi-De
Copy link
Member Author

Tobi-De commented Jan 24, 2024

adding fields from the CLI, that's a bad idea idea now that I think of it, plus the current crud and start-app command already covers the main features I wanted to add with this.

@Tobi-De Tobi-De closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
@Tobi-De
Copy link
Member Author

Tobi-De commented Jan 27, 2024

The interactive mode could still be useful, this command is gettings too many options

@Tobi-De Tobi-De reopened this Jan 27, 2024
@Tobi-De
Copy link
Member Author

Tobi-De commented Jan 29, 2024

a better option #55

@Tobi-De Tobi-De closed this as completed Jan 29, 2024
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

No branches or pull requests

1 participant