Alois Mahdal
0725f72fc4
Bump version
9 years ago
Alois Mahdal
7095b6030a
Re-align line breaks
9 years ago
Alois Mahdal
7893e61123
Add -I|--include parameter
Use this parameter to prepend directory to module search path.
9 years ago
Alois Mahdal
27353d7d58
Remove --version-* craze
If user wants to interpret the SemVer they can use one of modules
available for this purpose or do their own "cutting".
9 years ago
Alois Mahdal
b0777fc05a
Add argument to prepend dir to FFOO_PATH
to easily test out documentation for currently developed library.
9 years ago
Alois Mahdal
76b4d872f3
Bump version
9 years ago
Alois Mahdal
ed2cce0b24
Sort frontend names alphabetically
which is somehow better than "random" order.
9 years ago
Alois Mahdal
558424d62c
Reformat case engine
Use of `;&` instead of `|` yields the same behavior, but is much easier
to read if number of alternatives is longer.
9 years ago
Alois Mahdal
e83bd1e636
Re-align case engine
9 years ago
Alois Mahdal
ec5940a71e
Put think() output to STDERR as well
9 years ago
Alois Mahdal
216649eb6e
Fix usage pattern indentation
9 years ago
Alois Mahdal
5140947268
Revamp pretty.usage_is
* Re-use code provided by `-e` as function exit status.
* Default to FFOO_EXITS_USAGE, i.e. 2.
* Add -k as shorthand for `-e 0`.
* Update and enhance docstring.
9 years ago
Alois Mahdal
7d27e48c6c
Update API test after changes in tmp.sh
9 years ago
Alois Mahdal
52e400b3f7
Remove code repetition
9 years ago
Alois Mahdal
da216e6fd3
Place tempdirs under /tmp
9 years ago
Alois Mahdal
634355e07c
Join arguments back before passing to `echos()`
`echos()` is implemented using `printf` with format argument containing
one `%s` and newline. `printf` behavior is to repeat the format for
any excessive arguments, so that we may end up with multiple lines:
> $ printf -- "%s\n" 1
> 1
> $ printf -- "%s\n" 1 2
> 1
> 2
Since use of `"$@"` is often recommended as default, frontend call like
`think "args: $@"` are to be expected. This way arguments are split
automatically, however, traditional `echo` would normally join them back
to one line. It's more intuitive to have the same behavior by default.
Using `"$*"` in __echo_args results in joining all parameters back to
single line, resulting in printf calls similar to this:
> $ printf -- "%s\n" "1"
> 1
> $ printf -- "%s\n" "1 2"
> 1 2
Note that user can still use `-l` argument to switch to __echo_lines
should they really want to have each argument printed on a separate line
(but that's a different story).
9 years ago
Alois Mahdal
4751f3bb53
Fix exit codes on import failures
9 years ago
Alois Mahdal
f3f453cb7b
Skip test properly if data file is missing
9 years ago
Alois Mahdal
3fc8e340fc
Do return even in interactive (debug) mode
9 years ago
Alois Mahdal
ab9438b9c3
Exit with FFOO_EXITS_ERROR
9 years ago
Alois Mahdal
c57f0cde12
Use grey (lblack) for `think()`ing
9 years ago
Alois Mahdal
9eeafcfcdf
Update examples in docs
9 years ago
Alois Mahdal
9a0994ae52
Update register_artifact() on tmp.sh API change
9 years ago
Alois Mahdal
33028a4e07
Add function to destroy tmp safely
9 years ago
Alois Mahdal
4aeee9ffb3
Fix tmp module API
Do not touch world on importing, use explicit function for empdir
creation.
9 years ago
Alois Mahdal
9ce20eee68
Add high-level progress tracking overview
9 years ago
Alois Mahdal
93720b5fe5
Fix hash retrieval in get_version
git-describe will prefer annotated tags, git-log has much more straightforward solution
9 years ago
Alois Mahdal
b004f154a4
Uodate test according to pretty rename
9 years ago
Alois Mahdal
6decd0fef9
Update variable names in ffoo init and debug
9 years ago
Alois Mahdal
0e537853e5
Add note on name conflict when using -v from __echo frontends
9 years ago
Alois Mahdal
f535e270c1
Remove obsolete notes
9 years ago
Alois Mahdal
843775bb18
Bump version
9 years ago
Alois Mahdal
aacd6a00ac
Add support for codenames
9 years ago
Alois Mahdal
ba75f3a46d
Merge core.sh into pretty.sh
9 years ago
Alois Mahdal
fe7da66353
Rename mkpretty to pretty
Ans its internal sub-modules to _pretty_*
9 years ago
Alois Mahdal
4c8cb17bdf
Bump version
9 years ago
Alois Mahdal
b215308bba
Update API test
9 years ago
Alois Mahdal
e934e5ab99
Bump version
9 years ago
Alois Mahdal
dbc9961698
Add more thorough lister tests
Including two failing ones
9 years ago
Alois Mahdal
4a95698577
Update API test
9 years ago
Alois Mahdal
1893046bc6
Finish and re-enable listing mode acceptance tests
9 years ago
Alois Mahdal
a765c190c6
Implement listing mode
9 years ago
Alois Mahdal
4e2c23b7e8
Add debugs after parsing test/oracle metadata
9 years ago
Alois Mahdal
a37b3174ef
Fix typo in exit status variable
9 years ago
Alois Mahdal
88f1c5ce9e
Fix typo in filename
9 years ago
Alois Mahdal
53fdf2c710
Use sigils for debug
9 years ago
Alois Mahdal
91a0c466bc
Refrain from colors if stderr is a pipe or file
Generalize color codes per function and leave them empty if a "real
pipe" (i.e. pipe or file) is detected[1] on STDERR (2).
[1]: http://stackoverflow.com/questions/911168/how-to-detect-if-my-shell-script-is-running-through-a-pipe
9 years ago
Alois Mahdal
715afd10e6
Clarify purpose of `src` variable
9 years ago
Alois Mahdal
f0bbfba8cd
Use for loop instead of while
In this case it's simpler--no need to detect end case and no need to
shift, i.e. less typing/reading.
9 years ago
Alois Mahdal
f8d8041397
Use core.echos(), no need to special-case -e/-E/-N
9 years ago