From c3fea75178596fccb55c1a8f85ec2b984275beae Mon Sep 17 00:00:00 2001 From: kjuulh Date: Wed, 12 Feb 2025 21:29:16 +0100 Subject: [PATCH] feat: add basic hyperlog todos Signed-off-by: kjuulh --- crates/forest/src/cli.rs | 4 ++-- cuddle.yaml | 4 ++++ scripts/todos.sh | 5 +++++ todos/hyperlog/graph.json | 20 ++++++++++++++++++++ 4 files changed, 31 insertions(+), 2 deletions(-) create mode 100755 scripts/todos.sh create mode 100644 todos/hyperlog/graph.json diff --git a/crates/forest/src/cli.rs b/crates/forest/src/cli.rs index a175a1f..5e7a3c8 100644 --- a/crates/forest/src/cli.rs +++ b/crates/forest/src/cli.rs @@ -58,9 +58,9 @@ pub async fn execute() -> anyhow::Result<()> { )?; 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(()) diff --git a/cuddle.yaml b/cuddle.yaml index 93115c5..220ef37 100644 --- a/cuddle.yaml +++ b/cuddle.yaml @@ -20,3 +20,7 @@ cuddle/clusters: prod: env: service.host: "0.0.0.0:3000" + +scripts: + todos: + type: shell diff --git a/scripts/todos.sh b/scripts/todos.sh new file mode 100755 index 0000000..c6ed0c4 --- /dev/null +++ b/scripts/todos.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env zsh +# +set -e pipefail + +hyperlog --local-path todos diff --git a/todos/hyperlog/graph.json b/todos/hyperlog/graph.json new file mode 100644 index 0000000..5f25646 --- /dev/null +++ b/todos/hyperlog/graph.json @@ -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" + } + } + } +} \ No newline at end of file