Clg

Latest version: v3.3.0

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 4

3.3.0

~~~~~~~~~~~~~~~~~~

* Allow *default* parameter of an option to be an empty list
(`3a99af3 <https://github.com/fmenabe/python-clg/commit/3a99af3>`_)
* Manage boolean values in post checks (*need*/*conflict*;
`092fbce <https://github.com/fmenabe/python-clg/commit/092fbce>`_)
* Allow to pass args to the `init` function
(`d047652 <https://github.com/fmenabe/python-clg/commit/d047652>`_)

3.2.1

~~~~~~~~~~~~~~~~~~

* Revert an uncommitted test while previously pushing the package. The test was
replacing dashes by underscores in ``execute`` module's name.

3.2.0

~~~~~~~~~~~~~~~~~~

* Add support of typing `13 <https://github.com/fmenabe/python-clg/pull/13>`__

3.1.1

~~~~~~~~~~~~~~~~~~

* Add builtin BooleanOptionalAction Action.
https://docs.python.org/3/library/argparse.html?highlight=argparse#action

3.1.0

~~~~~~~~~~~~~~~~~~

* Replace deprecated ``imp`` module withh ``importlib`` before it is dropped in
Python 3.10. `pep-0594 <https://www.python.org/dev/peps/pep-0594/#imp>`_
* Drop Python 2 support.
* Allow ``__FILE__`` builtin with the ``file`` argument to ``execute``.

3.0.0

~~~~~~~~~~~~~~~~~~~~~~

* Add an ``init`` function to the module that initialize the **CommandLine**
object and set some variables in the module namespace (this is required for
some ``clg`` plugins and simplify the usage);
`43fefa6 <https://github.com/fmenabe/python-clg/commit/43fefa6>`_).
* **Namespace** changes:

* Access to an element in the namespace now raise an exception based on the
syntax used (`AttributeError` or `KeyError`). To access an element which
may not exists, a `_get` method has been implement based on `dict.get`
(`_get(args, default=None)`).
* Arguments can be deleted
(`d37fcc7 <https://github.com/fmenabe/python-clg/commit/d37fcc7>`_).

* Allow deletion of keys in the arguments **Namespace**
(`d37fcc7 <https://github.com/fmenabe/python-clg/commit/d37fcc7>`_)
* Force escaping of percent characters in help message.
(`b8665b1 <https://github.com/fmenabe/python-clg/commit/b8665b1>`_).
* Correct and improve the ``help`` command (added by the ``add_help_cmd``
parameter):

* Correct a bug that caused the loss of commands order
(`8396042 <https://github.com/fmenabe/python-clg/commit/8396042>`_).
* The output now looks more like the output of the ``tree`` command
(`9796e82 <https://github.com/fmenabe/python-clg/commit/9796e82>`_).

* Improve ``need`` and ``conflict`` post checks for checking values
of options
(`436e670 <https://github.com/fmenabe/python-clg/commit/436e670>`_,
`b077f75 <https://github.com/fmenabe/python-clg/commit/b077f75>`_).

Page 1 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.