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

CLI command list-projects fields #686

Closed
juhoinkinen opened this issue Apr 13, 2023 · 1 comment · Fixed by #694
Closed

CLI command list-projects fields #686

juhoinkinen opened this issue Apr 13, 2023 · 1 comment · Fixed by #694
Milestone

Comments

@juhoinkinen
Copy link
Member

Currently the output of annif list-projects is like the following:

Project ID               Project Name                                 Language  Trained
---------------------------------------------------------------------------------------
yso-fi                   YSO suomi (2022-11-02)                       fi        None   
yso-en                   YSO English (2022-11-02)                     en        None   
yso-mllm-fi              YSO MLLM Finnish                             fi        True   
yso-mllm-en              YSO MLLM English                             en        False  

Because vocabularies are now shared between projects (#603) I think it would make sense to show also the vocabulary-id in the output (it is shown by the show-project command).

Also sometimes having the modification timestamp in the output could be helpful.

However, with both new fields the output can seem a bit messy:

Project ID               Project Name                                 Vocab ID  Language Trained  Modification time
---------------------------------------------------------------------------------------------------------------------------
yso-fi                   YSO suomi (2022-11-02)                       yso       fi        None    2022-11-10 11:54:53+00:00
yso-en                   YSO English (2022-11-02)                     yso       en        None    2022-11-10 11:54:53+00:00
yso-mllm-fi              YSO MLLM Finnish                             yso       fi        True    2022-11-10 11:54:53+00:00
yso-mllm-en              YSO MLLM English                             yso       en        False   2022-11-10 11:54:53+00:00

One option would be also to add the Vocab ID field and remove the Trained field, and add an option --full or --long for showing all available fields, i.e. also Access.

@osma
Copy link
Member

osma commented Apr 13, 2023

Would it help if the column widths were chosen dynamically? Now we have to reserve lots of space for the project ID and name, because they could be long, but in most cases aren't.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants