Added function to read .PKGINFO into struct

This commit is contained in:
Jef Roosens 2022-01-13 19:20:14 +01:00
parent b5224e8a63
commit 5616e7a4e2
Signed by: Jef Roosens
GPG key ID: 955C0660072F691F
4 changed files with 101 additions and 10 deletions

View file

@ -2,7 +2,7 @@ module archive
import os
pub fn get_pkg_info(pkg_path string) ?string {
pub fn pkg_info_string(pkg_path string) ?string {
if !os.is_file(pkg_path) {
return error("'$pkg_path' doesn't exist or isn't a file.")
}