Plugins
This page lists the public plugin API.
For a guide-style introduction, see Plugins.
Base class
-
class InterfacyPlugin[source]
Base class for code-registered Interfacy plugins.
-
configure(_context)[source]
Configure a parser immediately after plugin registration.
-
before_parse(_context, args)[source]
Transform raw CLI arguments before backend parsing.
-
after_parse(_context, namespace)[source]
Transform the parsed namespace before it is returned.
-
transform_schema(_context, schema)[source]
Transform a fully built parser schema before backend materialization.
-
wrap_execute(_context, call_next)[source]
Wrap command execution.
-
recover_parse_failure(_context, _failure)[source]
Optionally recover from a structured parse failure.
-
property plugin_name: str
Return the unique parser-local name used for plugin registration.
Context
-
class PluginContext[source]
Stable context object passed to plugin lifecycle hooks.
Parse failure
-
class ParseFailureKind[source]
Kinds of recoverable parse failures supported by the plugin system.
-
__new__(value)
-
class ArgumentRef[source]
Stable reference to one schema argument inside a parsed command bucket.
-
class ParseFailure[source]
Structured recoverable parse failure emitted by Interfacy.
Recovery actions
-
class ProvideArgumentValues[source]
Recovery action that injects values into a partial parsed namespace.
-
class AbortRecovery[source]
Recovery action that aborts the current CLI invocation.