Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/fortran.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Fortran

on:
push:
pull_request:

jobs:
fixture:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install gfortran
run: sudo apt-get update && sudo apt-get install -y gfortran
- name: Run fixture test
run: ./test/run-fixture.sh
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/
*.exe
build/
*.mod
*.exe
15 changes: 10 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# maifetch
a really lazy fetch tool for [maitea](https://maitea.app) written in go\
also contains a little api wrapper for maitea too :D
a really lazy fetch tool for [maitea](https://maitea.app) rewritten in Fortran.

![image](https://github.com/user-attachments/assets/96cd7018-8a00-4785-a1a8-9fe503263662)

Expand All @@ -23,13 +22,19 @@ obtained from `os.UserConfigDir`

## how to build
1. clone the project with `git clone https://github.com/HutchyBen/maifetch`
2. build with `go build maifetch/cmd/maifetch`
3. run outputted executable ensuring access token is either
2. install a Fortran compiler such as `gfortran` and make sure `curl` is available for API requests
3. build with `gfortran -std=f2008 -ffree-line-length-none src/maifetch.f90 -o maifetch`
4. run outputted executable ensuring access token is either
- in config file
- in environment variables
- in command line options

## testing
Run the fixture test without a real MaiTea token:

```sh
./test/run-fixture.sh
```

## todo
- test it properly
- add friendly errors
85 changes: 0 additions & 85 deletions cmd/maifetch/config.go

This file was deleted.

121 changes: 0 additions & 121 deletions cmd/maifetch/main.go

This file was deleted.

48 changes: 0 additions & 48 deletions cmd/maifetch/utils.go

This file was deleted.

22 changes: 0 additions & 22 deletions go.mod

This file was deleted.

42 changes: 0 additions & 42 deletions go.sum

This file was deleted.

Loading