-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: veilid-hacks
action: blob
revision:
path_from: veilid-api-show-op
revision_from: refs/heads/trunk:
path_to:
revision_to:

git.thebackupbox.net

veilid-hacks

git://git.thebackupbox.net/veilid-hacks

blob of:

veilid-hacks

/ veilid-api-show-op

refs/heads/trunk:/veilid-api-show-op
 #!/usr/bin/env bash
 if [ ! "$1" ];then
   printf 'usage: velid-api-show-op <op>\n' >&2
   printf '  outputs the schema for the api op\n' >&2
   exit 1
 fi
 op="$1"
 veilid-server --emit-schema Request | jq -r '.oneOf[] | select(.properties.op.enum[] == "'"$op"'")'

-- Response ended

-- Page fetched on Sun Jun 2 13:18:31 2024