Peder Hovdan Andresen

Results 29 issues of Peder Hovdan Andresen

Why create a whole new report and check its artifacts, when we should just be able to do ```py return any(artifact.has_foo("...") for artifact in self.artifacts) ``` We already do this...

Frankly, the use of `__new__` on `models.ScanOverview` is both difficult to reason with and difficult to explain in the docs. https://github.com/pederhan/harborapi/blob/002ff74abc52293e924d6c91c6aaf44cb9a60dd5/harborapi/models/models.py#L260-L271 This should be changed to make it easier to...

When generating code, we don't want to _remove_ any classes, as we want to support more versions than just the most recent one. For example, if Harbor removes support for...

This PR vendors parts of the [click-contrib/click-repl](https://github.com/click-contrib/click-repl) module, and adapts it to the needs of Zabbix-CLI. Attributions and license notices are made in `zabbix_cli.repl.__init__`.

When writing the plugin guide, it occurred to me that the current API for printing messages could be improved. Instead of importing these functions: - `zabbix_cli.output.console.success` - `zabbix_cli.output.console.info` - `zabbix_cli.output.console.warning`...

enhancement

Zabbix-cli should have the ability to export and import dashboards. In cases where we want to import a dashboard containing hosts that don't exist in the system, we should prompt...

enhancement

If we can't fetch from `apiinfo.version`, it means the API is unavailable, and we should not proceed with the login flow. `zabbix_cli.pyzabbix.client.ZabbixAPI.api_version()` should also raise a more accurate exception subtype...

It is possible to create custom user roles in Zabbix. Zabbix-CLI currently has a hard time utilizing these roles, because in commands where we expect a user role argument, we...

enhancement