class

AzuCLI::Plugins::Base

Inherits Reference < Object

Base plugin class for all Azu CLI plugins

Constructors

new(name : String, description : String = "", version : String = "1.0.0")
Source

Instance methods

after_command(command : Commands::Base, result : Commands::Result)

Called after command execution

Source
before_command(command : Commands::Base, args : Array(String))

Called before command execution

Source
description
Source
description=(description : String)
Source
disable

Disable the plugin

Source
enable

Enable the plugin

Source
enabled
Source
enabled=(enabled : Bool)
Source
enabled?

Check if plugin is enabled

Source
info

Get plugin information

Source
name
Source
name=(name : String)
Source
on_error(command : Commands::Base, error : Exception)

Called when an error occurs

Source
on_load

Called when plugin is loaded

Source
on_unload

Called when plugin is unloaded

Source
version
Source
version=(version : String)
Source