diff options
| -rw-r--r-- | files/.vim/UltiSnips/sh.snippets | 11 | ||||
| -rwxr-xr-x | files/.vim/templates/=template=.argc-sh | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/files/.vim/UltiSnips/sh.snippets b/files/.vim/UltiSnips/sh.snippets index f0df521..d9087eb 100644 --- a/files/.vim/UltiSnips/sh.snippets +++ b/files/.vim/UltiSnips/sh.snippets @@ -78,3 +78,14 @@ main() { main "$@" endsnippet + +snippet argc_snip "new argc template" +# @describe +# Specification: https://github.com/sigoden/argc/blob/main/docs/specification.md + +main() { + $0 +} + +eval "$(argc --argc-eval "$0" "$@")" +endsnippet diff --git a/files/.vim/templates/=template=.argc-sh b/files/.vim/templates/=template=.argc-sh new file mode 100755 index 0000000..0ce19ab --- /dev/null +++ b/files/.vim/templates/=template=.argc-sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash + +set -euo pipefail + +# @describe + +main() { + +} + +eval "$(argc --argc-eval "$0" "$@")" |
