toys 0.17.1 → 0.17.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +3 -3
  4. data/core-docs/toys/acceptor.rb +474 -0
  5. data/core-docs/toys/arg_parser.rb +397 -0
  6. data/core-docs/toys/cli.rb +466 -0
  7. data/core-docs/toys/compat.rb +2 -0
  8. data/core-docs/toys/completion.rb +340 -0
  9. data/core-docs/toys/context.rb +386 -0
  10. data/core-docs/toys/core.rb +14 -0
  11. data/core-docs/toys/dsl/base.rb +56 -0
  12. data/core-docs/toys/dsl/flag.rb +287 -0
  13. data/core-docs/toys/dsl/flag_group.rb +270 -0
  14. data/core-docs/toys/dsl/internal.rb +4 -0
  15. data/core-docs/toys/dsl/positional_arg.rb +155 -0
  16. data/core-docs/toys/dsl/tool.rb +1663 -0
  17. data/core-docs/toys/errors.rb +126 -0
  18. data/core-docs/toys/flag.rb +563 -0
  19. data/core-docs/toys/flag_group.rb +186 -0
  20. data/core-docs/toys/input_file.rb +17 -0
  21. data/core-docs/toys/loader.rb +411 -0
  22. data/core-docs/toys/middleware.rb +336 -0
  23. data/core-docs/toys/mixin.rb +142 -0
  24. data/core-docs/toys/module_lookup.rb +75 -0
  25. data/core-docs/toys/positional_arg.rb +145 -0
  26. data/core-docs/toys/settings.rb +524 -0
  27. data/core-docs/toys/source_info.rb +321 -0
  28. data/core-docs/toys/standard_middleware/add_verbosity_flags.rb +49 -0
  29. data/core-docs/toys/standard_middleware/apply_config.rb +24 -0
  30. data/core-docs/toys/standard_middleware/handle_usage_errors.rb +33 -0
  31. data/core-docs/toys/standard_middleware/set_default_descriptions.rb +222 -0
  32. data/core-docs/toys/standard_middleware/show_help.rb +190 -0
  33. data/core-docs/toys/standard_middleware/show_root_version.rb +45 -0
  34. data/core-docs/toys/standard_mixins/bundler.rb +98 -0
  35. data/core-docs/toys/standard_mixins/exec.rb +711 -0
  36. data/core-docs/toys/standard_mixins/fileutils.rb +18 -0
  37. data/core-docs/toys/standard_mixins/gems.rb +74 -0
  38. data/core-docs/toys/standard_mixins/git_cache.rb +41 -0
  39. data/core-docs/toys/standard_mixins/highline.rb +133 -0
  40. data/core-docs/toys/standard_mixins/pager.rb +50 -0
  41. data/core-docs/toys/standard_mixins/terminal.rb +135 -0
  42. data/core-docs/toys/standard_mixins/xdg.rb +49 -0
  43. data/core-docs/toys/template.rb +112 -0
  44. data/core-docs/toys/tool_definition.rb +1080 -0
  45. data/core-docs/toys/utils/completion_engine.rb +49 -0
  46. data/core-docs/toys/utils/exec.rb +776 -0
  47. data/core-docs/toys/utils/gems.rb +185 -0
  48. data/core-docs/toys/utils/git_cache.rb +368 -0
  49. data/core-docs/toys/utils/help_text.rb +134 -0
  50. data/core-docs/toys/utils/pager.rb +118 -0
  51. data/core-docs/toys/utils/standard_ui.rb +184 -0
  52. data/core-docs/toys/utils/terminal.rb +310 -0
  53. data/core-docs/toys/utils/xdg.rb +253 -0
  54. data/core-docs/toys/wrappable_string.rb +132 -0
  55. data/core-docs/toys-core.rb +111 -0
  56. data/lib/toys/version.rb +1 -1
  57. metadata +57 -5
