wick3dr0se / pkm

A super minimal TUI package manager wrapper written in BASH v4.2+
GNU General Public License v3.0
39 stars 5 forks source link

BigDL support? #10

Open xplshn opened 2 months ago

xplshn commented 2 months ago

BigDL is a "package" manager (not really, it manager binaries), its quite simple and small, I'd love PKM to have support for it :) https://github.com/xplshn/bigdl

This is the help page of bigdl:

]@ bigdl -h
Usage:
 [-v|-h] [list|install|remove|update|run|info|search|tldr] <-args->

Options:
 -h, --help       Show this help message
 -v, --version    Show the version number

Commands:
 list             List all available binaries
 install, add     Install a binary
 remove, del      Remove a binary
 update           Update binaries, by checking their SHA against the repo's SHA
 run              Run a specified binary from cache
 info             Show information about a specific binary OR display installed binaries
 search           Search for a binary - (not all binaries have metadata. Use list to see all binaries)
 tldr             Equivalent to "run --transparent --verbose tlrc" as argument

Variables:
 BIGDL_PRBAR      If present, and set to ZERO (0), the download progressbar will be disabled
 BIGDL_TRUNCATION If present, and set to ZERO (0), string truncation will be disabled
 BIGDL_CACHEDIR   If present, it must contain a valid directory
 INSTALL_DIR      If present, it must contain a valid directory

Examples:
 bigdl search editor
 bigdl install micro
 bigdl install lux kakoune aretext shfmt
 bigdl install --silent bed && echo "[bed] was installed to $INSTALL_DIR/bed"
 bigdl del bed
 bigdl del orbiton tgpt lux
 bigdl info
 bigdl info jq
 bigdl list --described
 bigdl tldr gum
 bigdl run --verbose curl -qsfSL "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -
 bigdl run --silent elinks -no-home "https://fatbuffalo.neocities.org/def"
 bigdl run --transparent --silent micro ~/.profile
 bigdl run btop

Version: 1.6.9p
xplshn commented 2 months ago

And, also, bigdl can be used to pull programs to use withing the script, in case there's a need to, so for things like jq, fzf, etc. It'd be great. You can do that using:

wget -qO- "https://raw.githubusercontent.com/xplshn/bigdl/master/stubdl" | sh -s -- run --transparent fzf