From 2339055b7cda6b786c044915d62d0b41b6676975 Mon Sep 17 00:00:00 2001 From: dacctal Date: Fri, 29 May 2026 12:09:41 +0000 Subject: added docs for updating and declaring packages --- README.md | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 46d4b85..d6487ab 100644 --- a/README.md +++ b/README.md @@ -84,8 +84,7 @@ pkgit build [/path/to/project] ``` This can also be done without specifying the path (`pkgit build`) if you're in the project's root directory -## Removal -### Packages +## Removing Packages Removing (uninstalling) a package is as simple as it seems: ``` pkgit remove [pkg_name] @@ -95,6 +94,27 @@ Or the short command: pkgit r [pkg_name] ``` +## Updating Packages +You can easily update your installed packages by running: +``` +pkgit update +``` +Or the short command: +``` +pkgit u +``` + +## Declaring Packages +If you prefer a declarative approach, you can use the config file (read below) as a package declaration file. +When you're ready, you can declare all your packages at once with: +``` +pkgit declare +``` +Or the short command: +``` +pkgit d +``` + ## Dependency Management As it is, pkgit is capable of dependency management, but you will likely have to specify the dependency URLs for each package you install in `/pkgit/init.lua`. There's not a universal way to check for dependencies without using an existing package manager (unless the package you're installing has a bldit.lua). -- cgit v1.2.3