Metabrik::Core::Context - core::context Brik
# From a Perl program use Metabrik::Core::Context; my $con = Metabrik::Core::Context->new or die("core::context"); # Or from a shell, to call a Command with a one-liner perl -MMetabrik::Core::Context -e 'Metabrik::Core::Context->new_brik_run( \ "brik::tool", "install", "lookup::iplocation")'
This Brik keeps track of everything that happens within Metabrik. That includes persistence of Perl variables and loaded Briks along with their set Attributes for instance.
This is the only Brik that is mandatory to use when writing a Tool, and it will auto-load core::log, core::global and core::shell for you. When these Briks are loaded from core::context, some global variables are set as pointers to them: $CON, $GLO, $LOG, and $SHE to point to respectively core::context, core::global, core::log and core::shell Briks.
At The Metabrik Shell, just type:
"get core::context"
"help core::context"
Metabrik
Copyright (c) 2014-2018, Patrice <GomoR> Auffret
You may distribute this module under the terms of The BSD 3-Clause License. See LICENSE file in the source distribution archive.
Patrice <GomoR> Auffret
To install Metabrik, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Metabrik
CPAN shell
perl -MCPAN -e shell install Metabrik
For more information on module installation, please visit the detailed CPAN module installation guide.