Replies: 3 comments 9 replies
-
|
Beta Was this translation helpful? Give feedback.
-
@Alex-CodeLab - I think a cli shouldn't require manual registration in main.py. I.e. this shouldn't be necessary from starlite import Starlite, CLI
app = Starlite(...)
if __name__ == "main":
cli = CLI(app=app)
... One of the base features should be discovery of any Starlite application declared in the directories in the cwd. I would also consider automatic finding of commands as a nice to have feature, but maybe that is a bit out there. |
Beta Was this translation helpful? Give feedback.
-
I started work on the CLI and there a few open question: What functionalities should the CLI include? Currently I added:
Ideas:
How should new projects be generated? This was a much requested feature, but I'm having doubts if this should actually go into the CLI. Another issue is that of dependencies. If you can generate a new project with Should the CLI be a standalone package Pros:
Cons:
Should the CLI be included by default? The CLI comes with extra dependencies not everyone needs. Whether or not we opt for a separate package, For me, the answer depends on the dependencies. If it's just |
Beta Was this translation helpful? Give feedback.
-
This has been an issue that is now closed #538 , because we didn't have a clear enough direction. The questions are:
Beta Was this translation helpful? Give feedback.
All reactions