malli-cli
malli-cli copied to clipboard
Configuration powertool with `metosin/malli`
Following up https://github.com/rynkowsg/malli-cli/commit/5d703e68047f76c602fa97e49c4587a5e1d9e5a5#commitcomment-68868493 - What is a babashka pod? How to use one? - How to define one? - State of the art regarding malli on babshka: numerous references, including:...
- Is it possible? How to do it? any related issues or limitations? - Compatibility with existing, standard, Posix-compliant tools - Enrich README.md
The CLI of well-known, everyday commands like `git`, `cp`, `curl` or similar things should be written with malli-cli to feature capabilities and provide more batle-tested feedback. This may be ideally...
- Should be renamed `malli-config`; - Should expose a function `redact` to hide values; - Even if very simple, `env-var-value-transformer` should be defined.
In your example running the `validate` and `explain` (with `humanize`), it seems that the optional keyword doesn't work. ```clojure (->> (m/decode Config [] cli/cli-transformer) (m/explain Config) me/humanize) => {:show-config? ["missing...
The developer probably wants to write himself the code to install these into the end user, but it would be nice to provide the developer with off-the-shelf function to derive...
Besides keys `:options` and `:arguments`, how could the user get a key `:stdin` for some parsing, coercion, and validation of the standard input?
Especially for config value stored in a dot file, that would prove quite helpful. Reference: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
When the developer know that something is dangerous and would to fully collect the informed consent of the user: - In an interactive shell a prompt asks for confirmation; -...
- Perhaps it should not exit after some time to make sure that the user notice that the program is blocked. - Otherwise, with a countdown it might just appear...