Added
- Add documentation about templating with jinja2
- Add documentation about how to import fotoobo into Python modules
- Add \_\_init\_\_ to the autodoc documentation
- Add raw option `-r` or `--raw` to cli commands for ems monitor
Changed
- Beautify `ems monitor` commands output
- Optimize the way to import fotoobo in Python modules. For example you may now do
`from fotoobo import FortiGate` instead of `from fotoobo.fortinet.fortigate import FortiGate`.
- Refactored whole code to use `pathlib.Path` instead of `os.path`
- Introduced a new `Result` class to abstract the output of the tools from the CLI print logic
and started to migrate to this class for `ems monitor`, `fgt backup` and `convert` commands to
use it.
- The inventory will now be searched relative to the `fotoobo.yaml` if given by a relative path
(instead of searching from the cwd, which can cause confusion)
- Update Sphinx to 6.2.1
Fixed
- Fix pyasn1 to 0.4.8 due to pysnmp dependency
- Fix a bug with non existing cookie path for EMS
- Fix default values for jinja2 template helper