diff --git a/COPYING b/COPYING index 97ff0a9..1187835 100644 --- a/COPYING +++ b/COPYING @@ -1,6 +1,6 @@ ISC License (ISCL) -Copyright (C) 2025 Shin'ya Minazuki +Copyright (C) 2025-2026 Shin'ya Minazuki Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above diff --git a/README.md b/README.md index 7f9b65e..ac341d0 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,10 @@ A [yarn.social](https://yarn.social) client from the future * [X] Follow/Unfollow * [X] Login * [X] Posting -* [ ] Timeline +* [ ] Timeline (there's only [this shell script](mikuru-timeline) at the moment) + +## Homepage +* [mikuru@projects.laidback.moe](https://projects.laidback.moe/mikuru/) ## License [ISC](COPYING) diff --git a/Taskfile.yml b/Taskfile.yml index bdcbc9f..eb28674 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -14,7 +14,7 @@ tasks: build: desc: Build the client cmds: - - $GO build -ldflags='-s -w -X "{{.IMPORT}}.Version={{.VERSION}}" -X "{{.IMPORT}}.Revision={{.REVISION}}"' -v + - $GO build -ldflags='-s -w -X "{{.IMPORT}}.Version={{.VERSION}}" -X "{{.IMPORT}}.Revision={{.REVISION}}"' -buildvcs=false -buildmode=exe -v vars: REVISION: sh: git rev-list --all | wc -l | tr -d ' ' diff --git a/mikuru-timeline b/mikuru-timeline new file mode 100755 index 0000000..d97eb4a --- /dev/null +++ b/mikuru-timeline @@ -0,0 +1,9 @@ +#!/bin/sh +# That will have to do for now +! [ command -v curl ] && exit 1 +! [ command -v jq ] && exit 1 + +curl -H "Accept: application/json" -H "Content-Type: application/json" \ + -H "User-Agent: mikuru/timeline.sh" -H "Token: $(sed 's/token = //' ~/.config/mikuru.ini | tail -n1)" \ + -d '{"page": 1}' $(sed -e 's/host = //' -e "/mikuru/d" -e "/token/d" ~/.config/mikuru.ini)/api/v1/timeline | jq | less +