Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI Command Design: Retrieve a Trust Claim (subcommand: graph) #7

Open
ocarissa opened this issue Nov 3, 2022 · 5 comments
Open

CLI Command Design: Retrieve a Trust Claim (subcommand: graph) #7

ocarissa opened this issue Nov 3, 2022 · 5 comments
Assignees

Comments

@ocarissa
Copy link

ocarissa commented Nov 3, 2022

Usage

Once a number of claims have already been made, you can retrieve and analyze a collection of ratings.

trust graph --help

Usage: trust-graph [options]

  Options:

    -h, --help           output usage information
    --perspective <DID>  Perspective (identity) through which trust network is seen
    --creator <creator>  DID or URL of claim creator
    --target <target>    DID or URI of claim target
    --tags <tag1, tag2>  Filter by tags
    --depth <levels>     Crawls trust ratings to specified depth
    --min-value <value>  Min trust rating 0..1
    --max-value <value>  Max trust rating 0..1
    --summarize          Summarize claims / build analysis
    --falloff            Trust level relative to depth, eg: [1, 0.5, 0.33]

For example:

trust graph \
  --target did:59f269a0-0847-4f00-8c4c-26d84e6714c4 \
  --tags 'programming, Elixir' \
@dauphin3
Copy link
Collaborator

are any of these args/flags optional?

@harlantwood
Copy link
Member

harlantwood commented Mar 17, 2023

Perspective is needed. The rest are optional, some of them with smart defaults. We may at some stage have a concept of logging in, in which case perspective would not be needed explicitly at the command line. A default perspective is also something that would ultimately be stored, in a trustgraph config file, i.e. my perspective, my public key.

@harlantwood
Copy link
Member

@dauphin3 ☝️

@dauphin3
Copy link
Collaborator

what type(s) does this command return?

@harlantwood
Copy link
Member

what type(s) does this command return?

JSON

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants