zabgrab.cli.discovery

zabgrab hosts and zabgrab items: finding what’s on a server.

zabgrab.cli.discovery.DEFAULT_LIMIT

The default --limit.

Type:

int

Functions

limit_option(function)

Add --limit to a command.

server_option(function)

Add --server (repeatable) to a command.

Classes

ItemSpecType()

An --item value.

class zabgrab.cli.discovery.ItemSpecType[source]

Bases: ParamType

An --item value.

name: str = 'item'

the descriptive name of this type

convert(value, param, ctx)[source]

Parse an item spec, failing with its error message if it’s invalid.

Parameters:
Return type:

ItemSpec

zabgrab.cli.discovery.server_option(function)[source]

Add --server (repeatable) to a command.

Parameters:

function (F)

Return type:

F

zabgrab.cli.discovery.limit_option(function)[source]

Add --limit to a command.

Parameters:

function (F)

Return type:

F