diff options
| author | sigoden <sigoden@gmail.com> | 2024-06-07 15:16:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-07 15:16:31 +0800 |
| commit | 739a832d87c00e3b5977a24bba5654fa5ea7a702 (patch) | |
| tree | 2bb4c102a3e04b9c8c1ecd61bdb6c92f84ca27cb /tools/demo_tool.sh | |
| parent | 2b07fc2c7e4e6311d35ae72c17b25e47680d61f6 (diff) | |
| download | llm-functions-docker-739a832d87c00e3b5977a24bba5654fa5ea7a702.tar.gz | |
feat: js/py generate declarations from comments (#30)
Diffstat (limited to 'tools/demo_tool.sh')
| -rwxr-xr-x | tools/demo_tool.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/demo_tool.sh b/tools/demo_tool.sh new file mode 100755 index 0000000..0d24c75 --- /dev/null +++ b/tools/demo_tool.sh @@ -0,0 +1,15 @@ +# @describe Demonstrate how to create a tool using Bash and how to use comment tags. +# @option --string! Define a required string property +# @option --string-enum![foo|bar] Define a required string property with enum +# @option --string-optional Define a optional string property +# @flag --boolean Define a boolean property +# @option --integer! <INT> Define a required integer property +# @option --number! <NUM> Define a required number property +# @option --array+ <VALUE> Define a required string array property +# @option --array-optional* Define a optional string array property + +main() { + ( set -o posix ; set ) | grep ^argc_ # inspect all argc variables +} + +eval "$(argc --argc-eval "$0" "$@")"
\ No newline at end of file |
