darg_plus.hooks

Functions and decorators that provide support for life cycle hooks.

Members

Enums

Priority
enum Priority

Defines the priority of a hook.

Functions

cleanUp
Options cleanUp(Options options)

Call this method when your program is about to stop execution to enable execution of CleanUp hooks.

processOptions
Options processOptions(Options options)

Call this method on the result of parseArgs to execute validations and validation hooks.

Structs

CleanUp
struct CleanUp

Decorate methods of the options struct to declare a hook that executes just before end of program execution.

PostValidate
struct PostValidate

Decorate methods of the options struct to declare a hook that executes after all validations.

PreValidate
struct PreValidate

Decorate methods of the options struct to declare a hook that executes before all validations.

Validate
struct Validate(alias _validate, bool isEnabled = true)

Decorate Arguments or OptionFlags to declare validation procedures. Can be used multiple times per entity.

Meta

License

Subject to the terms of the MIT license, as written in the included LICENSE file.

Authors

Arne Ludwig <arne.ludwig@posteo.de>