From f85bd1d03ff570ca30a152f4c535d37cd41f97ef Mon Sep 17 00:00:00 2001 From: kogeletey Date: Tue, 20 Aug 2024 20:51:44 +0300 Subject: [PATCH] doc: registry definiton and settings of wacli --- README.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/README.md b/README.md index 3efdacd..a23f293 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ On your website you will need to use `.well-know/wacli.json` file: "settings": { // By default using application json, and it doesn't need to be specified "contentType": "application/json", + "headers": Array, "aliases": [{ "alias": "" | ["short_hand","long_hand"], "type": "path" | "method" | "bin", @@ -135,8 +136,33 @@ Perhaps not everyone will add tools to their sites, so for popular tools using d wacli registry:forgejo repos issues ``` +You can create registry, by writing to `.well-know/wacli.json` next lines + +```json +{ + "registry": true, + "manifests": { + "": { + "path": "" + } + } +} +``` + You can also get help on all api methods using the command ```sh wacli help codeberg.org ``` + +Settings format is on Linux by address `$HOME/.config/wacli/wacfg.json` + +```json +{ + "db_path": "", + "install_dir": "", + "uri_schemes": { + "registry": "" + } +} +```