From 104bdd318c29ced131a2c499722b5012873b3914 Mon Sep 17 00:00:00 2001 From: Nick Logan Date: Mon, 22 Jul 2024 19:39:59 -0500 Subject: [PATCH] Preload plugins --- lib/Zef/Build.rakumod | 4 ++++ lib/Zef/Extract.rakumod | 6 ++++++ lib/Zef/Fetch.rakumod | 6 ++++++ lib/Zef/Install.rakumod | 3 +++ lib/Zef/Report.rakumod | 3 +++ lib/Zef/Test.rakumod | 4 ++++ 6 files changed, 26 insertions(+) diff --git a/lib/Zef/Build.rakumod b/lib/Zef/Build.rakumod index b493ef8c..b4120498 100644 --- a/lib/Zef/Build.rakumod +++ b/lib/Zef/Build.rakumod @@ -1,6 +1,10 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); use Zef::Distribution:ver(Zef.^ver):api(Zef.^api):auth(Zef.^auth); +# Preload default plugins +use Zef::Service::Shell::DistributionBuilder; +use Zef::Service::Shell::LegacyBuild; + class Zef::Build does Builder does Pluggable { =begin pod diff --git a/lib/Zef/Extract.rakumod b/lib/Zef/Extract.rakumod index a092122c..946af993 100644 --- a/lib/Zef/Extract.rakumod +++ b/lib/Zef/Extract.rakumod @@ -1,6 +1,12 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); use Zef::Utils::FileSystem:ver(Zef.^ver):api(Zef.^api):auth(Zef.^auth); +# Preload default plugins +use Zef::Service::FetchPath; +use Zef::Service::Shell::git; +use Zef::Service::Shell::tar; +use Zef::Service::Shell::unzip; + class Zef::Extract does Extractor does Pluggable { =begin pod diff --git a/lib/Zef/Fetch.rakumod b/lib/Zef/Fetch.rakumod index 33bed158..b8f31977 100644 --- a/lib/Zef/Fetch.rakumod +++ b/lib/Zef/Fetch.rakumod @@ -1,6 +1,12 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); use Zef::Utils::FileSystem:ver(Zef.^ver):api(Zef.^api):auth(Zef.^auth); +# Preload default plugins +use Zef::Service::FetchPath; +use Zef::Service::Shell::curl; +use Zef::Service::Shell::git; +use Zef::Service::Shell::wget; + class Zef::Fetch does Fetcher does Pluggable { =begin pod diff --git a/lib/Zef/Install.rakumod b/lib/Zef/Install.rakumod index fe63471c..73a7420b 100644 --- a/lib/Zef/Install.rakumod +++ b/lib/Zef/Install.rakumod @@ -1,6 +1,9 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); use Zef::Distribution:ver(Zef.^ver):api(Zef.^api):auth(Zef.^auth); +# Preload default plugins +use Zef::Service::InstallRakuDistribution; + class Zef::Install does Installer does Pluggable { =begin pod diff --git a/lib/Zef/Report.rakumod b/lib/Zef/Report.rakumod index 69b47e6e..e43d54e1 100644 --- a/lib/Zef/Report.rakumod +++ b/lib/Zef/Report.rakumod @@ -1,5 +1,8 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); +# Preload default plugins +use Zef::Service::FileReporter; + class Zef::Report does Pluggable does Reporter { =begin pod diff --git a/lib/Zef/Test.rakumod b/lib/Zef/Test.rakumod index 47bbcbd0..3af0d97a 100644 --- a/lib/Zef/Test.rakumod +++ b/lib/Zef/Test.rakumod @@ -1,5 +1,9 @@ use Zef:ver($?DISTRIBUTION.meta // $?DISTRIBUTION.meta// '*'):api($?DISTRIBUTION.meta // '*'):auth($?DISTRIBUTION.meta // ''); +# Preload default plugins +use Zef::Service::Shell::Test; +use Zef::Service::TAP; + class Zef::Test does Tester does Pluggable { =begin pod