In FreeBSD, just as in DARWIN, uuid functions are in libc and no external libuuid is required.
The API is quite different from Linux's though, so a different implementation of uuid () (util.cpp) is needed.
- Many files were missing an explicit cmake.h include. Some were not including
it at all. Now it's used almost everywhere.
(cherry picked from commit 82ae86979c497e6d1d0c6b2b5a55aa379ec82c98)
- Ensure that the real exit code of the child program is retrieved
using WEXITSTATUS().
- Centralise the handling of code 127, which means that the child
shell process could not execute its child (ssh, rsync, or curl.)
Signed-off-by: Russell Steicke <russells@adelie.cx>
- Fix#1056: the 'projects' command now outputs abstract parents
and reduces repetition by not printing parent names in front of
children names.
- Project name indentation is not affected by the first character
being a period and/or the last character being a period.
- Unit tests for above.
- Added portable implementation of timegm for non GNU/BSD platforms that
don't have their own implementation
- Removed the use of tm_gmtoff on non GNU/BSD platforms that don't have
it as part of the tm struct in time.h
- Added CMake tests HAVE_TIMEGM and HAVE_TM_GMTOFF
- Broke the indentTree function into two pieces - one that processes
a list, the other that processes a single item. This makes it more
efficient for use places that have only one element.
- Backslashes actually. The escaping mechanism in the low-level parser
was eating leading \ characters when it should not. Very hard bug to
find, trivial to fix.
- Added unit tests to several components while narrowing this down.
- Added indentTree function that will provide the basis for a new 'projects'
command, and potentially more. Includes unit tests. Based on a patch from
Ralph Bean.
- Rescued the ::encode and ::decode funtions and put them in util.cpp.
This is because 2.0 will still need to perform the same encode/decode
operations without Att.cpp around.
- Implemented custom uuid function that doesn't suffer from the precision
and cyclic lack of randomness of the previous implementation.
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- New 'ids' command that returns a filtered set of task ID numbers, instead
of the actual tasks. For advanced pipeline use.
- Now supplements the command line with data read from standard input, which
allows commands like: echo 'add Pay the bills' | task