cli icon indicating copy to clipboard operation
cli copied to clipboard

Turn Clojure functions into CLIs!

Results 7 cli issues
Sort by recently updated
recently updated
newest added

I'm curious how hard this would be. Maybe have a special flag --complete that takes a partial command line and returns the list of completions to the shell.

- `--cli/help` prints opts (if spec is provided) - `--cli/debug` prints options via `prn` for debugging Both only if the options aren't overriden by user.

You can test it with ``` # install test script bbin install io.github.sohalt/bbct # install completions # bash bbct --org.babashka.cli/completion-snippet bash >> ~/.bashrc # zsh # ~/.zsh needs to be...

parse-exec-opts throws an IllegalArgumentException in the following case: ``` (ns fs123.test (:require [babashka.cli :as cli] [babashka.cli.exec])) (defn test {:org.babashka/cli {:spec {:flag {:coerce :boolean :default true} } :args->opts [:args2opts]}} [what] what)...

# Problem Description I'm trying to achieve a specific behaviour for a command-line option using babashka.cli: 1. When the option is not provided, it should not be returned in the...

Printing help text is currently facilitated using functions such as `format-opts` and `format-table`, which might suffice for simple applications. But it quickly gets complicated when we have layers of nested...