]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : add --completion-bash option (#11846)
authorDaniel Bevenius <redacted>
Thu, 13 Feb 2025 13:46:59 +0000 (14:46 +0100)
committerGitHub <redacted>
Thu, 13 Feb 2025 13:46:59 +0000 (14:46 +0100)
commitc48f630d1c1942fce08aa7cb18a53ace443cd611
treea8cec2704e6ab7b74cb4a20c6e9fab94b515cbf9
parentbd6e55bfd3f3af3e5705cf87a10e5178cef7c3c1
llama : add --completion-bash option (#11846)

This commit adds a new option `--completion-bash` to the llama.cpp which
outputs a source-able bash completion script.

The motivation for this change is to provide a more user-friendly
experience for users who use the command-line interface of llama.cpp.

This is currently only basic and all options are displayed for all llama
executables but this can be improved in the future if needed.

Example usage:
```console
$ build/bin/llama-cli --completion-bash > ~/.llama-completion.bash
$ source ~/.llama-completion.bash

$ ./build/bin/llama-server --m<TAB>
--main-gpu         --mirostat         --mirostat-lr      --model            --multiline-input
--min-p            --mirostat-ent     --mlock            --model-url
```
README.md
common/arg.cpp
common/common.h