Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koenvervloesem committed Aug 28, 2020
1 parent 685947b commit 2a26762
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.1.0
13 changes: 12 additions & 1 deletion docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Unreleased

Commits `since last release`_:

.. _`since last release`: https://github.com/rhasspy/rhasspy-hermes-app/compare/v1.0.0...HEAD
.. _`since last release`: https://github.com/rhasspy/rhasspy-hermes-app/compare/v1.1.0...HEAD

Added
=====
Expand All @@ -42,6 +42,17 @@ Fixed
Security
========

*********************
`1.1.0`_ - 2020-08-28
*********************

.. _`1.1.0`: https://github.com/rhasspy/rhasspy-hermes-app/releases/tag/v1.1.0

Changed
=======

- Command-line arguments can now also be passed as keyword arguments to the constructor of a :class:`rhasspyhermes_app.HermesApp` object. Note that arguments on the command line have precedence. Pull request `#37 <https://github.com/rhasspy/rhasspy-hermes-app/pull/37>`_ by `@JonahKr <https://github.com/JonahKr>`_ with help from `@maxbachmann <https://github.com/maxbachmann>`_.

*********************
`1.0.0`_ - 2020-07-26
*********************
Expand Down
3 changes: 2 additions & 1 deletion docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ Try the example app `time_app.py`_ with the ``--help`` flag to see what settings
.. _`time_app.py`: https://github.com/rhasspy/rhasspy-hermes-app/blob/master/examples/time_app.py

You can pass all the settings as keyword arguments inside the constructor aswell:
:meth:`HermesApp("ExampleApp", host = "192.168.178.123", port = 12183)`
:meth:`rhasspyhermes_app.HermesApp("ExampleApp", host="192.168.178.123", port=12183)`. Note that arguments passed on the
command line have precedence over arguments passed to the constructor.

*******
Asyncio
Expand Down
4 changes: 4 additions & 0 deletions rhasspyhermes_app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ def __init__(
mqtt_client: An MQTT client. If the argument
is not specified, the object creates an MQTT client itself.
**kwargs: Other arguments. This supports the same arguments as the command-line
arguments, such has ``host`` and ``port``. Arguments specified by the user
on the command line have precedence over arguments passed as ``**kwargs``.
"""
if parser is None:
parser = argparse.ArgumentParser(prog=name)
Expand Down

0 comments on commit 2a26762

Please sign in to comment.