Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
44c24a1
lib/compat/humanize_number.c: switch to freebsd version
Duncaen Feb 21, 2023
f187ad3
lib: add xbps_fmt* functions for string formatting
Duncaen Feb 20, 2023
f9324a9
bin/xbps-query: add -F/--format flag
Duncaen Feb 20, 2023
5701150
tests: add tests for xbps_fmt* functions
Duncaen Feb 21, 2023
e607d1c
lib/format.c: new humanize format !humanize[ ][.][width][minscale[max…
Duncaen Feb 21, 2023
3e1d71f
bin/xbps-query: document format flag
Duncaen Feb 21, 2023
059117f
lib/format.c: split/cleanup code
Duncaen Mar 10, 2023
e417a77
lib/format.c: change escaped [{}] to \\[{}]
Duncaen Mar 10, 2023
d28a103
lib/format.c: add some more escape sequences
Duncaen Mar 10, 2023
763ccde
bin/xbps-query: update/clean format documentation
Duncaen Mar 10, 2023
937df62
bin/xbps-query: fix humanize "i" SI prefixs documentation
Duncaen Mar 10, 2023
4e75f97
lib/format.c: refactor a bit
Duncaen Mar 14, 2023
73d4f45
lib/format.c: add optional default to format string variables
Duncaen Mar 14, 2023
6fbce81
lib/format.c: simplify escape characters
Duncaen Mar 14, 2023
0ce7ca4
lib/format.c: fix parsing empty default string
Duncaen Mar 14, 2023
27b522a
lib/format.c: fix xbps_fmts*
Duncaen Mar 14, 2023
fea8e71
lib/format.c: handle errors from nexttok
Duncaen Jun 19, 2023
5fa5a50
lib/json.c: add json printing stuff
Duncaen Sep 18, 2023
0ffab72
lib/format.c: add json value conversion
Duncaen Sep 18, 2023
869db8d
bin/xbps-query: add --json flag as alternative to --format
Duncaen Sep 18, 2023
de9a1e6
lib/format: add \e escape, fix typos in format spec, remove dbg print
classabbyamp Mar 15, 2023
89bb4bd
bin/xbps-query: make --json compact if there is no indention
Duncaen Sep 18, 2023
c099c62
bin/xbps-query: cleanup mode handling
Duncaen Sep 19, 2023
940f7a3
bin/xbps-query: move --list-repo to main.c, list.c is exclusively pac…
Duncaen Sep 19, 2023
24132e0
bin/xbps-query: add format string support to --list-repos
Duncaen Sep 19, 2023
a140a7c
bin/xbps-query: document the --json flag better
Duncaen Sep 19, 2023
4753dc8
lib/format.c: IWYU
Duncaen Sep 19, 2023
89349c0
include: split xbps_fmt stuff into its own header
Duncaen Sep 19, 2023
fdf9066
lib/format.c: make struct xbps_fmt private
Duncaen Sep 19, 2023
fd4b843
bin/xbps-query: add pkgname,version and revision format variables
Duncaen Sep 19, 2023
92112d6
lib/json.c: names and documentation
Duncaen Sep 19, 2023
62ebdfe
bin/xbps-query: bring back default/null values for package formats
Duncaen Sep 19, 2023
2a77930
lib: add ability to template repo urls with {arch}
classabbyamp Oct 9, 2023
6396fa2
data/repod-main.conf: template arch
classabbyamp Dec 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions bin/xbps-query/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,10 @@ int repo_show_pkg_namedesc(struct xbps_handle *, xbps_object_t, void *,
int ownedby(struct xbps_handle *, const char *, bool, bool);

/* From list.c */
unsigned int find_longest_pkgver(struct xbps_handle *, xbps_object_t);

int list_pkgs_in_dict(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_manual_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_hold_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_repolock_pkgs(struct xbps_handle *, xbps_object_t, const char *, void *, bool *);
int list_orphans(struct xbps_handle *);
int list_orphans(struct xbps_handle *, const char *);
int list_pkgs_pkgdb(struct xbps_handle *);

int repo_list(struct xbps_handle *);
int list_pkgdb(struct xbps_handle *, int (*filter)(xbps_object_t), const char *format, int json);

/* from search.c */
int search(struct xbps_handle *, bool, const char *, const char *, bool);
Expand Down
Loading
Loading