Commit Graph

9 Commits

Author SHA1 Message Date
92cc400fe7 [core] Refactoring IOFormats so there is one and only obvious way to send it.
This is the commit where I admit that having more than one input/output
format for readers and writers was complicating the code too much for a
very small gain, and that it would be easier to only have one way to do
it.

So such way is now:

- Returning (or yielding) a dict if you have key-value type collections.
- Returning (or yielding) a tuple if you have a list-type collection.
- Returning (or yielding) something else otherwise, which will continue
  to work like the old "arg0" format.

IOFORMAT options has been removed in favour of a RemovedOption, which
will complain if you're still trying to set it to anything else than the
one value allowed.
2017-10-15 21:37:22 +02:00
9801c75720 [settings] Better impl. of Setting class, tests for it and refactor hardcoded settings to use it. 2017-07-05 12:41:14 +02:00
5062221e78 [config] Refactoring of configurables, allowing partially configured objects.
Configurables did not allow more than one "method" option, and mixed
scenarios (options+methods+...) were sometimes flaky, forcing the user
to know what order was the right one. Now, all options work the same,
sharing the same "order" namespace.

Backward incompatible change: Options are now required by default,
unless a default is provided.

Also adds a few candies for debugging/testing, found in the
bonobo.util.inspect module.
2017-07-05 11:15:03 +02:00
1ca48d885d Refactoring and fixes around ioformats. 2017-06-08 21:47:01 +02:00
e5483de344 [core] I/O formats allowing both arg0 formating and kwargs based. Starting with 0.4, kwargs based will be default (BC break here, but needed for the greater good). 2017-06-05 11:38:11 +02:00
88d46a724d [cli] adds python logging facility configuration. 2017-05-31 22:06:08 +02:00
34aa357fd3 [misc] minor output tuning. 2017-05-25 19:49:05 +02:00
4e4a3581c9 [cli] implements bonobo run -m <module> and bonobo run <path>. Also adds --quiet option implementation and --verbose option that sets the DEBUG setting on. 2017-05-22 14:05:57 +02:00
e22f1bfb59 Settings for debug/profile and use them in console plugin. 2017-05-19 18:35:39 +02:00