|
3 | 3 | require 'lp' |
4 | 4 | end |
5 | 5 |
|
6 | | -require 'bashly/extensions/array' |
7 | | -require 'bashly/extensions/file' |
8 | | -require 'bashly/extensions/string' |
9 | | -require 'bashly/extensions/yaml' |
10 | | -require 'bashly/exceptions' |
| 6 | +require 'requires' |
| 7 | +requires 'bashly/extensions' |
| 8 | +requires 'bashly/exceptions' |
11 | 9 |
|
12 | 10 | module Bashly |
13 | | - autoload :CLI, 'bashly/cli' |
14 | | - autoload :Config, 'bashly/config' |
15 | | - autoload :ConfigValidator, 'bashly/config_validator' |
16 | | - autoload :Library, 'bashly/library' |
17 | | - autoload :LibrarySource, 'bashly/library_source' |
18 | | - autoload :LibrarySourceConfig, 'bashly/library_source_config' |
19 | | - autoload :MessageStrings, 'bashly/message_strings' |
20 | | - autoload :RenderContext, 'bashly/render_context' |
21 | | - autoload :RenderSource, 'bashly/render_source' |
22 | | - autoload :VERSION, 'bashly/version' |
| 11 | + autoloads 'bashly/refinements', %i[ComposeRefinements] |
23 | 12 |
|
24 | | - autoload :AssetHelper, 'bashly/concerns/asset_helper' |
25 | | - autoload :Completions, 'bashly/concerns/completions' |
26 | | - autoload :ComposeRefinements, 'bashly/refinements/compose_refinements' |
27 | | - autoload :Renderable, 'bashly/concerns/renderable' |
28 | | - autoload :Settings, 'bashly/settings' |
29 | | - autoload :ValidationHelpers, 'bashly/concerns/validation_helpers' |
| 13 | + autoloads 'bashly', %i[ |
| 14 | + CLI Config ConfigValidator Library LibrarySource LibrarySourceConfig |
| 15 | + MessageStrings RenderContext RenderSource Settings VERSION |
| 16 | + ] |
| 17 | + |
| 18 | + autoloads 'bashly/concerns', %i[ |
| 19 | + AssetHelper Completions Renderable ValidationHelpers |
| 20 | + ] |
30 | 21 |
|
31 | 22 | module Script |
32 | | - autoload :Argument, 'bashly/script/argument' |
33 | | - autoload :Base, 'bashly/script/base' |
34 | | - autoload :CatchAll, 'bashly/script/catch_all' |
35 | | - autoload :Command, 'bashly/script/command' |
36 | | - autoload :Dependency, 'bashly/script/dependency' |
37 | | - autoload :EnvironmentVariable, 'bashly/script/environment_variable' |
38 | | - autoload :Flag, 'bashly/script/flag' |
39 | | - autoload :Wrapper, 'bashly/script/wrapper' |
| 23 | + autoloads 'bashly/script', %i[ |
| 24 | + Argument Base CatchAll Command Dependency EnvironmentVariable Flag |
| 25 | + Wrapper |
| 26 | + ] |
40 | 27 | end |
41 | 28 |
|
42 | 29 | module Commands |
43 | | - autoload :Add, 'bashly/commands/add' |
44 | | - autoload :Base, 'bashly/commands/base' |
45 | | - autoload :Completions, 'bashly/commands/completions' |
46 | | - autoload :Doc, 'bashly/commands/doc' |
47 | | - autoload :Generate, 'bashly/commands/generate' |
48 | | - autoload :Init, 'bashly/commands/init' |
49 | | - autoload :Preview, 'bashly/commands/preview' |
50 | | - autoload :Render, 'bashly/commands/render' |
51 | | - autoload :Shell, 'bashly/commands/shell' |
52 | | - autoload :Validate, 'bashly/commands/validate' |
| 30 | + autoloads 'bashly/commands', %i[ |
| 31 | + Add Base Completions Doc Generate Init Preview Render Shell Validate |
| 32 | + ] |
53 | 33 | end |
54 | 34 |
|
55 | 35 | module Libraries |
|
0 commit comments