feat: types described, examples of registry

This commit is contained in:
Konrad Geletey 2024-08-21 15:57:38 +03:00
parent f85bd1d03f
commit 7a77314eaf
No known key found for this signature in database
GPG key ID: 862B98E2204889CE
5 changed files with 40 additions and 22 deletions

View file

@ -0,0 +1,40 @@
{
"api": "https://git.0ut0f.space/swagger.v1.json",
"settings": {
"auth": {
"scheme": "bearer",
"tokenName": "AuthorizationHeaderToken"
},
"aliases": [
{
"alias": "issues",
"type": "path",
"content": "/repos/{owner}/{repo}/issues"
},
{
"alias": ["c","create"],
"type": "method",
"content": "POST"
},
{
"alias": ["d","delete"],
"type": "method",
"content": "DELETE"
},
{
"alias": "tea",
"type": "bin",
"content": "tea"
}
]
},
"bin": {
"linux": [{"x86": "https://dl.gitea.com/tea/main/tea-main-linux-amd64.xz"}],
"windows": [{"x86": "https://dl.gitea.com/tea/main/tea-main-windows-amd64.xz"}],
"darwin": [
{"arm64": "https://dl.gitea.com/tea/main/tea-main-darwin-arm64"},
{"x86": "https://dl.gitea.com/tea/main/tea-main-darwin-amd64.xz"}
]
}
}

8
examples/settings.json Normal file
View file

@ -0,0 +1,8 @@
{
"db_path": "$HOME/.cache/wacrd.db",
"install_dir": "$HOME/.local/bin",
"uri_schemes": {
"registry": "https://wacli.ofs.lol"
}
}

View file

@ -0,0 +1,16 @@
{
"registry": true,
"manifests": {
"forgejo": {
"path": "https://wacli.ofs.lol/registry/forgejo.json"
}
},
"settings": {
"aliases": [{
"type": "uri",
"alias": "registry",
"content": "https://wacli.ofs.lol"
}]
}
}