commit 48e21f6

Artur Manuel  ·  2026-04-24 07:38:50 +0000 UTC
parent 1e31ca3
chore(webfetch): state project support
2 files changed,  +8, -0
+4, -0
 1@@ -18,6 +18,10 @@ systems fetch information.
 2 
 3 ## How do I build and install this?
 4 
 5+**Currently, this only supports Linux systems because I have no way of
 6+testing tools on other operating systems. Feel free to use exfetch-web
 7+should you want to use something that verifiably works on OpenBSD.**
 8+
 9 `make install` should do the trick, but make sure to specify the PREFIX
10 lest you are fine with installing it to /usr/local.
11 
+4, -0
 1@@ -4,6 +4,7 @@ import (
 2 	"context"
 3 	"log"
 4 	"os"
 5+	"runtime"
 6 
 7 	"github.com/urfave/cli/v3"
 8 )
 9@@ -18,6 +19,9 @@ var cmd = cli.Command{
10 }
11 
12 func main() {
13+	if runtime.GOOS != "linux" {
14+		log.Fatalln("This program is not usable on non-Linux systems at the moment.") 
15+	}
16 	if err := cmd.Run(context.Background(), os.Args); err != nil {
17 		log.Fatalln(err)
18 	}