Replies: 2 comments 3 replies
-
In the interest of maintenance, all the code dealing with interactivity should happen at the beginning of the data flow. Meaning once a converter or a pipeline starts its execution, no further interactive prompt should be happening. |
Beta Was this translation helpful? Give feedback.
-
At some point of Clinica, the "interactive mode guiding users to chose the right command" was the main argument to activate shell completion proposed by argcomplete. We need maybe to verify that this functionality is still available (I'm afraid that something got broken after the migration of the command line to Click).
We must pay special attention to the |
Beta Was this translation helpful? Give feedback.
-
Context
Clinica is designed for use by both technical and non-technical audiences. For the former, we have been improving our command line interface (CLI) to become more consistent, better documented and more pleasant to use as a result.
For non-technical users however, I believe further work is required to make Clinica simpler to interact with. As of today, discovering Clinica requires reading a large chunk of documentation, complemented by pages of contextual help in the CLI. From the perpsective of a user completely foreign to Clinica, this is a heavy investment simply to assess whether the tool is worth sticking with long term. A well-designed interactive user experience would be a significant leap forward.
Proposal
Design a proper interactive mode for Clinica. Put interactivity at the forefront of Clinica's UX design.
Interactive mode could guide users through choosing the right command to use.
Typing
clinica
would prompt for a pick between available commands (convert
,run
, ...)Typing
clinica convert
would prompt for the dataset to convert (adni
,habs
,oasis
, ...)Interactive mode could help users choose appropriate values for CLI parameters.
Typing
clinica convert adni-to-bids
would prompt for the source data directory, the target BIDS directory and whether optional values are to be specified if any. Path-like parameters could be selected using a file selector instead of being typed as text, which is less prone to errors.Interactive mode could be opt-in or opt-out with
--interactive/--no-interactive
and a clinica specific envvarCLINICA_INTERACTIVE
/CLINICA_NO_INTERACTIVE
.There are probably more ideas to develop.
Beta Was this translation helpful? Give feedback.
All reactions