@@ -0,0 +1,186 @@
1
+ module Toys
2
+ ##
3
+ # **_Defined in the toys-core gem_**
4
+ #
5
+ # A FlagGroup is a group of flags with the same requirement settings.
6
+ #
7
+ module FlagGroup
8
+ ##
9
+ # Create a flag group object of the given type.
10
+ #
11
+ # The type should be one of the following symbols:
12
+ # * `:optional` All flags in the group are optional
13
+ # * `:required` All flags in the group are required
14
+ # * `:exactly_one` Exactly one flag in the group must be provided
15
+ # * `:at_least_one` At least one flag in the group must be provided
16
+ # * `:at_most_one` At most one flag in the group must be provided
17
+ #
18
+ # @param type [Symbol] The type of group. Default is `:optional`.
19
+ # @param desc [String,Array<String>,Toys::WrappableString] Short
20
+ # description for the group. See {Toys::ToolDefinition#desc} for a
21
+ # description of allowed formats. Defaults to `"Flags"`.
22
+ # @param long_desc [Array<String,Array<String>,Toys::WrappableString>]
23
+ # Long description for the flag group. See
24
+ # {Toys::ToolDefinition#long_desc} for a description of allowed
25
+ # formats. Defaults to the empty array.
26
+ # @param name [String,Symbol,nil] The name of the group, or nil for no
27
+ # name.
28
+ # @return [Toys::FlagGroup::Base] A flag group of the correct subclass.
29
+ #
30
+ def self.create(type: nil, name: nil, desc: nil, long_desc: nil)
31
+ # Source available in the toys-core gem
32
+ end
33
+
34
+ ##
35
+ # **_Defined in the toys-core gem_**
36
+ #
37
+ # The base class of a FlagGroup, implementing everything except validation.
38
+ # The base class effectively behaves as an Optional group. And the default
39
+ # group that contains flags not otherwise assigned to a group, is of this
40
+ # type. However, you should use {Toys::FlagGroup::Optional} when creating
41
+ # an explicit optional group.
42
+ #
43
+ class Base
44
+ ##
45
+ # The symbolic name for this group
46
+ # @return [String,Symbol,nil]
47
+ #
48
+ attr_reader :name
49
+
50
+ ##
51
+ # The short description string.
52
+ #
53
+ # When reading, this is always returned as a {Toys::WrappableString}.
54
+ #
55
+ # When setting, the description may be provided as any of the following:
56
+ # * A {Toys::WrappableString}.
57
+ # * A normal String, which will be transformed into a
58
+ # {Toys::WrappableString} using spaces as word delimiters.
59
+ # * An Array of String, which will be transformed into a
60
+ # {Toys::WrappableString} where each array element represents an
61
+ # individual word for wrapping.
62
+ #
63
+ # @return [Toys::WrappableString]
64
+ #
65
+ attr_reader :desc
66
+
67
+ ##
68
+ # The long description strings.
69
+ #
70
+ # When reading, this is returned as an Array of {Toys::WrappableString}
71
+ # representing the lines in the description.
72
+ #
73
+ # When setting, the description must be provided as an Array where *each
74
+ # element* may be any of the following:
75
+ # * A {Toys::WrappableString} representing one line.
76
+ # * A normal String representing a line. This will be transformed into
77
+ # a {Toys::WrappableString} using spaces as word delimiters.
78
+ # * An Array of String representing a line. This will be transformed
79
+ # into a {Toys::WrappableString} where each array element represents
80
+ # an individual word for wrapping.
81
+ #
82
+ # @return [Array<Toys::WrappableString>]
83
+ #
84
+ attr_reader :long_desc
85
+
86
+ ##
87
+ # An array of flags that are in this group.
88
+ # Do not modify the returned array.
89
+ # @return [Array<Toys::Flag>]
90
+ #
91
+ attr_reader :flags
92
+
93
+ ##
94
+ # Returns true if this group is empty
95
+ # @return [Boolean]
96
+ #
97
+ def empty?
98
+ # Source available in the toys-core gem
99
+ end
100
+
101
+ ##
102
+ # Returns a string summarizing this group. This is generally either the
103
+ # short description or a representation of all the flags included.
104
+ # @return [String]
105
+ #
106
+ def summary
107
+ # Source available in the toys-core gem
108
+ end
109
+
110
+ ##
111
+ # Set the short description string.
112
+ #
113
+ # See {#desc} for details.
114
+ #
115
+ # @param desc [Toys::WrappableString,String,Array<String>]
116
+ #
117
+ def desc=(desc)
118
+ # Source available in the toys-core gem
119
+ end
120
+
121
+ ##
122
+ # Set the long description strings.
123
+ #
124
+ # See {#long_desc} for details.
125
+ #
126
+ # @param long_desc [Array<Toys::WrappableString,String,Array<String>>]
127
+ #
128
+ def long_desc=(long_desc)
129
+ # Source available in the toys-core gem
130
+ end
131
+
132
+ ##
133
+ # Append long description strings.
134
+ #
135
+ # You must pass an array of lines in the long description. See {#long_desc}
136
+ # for details on how each line may be represented.
137
+ #
138
+ # @param long_desc [Array<Toys::WrappableString,String,Array<String>>]
139
+ # @return [self]
140
+ #
141
+ def append_long_desc(long_desc)
142
+ # Source available in the toys-core gem
143
+ end
144
+ end
145
+
146
+ ##
147
+ # **_Defined in the toys-core gem_**
148
+ #
149
+ # A FlagGroup containing all required flags
150
+ #
151
+ class Required < Base
152
+ end
153
+
154
+ ##
155
+ # **_Defined in the toys-core gem_**
156
+ #
157
+ # A FlagGroup containing all optional flags
158
+ #
159
+ class Optional < Base
160
+ end
161
+
162
+ ##
163
+ # **_Defined in the toys-core gem_**
164
+ #
165
+ # A FlagGroup in which exactly one flag must be set
166
+ #
167
+ class ExactlyOne < Base
168
+ end
169
+
170
+ ##
171
+ # **_Defined in the toys-core gem_**
172
+ #
173
+ # A FlagGroup in which at most one flag must be set
174
+ #
175
+ class AtMostOne < Base
176
+ end
177
+
178
+ ##
179
+ # **_Defined in the toys-core gem_**
180
+ #
181
+ # A FlagGroup in which at least one flag must be set
182
+ #
183
+ class AtLeastOne < Base
184
+ end
185
+ end
186
+ end
@@ -0,0 +1,17 @@
1
+ ##
2
+ # **_Defined in the toys-core gem_**
3
+ #
4
+ # This module is the root namespace for tool definitions loaded from files.
5
+ # Whenever a toys configuration file is parsed, a module is created under this
6
+ # parent for that file's contents. Tool classes defined in that file, along
7
+ # with mixins and templates, and any other classes, modules, and constants
8
+ # defined, are located within that file's module.
9
+ #
10
+ module Toys::InputFile # rubocop:disable Style/ClassAndModuleChildren
11
+ ##
12
+ # @private This interface is internal and subject to change without warning.
13
+ #
14
+ def self.evaluate(tool_class, words, priority, remaining_words, source, loader)
15
+ # Source available in the toys-core gem
16
+ end
17
+ end
@@ -0,0 +1,411 @@
1
+ module Toys
2
+ ##
3
+ # **_Defined in the toys-core gem_**
4
+ #
5
+ # The Loader service loads tools from configuration files, and finds the
6
+ # appropriate tool given a set of command line arguments.
7
+ #
8
+ class Loader
9
+ ##
10
+ # Create a Loader
11
+ #
12
+ # @param index_file_name [String,nil] A file with this name that appears
13
+ # in any configuration directory (not just a toplevel directory) is
14
+ # loaded first as a standalone configuration file. If not provided,
15
+ # standalone configuration files are disabled.
16
+ # @param preload_file_name [String,nil] A file with this name that appears
17
+ # in any configuration directory is preloaded before any tools in that
18
+ # configuration directory are defined.
19
+ # @param preload_dir_name [String,nil] A directory with this name that
20
+ # appears in any configuration directory is searched for Ruby files,
21
+ # which are preloaded before any tools in that configuration directory
22
+ # are defined.
23
+ # @param data_dir_name [String,nil] A directory with this name that appears
24
+ # in any configuration directory is added to the data directory search
25
+ # path for any tool file in that directory.
26
+ # @param lib_dir_name [String,nil] A directory with this name that appears
27
+ # in any configuration directory is added to the Ruby load path for any
28
+ # tool file in that directory.
29
+ # @param middleware_stack [Array<Toys::Middleware::Spec>] An array of
30
+ # middleware that will be used by default for all tools loaded by this
31
+ # loader.
32
+ # @param extra_delimiters [String] A string containing characters that can
33
+ # function as delimiters in a tool name. Defaults to empty. Allowed
34
+ # characters are period, colon, and slash.
35
+ # @param mixin_lookup [Toys::ModuleLookup] A lookup for well-known
36
+ # mixin modules. Defaults to an empty lookup.
37
+ # @param middleware_lookup [Toys::ModuleLookup] A lookup for
38
+ # well-known middleware classes. Defaults to an empty lookup.
39
+ # @param template_lookup [Toys::ModuleLookup] A lookup for
40
+ # well-known template classes. Defaults to an empty lookup.
41
+ #
42
+ def initialize(index_file_name: nil,
43
+ preload_dir_name: nil,
44
+ preload_file_name: nil,
45
+ data_dir_name: nil,
46
+ lib_dir_name: nil,
47
+ middleware_stack: [],
48
+ extra_delimiters: "",
49
+ mixin_lookup: nil,
50
+ middleware_lookup: nil,
51
+ template_lookup: nil,
52
+ git_cache: nil,
53
+ gems_util: nil)
54
+ # Source available in the toys-core gem
55
+ end
56
+
57
+ ##
58
+ # Add a configuration file/directory to the loader.
59
+ #
60
+ # @param path [String] A single path to add.
61
+ # @param high_priority [Boolean] If true, add this path at the top of the
62
+ # priority list. Defaults to false, indicating the new path should be
63
+ # at the bottom of the priority list.
64
+ # @param source_name [String] A custom name for the root source. Optional.
65
+ # @param context_directory [String,nil,:path,:parent] The context directory
66
+ # for tools loaded from this path. You can pass a directory path as a
67
+ # string, `:path` to denote the given path, `:parent` to denote the
68
+ # given path's parent directory, or `nil` to denote no context.
69
+ # Defaults to `:parent`.
70
+ # @return [self]
71
+ #
72
+ def add_path(path,
73
+ high_priority: false,
74
+ source_name: nil,
75
+ context_directory: :parent)
76
+ # Source available in the toys-core gem
77
+ end
78
+
79
+ ##
80
+ # Add a set of configuration files/directories from a common directory to
81
+ # the loader. The set of paths will be added at the same priority level and
82
+ # will share a root.
83
+ #
84
+ # @param root_path [String] A root path to be seen as the root source. This
85
+ # should generally be a directory containing the paths to add.
86
+ # @param relative_paths [String,Array<String>] One or more paths to add, as
87
+ # relative paths from the common root.
88
+ # @param high_priority [Boolean] If true, add the paths at the top of the
89
+ # priority list. Defaults to false, indicating the new paths should be
90
+ # at the bottom of the priority list.
91
+ # @param context_directory [String,nil,:path,:parent] The context directory
92
+ # for tools loaded from this path. You can pass a directory path as a
93
+ # string, `:path` to denote the given root path, `:parent` to denote
94
+ # the given root path's parent directory, or `nil` to denote no context.
95
+ # Defaults to `:path`.
96
+ # @return [self]
97
+ #
98
+ def add_path_set(root_path, relative_paths,
99
+ high_priority: false,
100
+ context_directory: :path)
101
+ # Source available in the toys-core gem
102
+ end
103
+
104
+ ##
105
+ # Add a configuration block to the loader.
106
+ #
107
+ # @param high_priority [Boolean] If true, add this block at the top of the
108
+ # priority list. Defaults to false, indicating the block should be at
109
+ # the bottom of the priority list.
110
+ # @param source_name [String] The source name that will be shown in
111
+ # documentation for tools defined in this block. If omitted, a default
112
+ # unique string will be generated.
113
+ # @param block [Proc] The block of configuration, executed in the context
114
+ # of the tool DSL {Toys::DSL::Tool}.
115
+ # @param context_directory [String,nil] The context directory for tools
116
+ # loaded from this block. You can pass a directory path as a string, or
117
+ # `nil` to denote no context. Defaults to `nil`.
118
+ # @return [self]
119
+ #
120
+ def add_block(high_priority: false,
121
+ source_name: nil,
122
+ context_directory: nil,
123
+ &block)
124
+ # Source available in the toys-core gem
125
+ end
126
+
127
+ ##
128
+ # Add a configuration git source to the loader.
129
+ #
130
+ # @param git_remote [String] The git repo URL
131
+ # @param git_path [String] The path to the relevant file or directory in
132
+ # the repo. Specify the empty string to use the entire repo.
133
+ # @param git_commit [String] The git ref (i.e. SHA, tag, or branch name)
134
+ # @param high_priority [Boolean] If true, add this path at the top of the
135
+ # priority list. Defaults to false, indicating the new path should be
136
+ # at the bottom of the priority list.
137
+ # @param update [Boolean] If the commit is not a SHA, pulls any updates
138
+ # from the remote. Defaults to false, which uses a local cache and does
139
+ # not update if the commit has been fetched previously.
140
+ # @param context_directory [String,nil] The context directory for tools
141
+ # loaded from this source. You can pass a directory path as a string,
142
+ # or `nil` to denote no context. Defaults to `nil`.
143
+ # @return [self]
144
+ #
145
+ def add_git(git_remote, git_path, git_commit,
146
+ high_priority: false,
147
+ update: false,
148
+ context_directory: nil)
149
+ # Source available in the toys-core gem
150
+ end
151
+
152
+ ##
153
+ # Add a configuration gem source to the loader.
154
+ #
155
+ # @param gem_name [String] The name of the gem
156
+ # @param gem_version [String,Array<String>] The version requirements
157
+ # @param gem_path [String] The path from the gem's toys directory to the
158
+ # relevant file or directory. Specify the empty string to use the
159
+ # entire toys directory.
160
+ # @param high_priority [Boolean] If true, add this path at the top of the
161
+ # priority list. Defaults to false, indicating the new path should be
162
+ # at the bottom of the priority list.
163
+ # @param gem_toys_dir [String] The name of the toys directory. Optional.
164
+ # Defaults to the directory specified in the gem's metadata, or the
165
+ # value "toys".
166
+ # @param context_directory [String,nil] The context directory for tools
167
+ # loaded from this source. You can pass a directory path as a string,
168
+ # or `nil` to denote no context. Defaults to `nil`.
169
+ # @return [self]
170
+ #
171
+ def add_gem(gem_name, gem_version, gem_path,
172
+ high_priority: false,
173
+ gem_toys_dir: nil,
174
+ context_directory: nil)
175
+ # Source available in the toys-core gem
176
+ end
177
+
178
+ ##
179
+ # Given a list of command line arguments, find the appropriate tool to
180
+ # handle the command, loading it from the configuration if necessary.
181
+ # This always returns a tool. If the specific tool path is not defined and
182
+ # cannot be found in any configuration, it finds the nearest namespace that
183
+ # *would* contain that tool, up to the root tool.
184
+ #
185
+ # Returns a tuple of the found tool, and the array of remaining arguments
186
+ # that are not part of the tool name and should be passed as tool args.
187
+ #
188
+ # @param args [Array<String>] Command line arguments
189
+ # @return [Array(Toys::ToolDefinition,Array<String>)]
190
+ #
191
+ def lookup(args)
192
+ # Source available in the toys-core gem
193
+ end
194
+
195
+ ##
196
+ # Given a tool name, looks up the specific tool, loading it from the
197
+ # configuration if necessary.
198
+ #
199
+ # If there is an active tool, returns it; otherwise, returns the highest
200
+ # priority tool that has been defined. If no tool has been defined with
201
+ # the given name, returns `nil`.
202
+ #
203
+ # @param words [Array<String>] The tool name
204
+ # @return [Toys::ToolDefinition] if the tool was found
205
+ # @return [nil] if no such tool exists
206
+ #
207
+ def lookup_specific(words)
208
+ # Source available in the toys-core gem
209
+ end
210
+
211
+ ##
212
+ # Returns a list of subtools for the given path, loading from the
213
+ # configuration if necessary. The list will be sorted by name.
214
+ #
215
+ # @param words [Array<String>] The name of the parent tool
216
+ # @param recursive [Boolean] If true, return all subtools recursively
217
+ # rather than just the immediate children (the default)
218
+ # @param include_hidden [Boolean] If true, include hidden subtools,
219
+ # i.e. names beginning with underscores. Defaults to false.
220
+ # @param include_namespaces [Boolean] If true, include namespaces,
221
+ # i.e. tools that are not runnable but have descendents that would have
222
+ # been listed by the current filters. Defaults to false.
223
+ # @param include_non_runnable [Boolean] If true, include tools that have
224
+ # no children and are not runnable. Defaults to false.
225
+ # @return [Array<Toys::ToolDefinition>] An array of subtools.
226
+ #
227
+ def list_subtools(words,
228
+ recursive: false,
229
+ include_hidden: false,
230
+ include_namespaces: false,
231
+ include_non_runnable: false)
232
+ # Source available in the toys-core gem
233
+ end
234
+
235
+ ##
236
+ # Returns true if the given path has at least one subtool, even if they are
237
+ # hidden or non-runnable. Loads from the configuration if necessary.
238
+ #
239
+ # @param words [Array<String>] The name of the parent tool
240
+ # @return [Boolean]
241
+ #
242
+ def has_subtools?(words)
243
+ # Source available in the toys-core gem
244
+ end
245
+
246
+ ##
247
+ # Splits the given path using the delimiters configured in this Loader.
248
+ # You may pass in either an array of strings, or a single string possibly
249
+ # delimited by path separators. Always returns an array of strings.
250
+ #
251
+ # @param str [String,Symbol,Array<String,Symbol>] The path to split.
252
+ # @return [Array<String>]
253
+ #
254
+ def split_path(str)
255
+ # Source available in the toys-core gem
256
+ end
257
+
258
+ #### INTERNAL METHODS ####
259
+
260
+ ##
261
+ # Get or create the tool definition for the given name and priority.
262
+ #
263
+ # @private This interface is internal and subject to change without warning.
264
+ #
265
+ def get_tool(words, priority, tool_class = nil)
266
+ # Source available in the toys-core gem
267
+ end
268
+
269
+ ##
270
+ # Returns the active tool specified by the given words, with the given
271
+ # priority, without doing any loading. If the given priority matches the
272
+ # currently active tool, returns it. If the given priority is lower than
273
+ # the active priority, returns `nil`. If the given priority is higher than
274
+ # the active priority, returns and activates a new tool.
275
+ #
276
+ # @private This interface is internal and subject to change without warning.
277
+ #
278
+ def activate_tool(words, priority)
279
+ # Source available in the toys-core gem
280
+ end
281
+
282
+ ##
283
+ # Returns true if the given tool name currently exists in the loader.
284
+ # Does not load the tool if not found.
285
+ #
286
+ # @private This interface is internal and subject to change without warning.
287
+ #
288
+ def tool_defined?(words)
289
+ # Source available in the toys-core gem
290
+ end
291
+
292
+ ##
293
+ # Build a new tool.
294
+ # Called only from ToolData.
295
+ #
296
+ # @private This interface is internal and subject to change without warning.
297
+ #
298
+ def build_tool(words, priority, tool_class = nil)
299
+ # Source available in the toys-core gem
300
+ end
301
+
302
+ ##
303
+ # Stop search at the given priority. Returns true if successful.
304
+ # Called only from the DSL.
305
+ #
306
+ # @private This interface is internal and subject to change without warning.
307
+ #
308
+ def stop_loading_at_priority(priority)
309
+ # Source available in the toys-core gem
310
+ end
311
+
312
+ ##
313
+ # Loads the subtree under the given prefix.
314
+ #
315
+ # @private This interface is internal and subject to change without warning.
316
+ #
317
+ def load_for_prefix(prefix)
318
+ # Source available in the toys-core gem
319
+ end
320
+
321
+ ##
322
+ # Attempt to get a well-known mixin module for the given symbolic name.
323
+ #
324
+ # @private This interface is internal and subject to change without warning.
325
+ #
326
+ def resolve_standard_mixin(name)
327
+ # Source available in the toys-core gem
328
+ end
329
+
330
+ ##
331
+ # Attempt to get a well-known template class for the given symbolic name.
332
+ #
333
+ # @private This interface is internal and subject to change without warning.
334
+ #
335
+ def resolve_standard_template(name)
336
+ # Source available in the toys-core gem
337
+ end
338
+
339
+ ##
340
+ # Load configuration from the given path. This is called from the `load`
341
+ # directive in the DSL.
342
+ #
343
+ # @private This interface is internal and subject to change without warning.
344
+ #
345
+ def load_path(parent_source, path, words, remaining_words, priority)
346
+ # Source available in the toys-core gem
347
+ end
348
+
349
+ ##
350
+ # Load configuration from the given git remote. This is called from the
351
+ # `load_git` directive in the DSL.
352
+ #
353
+ # @private This interface is internal and subject to change without warning.
354
+ #
355
+ def load_git(parent_source, git_remote, git_path, git_commit, update,
356
+ words, remaining_words, priority)
357
+ # Source available in the toys-core gem
358
+ end
359
+
360
+ ##
361
+ # Load configuration from the given gem. This is called from the `load_gem`
362
+ # directive in the DSL.
363
+ #
364
+ # @private This interface is internal and subject to change without warning.
365
+ #
366
+ def load_gem(parent_source, gem_name, gem_version, gem_toys_dir, gem_path,
367
+ words, remaining_words, priority)
368
+ # Source available in the toys-core gem
369
+ end
370
+
371
+ ##
372
+ # Load a subtool block. Called from the `tool` directive in the DSL.
373
+ #
374
+ # @private This interface is internal and subject to change without warning.
375
+ #
376
+ def load_block(parent_source, block, words, remaining_words, priority)
377
+ # Source available in the toys-core gem
378
+ end
379
+
380
+ @git_cache_mutex = ::Mutex.new
381
+ @default_git_cache = nil
382
+ @default_gems_util = nil
383
+
384
+ ##
385
+ # Get a global default GitCache.
386
+ #
387
+ # @private This interface is internal and subject to change without warning.
388
+ #
389
+ def self.default_git_cache
390
+ # Source available in the toys-core gem
391
+ end
392
+
393
+ ##
394
+ # Get a global default Gems utility.
395
+ #
396
+ # @private This interface is internal and subject to change without warning.
397
+ #
398
+ def self.default_gems_util
399
+ # Source available in the toys-core gem
400
+ end
401
+
402
+ ##
403
+ # Determine the next setting for remaining_words, given a word.
404
+ #
405
+ # @private This interface is internal and subject to change without warning.
406
+ #
407
+ def self.next_remaining_words(remaining_words, word)
408
+ # Source available in the toys-core gem
409
+ end
410
+ end
411
+ end