abstract class
AzuCLI::Plugins::Base
- AzuCLI::Plugins::Base
- Reference
- Object
Overview
Base plugin class for all Azu CLI plugins
Direct Known Subclasses
- AzuCLI::Plugins::DatabasePlugin
- AzuCLI::Plugins::DevelopmentPlugin
- AzuCLI::Plugins::ExternalPlugin
- AzuCLI::Plugins::GeneratorPlugin
Defined in:
azu_cli/plugins/base.crConstructors
Instance Method Summary
-
#after_command(command : Commands::Base, result : Commands::Result)
Called after command execution
-
#before_command(command : Commands::Base, args : Array(String))
Called before command execution
- #description : String
- #description=(description : String)
-
#disable
Disable the plugin
-
#enable
Enable the plugin
- #enabled : Bool
- #enabled=(enabled : Bool)
-
#enabled? : Bool
Check if plugin is enabled
-
#info : Hash(String, String)
Get plugin information
- #name : String
- #name=(name : String)
-
#on_error(command : Commands::Base, error : Exception)
Called when an error occurs
-
#on_load
Called when plugin is loaded
-
#on_unload
Called when plugin is unloaded
- #version : String
- #version=(version : String)
Constructor Detail
Instance Method Detail
Called after command execution
def before_command(command : Commands::Base, args : Array(String))
#
Called before command execution