immich-go icon indicating copy to clipboard operation
immich-go copied to clipboard

"completion" subcommand includes header and footer in output and breaks completions

Open paschun opened this issue 8 months ago • 2 comments

> immich-go completion bash
. _ _  _ _ . _|_     _  _ 
|| | || | ||(_| | ─ (_|(_)
            v 0.25.2 _)   

Log file: /Users/user/Library/Caches/immich-go/immich-go_2025-04-06_02-04-56.log
# bash completion V2 for immich-go                            -*- shell-script -*-

__immich-go_debug()
{
    if [[ -n ${BASH_COMP_DEBUG_FILE-} ]]; then
        echo "$*" >> "${BASH_COMP_DEBUG_FILE}"
    fi
}

...

# ex: ts=4 sw=4 et filetype=sh
Check the log file: /Users/user/Library/Caches/immich-go/immich-go_2025-04-06_02-04-56.log

paschun avatar Apr 06 '25 09:04 paschun

This also includes the __complete subcommand (i.e. immich __complete upl) that is run by the completion scripts.

gabrielsoldani avatar Jul 09 '25 02:07 gabrielsoldani

Not a surprise, but it also affects completions for fish.

iliqiliev avatar Aug 13 '25 16:08 iliqiliev