You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So this is fairly low-priority, but the spaghetti nature of main functions is starting to bother me.
Currently, for every subcommand, we have to implement an add_arguments and a run. Each such function is currently in its own Python file, but we could re-organise this if we wanted.
Especially as pertains annotate, these functions are not pretty. I am convinced that they can be made a lot simpler using click.
Also, click makes it lots easier to pass contexts to subcommands. Currently, a Project object is created regardless of subcommand, which is not at all needed for download (except in certain circumstances…).
The text was updated successfully, but these errors were encountered:
So this is fairly low-priority, but the spaghetti nature of main functions is starting to bother me.
Currently, for every subcommand, we have to implement an
add_arguments
and arun
. Each such function is currently in its own Python file, but we could re-organise this if we wanted.Especially as pertains
annotate
, these functions are not pretty. I am convinced that they can be made a lot simpler usingclick
.Also,
click
makes it lots easier to pass contexts to subcommands. Currently, a Project object is created regardless of subcommand, which is not at all needed fordownload
(except in certain circumstances…).The text was updated successfully, but these errors were encountered: