This addresses several issues with get, mostly on sorting.
See commit messages and closed issues for details.
In short:
get now has --exclude and --include arguments, that take paths. Assets underneath these (or directly specified) are exclude or included in the query respectively. The previous --path argument is consequently an alias for --include.
Sorting has changed. We have -s and -S for ascending and descending order. However, they now take a key to sort by as argument and can be given multiple times. Sorting by multiple keys is done in order of appearance, where ascending and descending is specified per key so that it can be a mix.
Lastly, onyo now depends on natsort (and fastnumbers) rather than bothering to try and reinvent the wheel. This package already considers a lot of special cases and performance issues.
This addresses several issues with
get
, mostly on sorting. See commit messages and closed issues for details.In short:
get
now has--exclude
and--include
arguments, that take paths. Assets underneath these (or directly specified) are exclude or included in the query respectively. The previous--path
argument is consequently an alias for--include
.-s
and-S
for ascending and descending order. However, they now take a key to sort by as argument and can be given multiple times. Sorting by multiple keys is done in order of appearance, where ascending and descending is specified per key so that it can be a mix.natsort
(andfastnumbers
) rather than bothering to try and reinvent the wheel. This package already considers a lot of special cases and performance issues.Closes #518 Closes #507 Closes #505