Skip to content
/ umbra Public

Cli powered by zenode to send p2panda operations to a node

Notifications You must be signed in to change notification settings

Gers2017/umbra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Umbra

Cli powered by zenode to send operations to a p2panda node

Quick start

Usage: umbra [COMMAND]

Commands:
  cs    Create schema, requires name, description and fields
  ci    Create instance, requires schema_id and fields
  ui    Update instance, requires schema_id, view_id, and fields to update
  di    Delete instance, requires schema_id, last view_id
  help  Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help information
  -V, --version  Print version information

Clone and run aquadoggo

git clone https://github.com/p2panda/aquadoggo.git

and run aquadoggo

RUST_LOG=aquadoggo=info cargo run

Examples

Create a schema

umbra cs -n <schema-name> -d <schema-description> -f <field-name>:<field-type>

For example:

umbra cs -n bears -d 'cute bears' -f id:int -f name:str -f hidden:bool --log

Pro tip: Use the --log or -l flag to print your operation with shiny colors 🤫

Create an instance

umbra ci -s <schema_id> -f id:1 -f name:Bob -f hidden:false

Update an instance

umbra ui -s <schema_id> -v <view_id> -f id:2 -f name:Yogi

Delete an instance

umbra di -s <schema_id> -v <view_id>