Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / SL / Dev / ALL.pm
diff --git a/SL/Dev/ALL.pm b/SL/Dev/ALL.pm
new file mode 100644 (file)
index 0000000..8bf30a5
--- /dev/null
@@ -0,0 +1,55 @@
+package SL::Dev::ALL;
+
+use strict;
+
+use Exporter;
+use SL::Dev::Part;
+use SL::Dev::CustomerVendor;
+use SL::Dev::Inventory;
+use SL::Dev::Record;
+use SL::Dev::Payment;
+use SL::Dev::Shop;
+use SL::Dev::TimeRecording;
+
+sub import {
+  no strict "refs";
+  for (qw(Part CustomerVendor Inventory Record Payment Shop TimeRecording)) {
+    Exporter::export_to_level("SL::Dev::$_", 1, @_);
+  }
+}
+
+
+1;
+
+__END__
+
+=pod
+
+=head1 NAME
+
+SL::Dev::ALL: Dependency-only package for all SL::Dev::* modules
+
+=head1 SYNOPSIS
+
+  use SL::Dev::ALL;
+
+=head1 DESCRIPTION
+
+This module depends on all modules in SL/Dev/*.pm for the convenience of being
+able to write a simple C<use SL::Dev::ALL> and having everything loaded. This
+is supposed to be used only for test cases or in the kivitendo console. Normal
+modules should C<use> only the modules they actually need.
+
+To automatically include it in the console, add a line in the client section of
+the kivitendo.config, e.g.
+
+[console]
+autorun = require "bin/mozilla/common.pl";
+        = use SL::DB::Helper::ALL;
+        = use SL::Dev::ALL;
+
+=head1 AUTHOR
+
+G. Richardson E<lt>grichardson@kivitendo-premium.deE<gt>
+
+=cut