summaryrefslogtreecommitdiff
path: root/src/main.c
AgeCommit message (Collapse)Author
2026-05-13refactor: add pkgman_config struct and move download to net.cHEADdev0x221E
Added option to change mirror, tmp, staging directoryfrom the user interface of the pkgman library. Added TRY and TRY_IFNOT macros for better code readability.
2026-05-10feature: add URL structure and refactor main logic to pkgman.c0x221E
Added url structures, cookbook, archive management to automate the installation process of packages. Refactored main logic from main.c to pkgman.c for cleaner seperation of concerns and future library integration of pkgman to other projects.
2026-04-23net: add write to file callback0x221E
Creates a write_opts argument in net_send_request() where you can specify WRITE_OPT_MEMORY or WRITE_OPT_FILE. Modifies existing calls.
2026-04-23core: rename cmd_install() parameters0x221E
First parameter renamed to argc, and second renamed to argv to fit the general C-style entry function convention.
2026-04-23core: main: add memory cleanup to install command0x221E
The install command frees all allocated memory at the cleanup section, and iterates over the linked list to cleanup struct pair's key.buf and value.buf.
2026-04-22core: free ll_manifest contents after install complete0x221E
Iterates over the list inside um_user_data struct to free the struct string_view buffer. This commit does not add freeing functionality to the linked list itself.
2026-04-22global: add: null-terminate all printf's0x221E
Null-terminate all printf statements so that the output is proper.
2026-04-22global: refactor: change strcmp,strncmp with sv_equal()0x221E
All equalities in the codebase now uses the string_view equality check to ensure memory-safe comparison between strings. This is the case, unless the comparison is between two null-terminated C-style string, in which case they will not be using sv_equal()
2026-04-22core: add error returns to subcommands0x221E
Added error returns to subcommands and searching utility in main() and error codes PKGNOTFOUND and USAGE were added to err.h. The functions will now be able to return error states to main().
2026-04-22core: install command checks existence in upstream0x221E
The install command traverses through the linked list and checks for the existence of package in the upstream server.
2026-04-22parser: um: modify umanifest for initial support0x221E
um.h and um.c is modified to accept the linked list ll_manifest inside um_user_data struct. um_on_kv() now adds to the linked list in parser->userdata.
2026-04-21core: add error message on net_init() failure0x221E
On net_init failure, the application did not return any error message. To help with error-checking, an stderr is outputted after a bad return from net_init() on main.c
2026-04-20main: initial commit0x221E