abstract class AzuCLI::Plugins::Base

Overview

Base plugin class for all Azu CLI plugins

Direct Known Subclasses

Defined in:

azu_cli/plugins/base.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(name : String, description : String = "", version : String = "1.0.0") #

[View source]

Instance Method Detail

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

Called after command execution


[View source]
def before_command(command : Commands::Base, args : Array(String)) #

Called before command execution


[View source]
def description : String #

[View source]
def description=(description : String) #

[View source]
def disable #

Disable the plugin


[View source]
def enable #

Enable the plugin


[View source]
def enabled : Bool #

[View source]
def enabled=(enabled : Bool) #

[View source]
def enabled? : Bool #

Check if plugin is enabled


[View source]
def info : Hash(String, String) #

Get plugin information


[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]
def on_error(command : Commands::Base, error : Exception) #

Called when an error occurs


[View source]
def on_load #

Called when plugin is loaded


[View source]
def on_unload #

Called when plugin is unloaded


[View source]
def version : String #

[View source]
def version=(version : String) #

[View source]