class AzuCLI::Plugins::ExternalPlugin

Overview

External plugin for loading plugins from external sources

Defined in:

azu_cli/plugins/external_plugin.cr

Constructors

Instance Method Summary

Instance methods inherited from class AzuCLI::Plugins::Base

after_command(command : Commands::Base, result : Commands::Result) after_command, before_command(command : Commands::Base, args : Array(String)) before_command, description : String description, description=(description : String) description=, disable disable, enable enable, enabled : Bool enabled, enabled=(enabled : Bool) enabled=, enabled? : Bool enabled?, info : Hash(String, String) info, name : String name, name=(name : String) name=, on_error(command : Commands::Base, error : Exception) on_error, on_load on_load, on_unload on_unload, version : String version, version=(version : String) version=

Constructor methods inherited from class AzuCLI::Plugins::Base

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

Constructor Detail

def self.new(name : String, config : Hash(String, String)) #

[View source]

Instance Method Detail

def after_command(command : Commands::Base, result : Commands::Result) #
Description copied from class AzuCLI::Plugins::Base

Called after command execution


[View source]
def before_command(command : Commands::Base, args : Array(String)) #
Description copied from class AzuCLI::Plugins::Base

Called before command execution


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

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

[View source]
def get_config(key : String, default : String = "") : String #

Get plugin configuration


[View source]
def has_config?(key : String) : Bool #

Check if plugin has specific configuration


[View source]
def on_error(command : Commands::Base, error : Exception) #
Description copied from class AzuCLI::Plugins::Base

Called when an error occurs


[View source]
def on_load #
Description copied from class AzuCLI::Plugins::Base

Called when plugin is loaded


[View source]