diff options
Diffstat (limited to 'bin/ak-ns')
| -rwxr-xr-x | bin/ak-ns | 16 | 
1 files changed, 14 insertions, 2 deletions
@@ -28,10 +28,16 @@  ##    -ll, --list-long                     List names with keys  ##    -rn, --resolve-name <name>           Resolves value from name  ##    -rk, --resolve-key <key>             Resolves value from key +##    -rp, --resolve-key-proof <key>       Resolves value from key and provides +##                                         an akfs_map_v3 to clear signed proof +##    -rj, --resolve-key-json <key>        Resolves a key to a JSON format +##    -ra, --resolve-all                   Resolve all reachable keys  ##    -p,  --publish <key> <value>         Publishes value to key  ##    -pn, --publish2name <name> <value>   Publishes value to name  ##    -pz, --publish-zchain                Publishes zchain  ##    -pc, --publish-config                Publishes config +##    -ek, --encode-key <key>              Encodes a key to Base64 +##    -dk, --decode-key <base64 key>       Decodes a key from Base64  ##  fullprogrampath="$(realpath $0)"  PROGRAM=$(basename $0) @@ -51,11 +57,17 @@ then          -ll | --list-long) shift; _ak_ns_list_long; exit;;          -rn | --resolve-name) shift; _ak_ns_resolve_from_name $1; exit;;          -rk | --resolve-key) shift; _ak_ns_resolve_from_key $1; exit;; +        -rp | --resolve-key-proof) shift; _ak_ns_resolve_from_key_with_proof $1; exit;; +        -rj | --resolve-key-json) shift; _ak_ns_resolve_from_key_with_proof_json $1; exit;; +        -ra | --resolve-all) _ak_ns_resolve_all_keys; exit;; +        -ek | --encode-key) shift; _ak_ns_encode_key $1; exit;; +        -dk | --decode-key) shift; _ak_ns_decode_key $1; exit;;          -p | --publish) shift; _ak_ns_publish $1 $2; exit;;          -pn | --publish2name) shift; _ak_ns_publish2name $1 $2; exit;;          -pz | --publish-zchain) _ak_ns_publish_zchain; exit;;          -pc | --publish-config) _ak_ns_publish_config; exit;; -        * ) _ak_usage;; +        * ) _ak_usage err;;      esac -else _ak_usage +else +    _ak_usage err  fi  | 
