Skip to content

Commit

Permalink
Merge pull request #88 from CLIMB-TRE/development
Browse files Browse the repository at this point in the history
CLI commands for creating, updating and deleting records
  • Loading branch information
tombch authored Aug 19, 2024
2 parents a5ad2ae + c62890e commit ac5250c
Show file tree
Hide file tree
Showing 3 changed files with 180 additions and 31 deletions.
21 changes: 14 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ Check it works:

```
$ onyx
Usage: onyx [OPTIONS] COMMAND [ARGS]...
API for pathogen metadata.
Usage: onyx [OPTIONS] COMMAND [ARGS]...
API for pathogen metadata.
╭─ Options ─────────────────────────────────────────────────────────────────────────────────╮
│ --domain -d TEXT Domain name for connecting to Onyx. [env var: ONYX_DOMAIN] │
│ [default: None] │
Expand All @@ -48,6 +48,10 @@ $ onyx
│ --help -h Show this message and exit. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ────────────────────────────────────────────────────────────────────────────────╮
│ auth Authentication commands. │
│ admin Admin commands. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Data ────────────────────────────────────────────────────────────────────────────────────╮
│ projects View available projects. │
│ types View available field types. │
│ lookups View available lookups. │
Expand All @@ -57,11 +61,14 @@ $ onyx
│ filter Filter multiple records from a project. │
│ history View the history of a record in a project. │
│ identify Get the anonymised identifier for a value on a field. │
│ create Create a record in a project. │
│ update Update a record in a project. │
│ delete Delete a record in a project. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Accounts ────────────────────────────────────────────────────────────────────────────────╮
│ profile View profile information. │
│ activity View latest profile activity. │
│ siteusers View users from the same site. │
│ auth Authentication commands. │
│ admin Admin commands. │
╰───────────────────────────────────────────────────────────────────────────────────────────╯
```

Expand Down
Loading

0 comments on commit ac5250c

Please sign in to comment.