aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorArslaan Pathan <[email protected]>2026-03-05 13:04:04 +1300
committerArslaan Pathan <[email protected]>2026-03-05 13:04:04 +1300
commitbd6f6fbe80ef419fdf38c4154add3c4d7a452da0 (patch)
tree51260922a47b28dfdbe846f8def0b78d23a53dd6 /cmd
parent50e6213fed138fff57e4d206caa109a9f8fc1961 (diff)
downloadkiiro-bd6f6fbe80ef419fdf38c4154add3c4d7a452da0.tar.xz
kiiro-bd6f6fbe80ef419fdf38c4154add3c4d7a452da0.zip
Add sources stuff and dev test and some other thingsa
Diffstat (limited to 'cmd')
-rw-r--r--cmd/kiiro/main.go17
1 files changed, 16 insertions, 1 deletions
diff --git a/cmd/kiiro/main.go b/cmd/kiiro/main.go
index f94810b..e58d197 100644
--- a/cmd/kiiro/main.go
+++ b/cmd/kiiro/main.go
@@ -5,8 +5,23 @@ package main
import (
"fmt"
+ "github.com/ArslaanPathan/kiiro/internal/sources"
+ "log"
)
func main() {
- fmt.Println("kiiro")
+ fmt.Println("kiiro development test")
+ fmt.Println("fetching test package listing")
+ packageListing, err := sources.FetchPackageListing("http://localhost:8081/test.json")
+ if err != nil {
+ log.Fatal(err)
+ }
+
+ fmt.Println(packageListing.Repository)
+ if packageListing.KiirofileOverride != nil {
+ fmt.Println(*packageListing.KiirofileOverride)
+ }
+ if packageListing.KiirotomlOverride != nil {
+ fmt.Println(*packageListing.KiirotomlOverride)
+ }
}