Closed drdhaval2785 closed 2 years ago
This is a great suggestion! I will definitely work on this.
Is there any specific reason for suggesting Click
though?
I find python's argparse
good enough. Additionally, fire
is a great tool for CLI too.
Nothing in particular for Click. I once wrote a python code, and it was a matter of only a few decorators in click. In no time, the same code which was working for python package, was working as a CLI tool seamlessly.
You may choose the one which suits you.
I am moving the REPL to cdsl -i
or cdsl --interactive
and otherwise it'll be a normal CLI. (Reference: e8b732466e6117f3ccf4a9f14c9a9f1e100aaf35)
This can be tried by cloning the repository and make install
.
Currently, CLI is still a work in progress. It'll be complete with the next minor version upgrade.
Release 0.3.0
adds support for it.
Documentation is still pending. Will add that soon.
Description
I love the REPL session which you have created with the python package. I would also love to have a simple CLI tool based on Click python package too.
Something like
cdsl [--dict] MW [--input_transliteration=slp1] [--output_transliteration=slp1] rAma
would print the MW entries related to rAma on the terminal itself.What I Did