[!windows] chmod 755 bin/gopass
[windows] unix2dos bin/gopass.cmd

# test gopass template function
chezmoi execute-template '{{ gopass "misc/example.com" }}'
stdout examplepassword

-- bin/gopass --
#!/bin/sh

case "$*" in
"--version")
    echo "gopass 1.10.1 go1.15 linux amd64"
    ;;
"show --password misc/example.com")
    echo "examplepassword"
    ;;
*)
    echo "gopass: invalid command: $*"
    exit 1
esac
-- bin/gopass.cmd --
@echo off
IF "%*" == "--version" (
    echo "gopass 1.10.1 go1.15 windows amd64"
) ELSE IF "%*" == "show --password misc/example.com" (
    echo | set /p=examplepassword
    exit /b 0
) ELSE (
    echo gopass: invalid command: %*
    exit /b 1
)
