summaryrefslogtreecommitdiffstats
path: root/cli/src/api/connection.rs
Commit message (Collapse)AuthorAgeFilesLines
* cli: Add command to edit clients.Harald Eilertsen2024-04-251-0/+8
| | | | | | | Not entirely happy with this one. Specially the patch method of the Connection struct. While the other method take (or return) an object that can be serialized to json, the patch method takes a string slice directly, and passing it to the API.
* cli: Add feature to save clients to the db.Harald Eilertsen2024-04-241-0/+36
Also introduces a Connection object to handle the actual connection to the remote API. We also load the remote API url and jwt token from the process environment so these are no longer hardcoded into the source code.