- Haskell 51.5%
- HTML 43.6%
- Nix 4.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| app | ||
| example | ||
| .gitignore | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| package.nix | ||
| README.md | ||
| sasha-fetch2.cabal | ||
| shell.nix | ||
sasha-fetch2
This is a little tool I wrote to generate to fetch card on my website
and Gemini page and the curl-able terminal output viewable with
curl fetch.sashanoraa.gay. You can use it to create your own too!
This is a successor to my original sasha-fetch
script that I used to generate these.
Website
Terminal
Usage
Generate HTML
sasha-fetch2 html <colors> < info.json > out.html
Generate terminal fetch
sasha-fetch2 term <colors> <image> <image height> < info.json > out.txt
Generate plain
sasha-fetch2 plain < info.json > out.txt
Info
info.json contains the data in the fetch card. The file contains an array of line objects. Each
line must contain a "name" field, which is the text on the left side of line. Each line can also
have a "value" field, which is the text on the right side if the line. And optionally a "url" field
which will make the value a link in HTML that points to the provided URL.
See ./example/info.json for an example.
Colors
The html and term commands both have a color argument. This is actually four arguments which
are the left and right side colors of the names and values in the order:
- name left color
- name right color
- value left color
- value right color
Each color value is a color in HSL written as H,S,L ex. 324,91,47.
Building
Requirements:
- GHC
- Cabal
Build:
cabal build -O

