feat: add basic hyperlog todos

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
Kasper Juul Hermansen 2025-02-12 21:29:16 +01:00
parent cdab2e1c25
commit c3fea75178
Signed by: kjuulh
SSH Key Fingerprint: SHA256:RjXh0p7U6opxnfd3ga/Y9TCo18FYlHFdSpRIV72S/QM
4 changed files with 31 additions and 2 deletions

View File

@ -58,9 +58,9 @@ pub async fn execute() -> anyhow::Result<()> {
)?; )?;
let put_object = bucket.put_object(Some(&creds), "some-object"); let put_object = bucket.put_object(Some(&creds), "some-object");
put_object.sign(expires_in) let _url = put_object.sign(std::time::Duration::from_secs(30));
let state = SharedState::new().await?; let _state = SharedState::new().await?;
} }
Ok(()) Ok(())

View File

@ -20,3 +20,7 @@ cuddle/clusters:
prod: prod:
env: env:
service.host: "0.0.0.0:3000" service.host: "0.0.0.0:3000"
scripts:
todos:
type: shell

5
scripts/todos.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env zsh
#
set -e pipefail
hyperlog --local-path todos

20
todos/hyperlog/graph.json Normal file
View File

@ -0,0 +1,20 @@
{
"forest": {
"type": "user",
"projects": {
"type": "section",
"artifacts": {
"type": "item",
"title": "artifacts",
"description": "",
"state": "not-done"
},
"projects": {
"type": "item",
"title": "projects",
"description": "",
"state": "not-done"
}
}
}
}