-
Notifications
You must be signed in to change notification settings - Fork 140
format strings for library and xbps-query #542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Duncaen
wants to merge
32
commits into
void-linux:master
Choose a base branch
from
Duncaen:format
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
05cfc88
lib/compat/humanize_number.c: switch to freebsd version
Duncaen bac5de5
lib: add xbps_fmt* functions for string formatting
Duncaen 5d4f0f2
bin/xbps-query: add -F/--format flag
Duncaen a6a529c
tests: add tests for xbps_fmt* functions
Duncaen 6d228ac
lib/format.c: new humanize format !humanize[ ][.][width][minscale[max…
Duncaen e95718b
bin/xbps-query: document format flag
Duncaen 16422b5
lib/format.c: split/cleanup code
Duncaen fd5157f
lib/format.c: change escaped [{}] to \\[{}]
Duncaen 2162279
lib/format.c: add some more escape sequences
Duncaen 90ce850
bin/xbps-query: update/clean format documentation
Duncaen f374d6c
bin/xbps-query: fix humanize "i" SI prefixs documentation
Duncaen 578ce80
lib/format.c: refactor a bit
Duncaen a9c2747
lib/format.c: add optional default to format string variables
Duncaen c02cdc6
lib/format.c: simplify escape characters
Duncaen 5c31fcb
lib/format.c: fix parsing empty default string
Duncaen cc8d7d2
lib/format.c: fix xbps_fmts*
Duncaen 6baa761
lib/format.c: handle errors from nexttok
Duncaen 1b78587
lib/json.c: add json printing stuff
Duncaen 354fb92
lib/format.c: add json value conversion
Duncaen 40d4427
bin/xbps-query: add --json flag as alternative to --format
Duncaen 69aa731
lib/format: add \e escape, fix typos in format spec, remove dbg print
classabbyamp 8715af4
bin/xbps-query: make --json compact if there is no indention
Duncaen c12f5aa
bin/xbps-query: cleanup mode handling
Duncaen 03e1b5d
bin/xbps-query: move --list-repo to main.c, list.c is exclusively pac…
Duncaen 8049a17
bin/xbps-query: add format string support to --list-repos
Duncaen ae7ccd1
bin/xbps-query: document the --json flag better
Duncaen 31cec81
lib/format.c: IWYU
Duncaen 7d038ca
include: split xbps_fmt stuff into its own header
Duncaen dcc60f4
lib/format.c: make struct xbps_fmt private
Duncaen 17182be
bin/xbps-query: add pkgname,version and revision format variables
Duncaen aecab4c
lib/json.c: names and documentation
Duncaen ae11e15
bin/xbps-query: bring back default/null values for package formats
Duncaen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good to indicate which operating modes
--jsonand--formatwork in (or get it working in all operating modes)looks like currently it works for:
-J-F-l-L-H--list-repolock-pkgs-m-o-S-s-f-x-XFootnotes
no but I think track file mode and ownership in files.plist #541 will cover it ↩ ↩2