Projeto-Pindorama / pacote

A SVR4-like package manager for the 21st century.
http://pacote.pindorama.dob.jp
University of Illinois/NCSA Open Source License
4 stars 4 forks source link

feat: Pkginfo basic function #8

Closed JoaoP-Vieira closed 11 months ago

JoaoP-Vieira commented 11 months ago

Note: I used the jessevdk/go-flags to work with cli args. Maybe you want to use something else or do this from scratch.

For testing you need to set the pkgdir variable to your environment.

export pkgdir="path/to/your/folder"

The .pkginfo files needs to follow this format:

VENDOR=Vendor Name
PKGINST=pkg
HOTLINE=pkg@mail.com
PKG=pkg
ARCH=amd64
DESC=Pkg description
CATEGORY=pkg
NAME=pkg
VERSION=1.0
takusuman commented 11 months ago

Note: I used the jessevdk/go-flags to work with cli args. Maybe you want to use something else or do this from scratch.

For now, there's no problem, but I think it would be good to use the language built-ins or implement an extension to that.

I have no problem with go-flags, to be honest I don't even know how the package actually works, but I would like to keep things on our domain and of the language instead of outsourcing functions for trivial things like simple POSIX flag handling.

takusuman commented 11 months ago

The .pkginfo files needs to follow this format:

I should've implemented the reader, but I hope it's already done. I will take a look at the code later, but I will merge it now.