abstract class AzuCLI::Middleware::Base

Overview

Base middleware class for cross-cutting concerns

Direct Known Subclasses

Defined in:

azu_cli/middleware/base.cr

Instance Method Summary

Instance Method Detail

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

Called after command execution


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

Called before command execution


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

Called when an error occurs


[View source]