Commit graph

114 commits

Author SHA1 Message Date
Martinez
c92c0fb6e9 update .gitignore 2017-10-10 00:44:03 +02:00
Martinez
3a8ae90597 2.0 RELEASE (candidate :)
- removed old garbage
- distutils
2017-10-10 00:26:52 +02:00
Martinez
76ab4c1d32 Merge branch 'master' of git.covalent.cz:overwatch/over 2017-10-09 23:51:56 +02:00
Martinez
e9556c1fbe - Options use a more robust int callback by default (handles hex and oct digits as well)
- over.misc.hexdump extended with initial_offset
2017-10-09 23:51:38 +02:00
Martin
853e05a275 rewrote over.types.ndict to use composition instead of inheritance due to obscue issues on raspbian 2017-10-06 15:17:47 +02:00
Martin
0d1794d4b6 added over.misc.raw_to_hex and over.misc.hex_to_raw 2017-10-06 11:27:42 +02:00
Martin
73132dad6f over.misc.hexdump now accepts anything as long as it's convertible to bytes 2017-10-05 16:36:09 +02:00
Martinez
e699be5c6d handles exceptions in containment callbacks 2017-05-02 22:39:27 +02:00
Martinez
e6652b6783 adds over.file.context_dir 2017-05-02 02:39:33 +02:00
Martinez
2c99c441ca adds containment callbacks to over.app.Main 2017-05-02 02:22:06 +02:00
Martinez
d1c88b2e73 fixes a bug introduced in 8d77347f 2017-04-14 22:26:31 +02:00
Martinez
8d77347f22 eyecandy fix 2017-03-31 11:00:32 +02:00
Martinez
1e6776b853 fixes a regression introduced in 2dfa580c 2017-03-31 10:52:41 +02:00
Martinez
9a1ffccbc8 changes the behavior of over.text to not render into paragraphs when logging to files 2017-03-15 11:15:38 +01:00
Martinez
2dfa580c75 - suppresses the warning about over.type
- makes sure traceback handler doesn't cause a crash itself
2017-02-16 12:50:07 +01:00
Martinez
d0bac63fb3 - adds over.misc.update_dict
- fixes #4 over.misc.console is too hard to use
2017-02-16 11:14:16 +01:00
Martinez
8e0b27cb17 fixes #14 Minor typos 2017-02-16 10:51:36 +01:00
Martinez
33b45bde07 makes it possible to set multiple default values when Option.overwrite == False, fixes #15 2017-02-09 16:03:42 +01:00
Martinez
f1c1a12ece improves exception output some more 2017-02-09 15:40:12 +01:00
Martinez
d2c41b6670 improves exception output 2017-01-19 11:36:22 +01:00
Martinez
2a2a26977a minor UI fixes 2017-01-19 11:30:48 +01:00
Martinez
f219f45c45 minor ui fix 2016-10-21 12:08:02 +02:00
Martinez
4f7268c3e2 - fix over.text.lexical_join crashing on generators
- over.app strack tracer ui tweak
2016-10-21 12:06:33 +02:00
Martinez
93473a0c42 add over.text.Output.add_sink, little api breakage 2016-10-21 10:14:58 +02:00
Martinez
6b518e8ddc add timezone support to over.text.Output 2016-10-20 17:03:17 +02:00
Martinez
a08c85a4f3 add over.text.Output.flush 2016-10-20 16:50:08 +02:00
Martinez
3f720fc9b8 Merge branch 'distutils' of git.covalent.cz:overwatch/over into distutils 2016-10-20 16:25:36 +02:00
Martinez
d5f3470444 over.text.Output.print renamed to over.text.Output.write 2016-10-20 16:25:05 +02:00
Martinez
26cc9c9c99 fix over.misc.hexdump colors 2016-10-11 14:28:29 +02:00
Martinez
16770b209c - added a directory callback
- updated the template (fixes #11)
2016-10-10 16:52:59 +02:00
Martinez
8996bb9d04 added a list of colors to ---help 2016-10-07 15:30:22 +02:00
Martinez
b967fc12fb Merge branch 'distutils' of git.covalent.cz:overwatch/over into distutils 2016-08-07 22:56:26 +02:00
Martinez
44c47e50f0 add over.callback.strings 2016-08-07 22:48:09 +02:00
Martinez
90cb9c7d38 add command line targets to ---dump 2016-07-19 14:09:39 +02:00
Martinez
89cbc24cbb added over.app.ConfigFile.ignore_unknown 2016-05-29 09:27:25 +02:00
Martinez
b4019f31d1 docs typo fix 2016-05-19 14:03:34 +02:00
Martinez
7ae87629bf --help view displays a list of Main features and if they're used by the app (close #12) 2016-05-18 13:18:02 +02:00
Martinez
d690632ca2 generalized over.app.ConfigFile to be usable by other apps (e.g. for over-video's context storage, this closes #8 :)
options with no value return None instead of raising an exception
added a NOTE output tag to over.text.Output
2016-05-18 13:09:25 +02:00
Martinez
ed947bf8e6 New features (closes #6):
- config file selection (---config PATH)
- dump state as executable command (---dump)
- over library desciption (---help)
- finished automatic --help view

Fixes
- callbacks are called after the application's state is determined (closes #9)
- many small fixes
2016-05-18 00:40:42 +02:00
Martinez
5b983a3131 config file support is ready
- over.app.ConfigFile can read, create and amend config files
- fix over.cmd.format_invocation
- add join to over.text.paragraph
2016-05-17 20:58:53 +02:00
Martinez
17eda81ad2 over.app: add proper bool usage check 2016-05-17 16:55:14 +02:00
Martinez
2757cd8e96 Major improvements, deduplication and simplification in over.app.
- over.app.ConfigFile can create empty config files and read all options from them
- over.callback was created to hold commandline parser callbacks
- over.app.Option.is_boolean hint added
- major improvements and increased robustness of over.app.Main command line parser
2016-05-17 16:48:58 +02:00
Martinez
720dfa7b09 over.app.Main now uses a features dict instead of individual flags, closes #5 2016-05-17 09:52:26 +02:00
Martinez
123b04c2b7 fix over.app.Main.invocation state after parsing 2016-05-16 20:00:46 +02:00
Martinez
e7168e165a add test script's version.py 2016-05-16 10:51:09 +02:00
Martinez
f74e156c72 add test script 2016-05-16 10:50:44 +02:00
Martinez
5541facfd8 renamer over.app.Main.exception_handler to over.app.Main.stack_tracer 2016-05-16 00:28:43 +02:00
Martinez
d0fd7e90c5 - minor changes
- add Exception.description property support
- add a few sanity checks to over.app.Main
- added top-level stack frame display to over.app.Main.exception_handler
- the command line parser is now usable :)
2016-05-16 00:27:08 +02:00
Martinez
b30cab6926 implemented a global exception handler for over.app.Main that uses introspection and docstrings to create human-friendly stack traces
implemented most of the command line parser
expanded ANSI color palette
added over.text.char_in_str
over.text.Output removes colors if the output stream is not a tty
minor fixes and improvements
2016-05-15 22:07:38 +02:00
Martinez
5b4958e1e2 add over.text.count_leading
add indent support to over.text.Output
2016-05-15 00:28:13 +02:00