Closed juhoinkinen closed 1 year ago
Patch coverage: 98.48
% and project coverage change: +0.01
:tada:
Comparison is base (
c6daf56
) 99.61% compared to head (35bc222
) 99.63%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
The completion response is not very instantaneous but quite usable. On my laptop annif --help
and annif --version
take 0.6-0.7 s, but I think the completion response is a bit faster.
I tried to optimize startup speed by moving some import statements into functions in cli.py
and elsewhere. This cut annif --version
time in half but did not affect annif --help
and seemed not to affect completion response time. :(
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
0.0% Duplication
The completion response is not very instantaneous but quite usable. On my laptop
annif --help
andannif --version
take 0.6-0.7 s, but I think the completion response is a bit faster.I tried to optimize startup speed by moving some import statements into functions in
cli.py
and elsewhere. This cutannif --version
time in half but did not affectannif --help
and seemed not to affect completion response time. :(
The response time of completions will be improved by #696 to ~0.3 seconds or slightly less.
Adds support for tab-key completions for commands, options and project id and vocabulary id parameters via Click mechanism.
A user needs to enable the support as instructed in README.md, i.e. by sourcing the completion script, either manually for every terminal session or automatically for all new sessions by the sourcing the script in a shell startup file (instructed to use
.bashrc
).To produce the completion script the
annif completion
CLI command is added. This seems to be the standard way that many CLI tools use: pip, dvc, helm.Implements #684.