toys 0.15.5 → 0.16.0

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 (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -1
  3. data/README.md +2 -2
  4. data/builtins/system/test.rb +5 -4
  5. data/builtins/system/tools.rb +1 -1
  6. data/lib/toys/templates/clean.rb +1 -1
  7. data/lib/toys/templates/gem_build.rb +1 -1
  8. data/lib/toys/templates/rubocop.rb +4 -1
  9. data/lib/toys/version.rb +1 -1
  10. metadata +8 -63
  11. data/core-docs/toys/acceptor.rb +0 -474
  12. data/core-docs/toys/arg_parser.rb +0 -397
  13. data/core-docs/toys/cli.rb +0 -466
  14. data/core-docs/toys/compat.rb +0 -2
  15. data/core-docs/toys/completion.rb +0 -340
  16. data/core-docs/toys/context.rb +0 -386
  17. data/core-docs/toys/core.rb +0 -14
  18. data/core-docs/toys/dsl/base.rb +0 -56
  19. data/core-docs/toys/dsl/flag.rb +0 -284
  20. data/core-docs/toys/dsl/flag_group.rb +0 -267
  21. data/core-docs/toys/dsl/internal.rb +0 -4
  22. data/core-docs/toys/dsl/positional_arg.rb +0 -155
  23. data/core-docs/toys/dsl/tool.rb +0 -1639
  24. data/core-docs/toys/errors.rb +0 -126
  25. data/core-docs/toys/flag.rb +0 -560
  26. data/core-docs/toys/flag_group.rb +0 -186
  27. data/core-docs/toys/input_file.rb +0 -17
  28. data/core-docs/toys/loader.rb +0 -363
  29. data/core-docs/toys/middleware.rb +0 -336
  30. data/core-docs/toys/mixin.rb +0 -142
  31. data/core-docs/toys/module_lookup.rb +0 -75
  32. data/core-docs/toys/positional_arg.rb +0 -145
  33. data/core-docs/toys/settings.rb +0 -524
  34. data/core-docs/toys/source_info.rb +0 -271
  35. data/core-docs/toys/standard_middleware/add_verbosity_flags.rb +0 -49
  36. data/core-docs/toys/standard_middleware/apply_config.rb +0 -24
  37. data/core-docs/toys/standard_middleware/handle_usage_errors.rb +0 -33
  38. data/core-docs/toys/standard_middleware/set_default_descriptions.rb +0 -222
  39. data/core-docs/toys/standard_middleware/show_help.rb +0 -190
  40. data/core-docs/toys/standard_middleware/show_root_version.rb +0 -45
  41. data/core-docs/toys/standard_mixins/bundler.rb +0 -98
  42. data/core-docs/toys/standard_mixins/exec.rb +0 -711
  43. data/core-docs/toys/standard_mixins/fileutils.rb +0 -18
  44. data/core-docs/toys/standard_mixins/gems.rb +0 -62
  45. data/core-docs/toys/standard_mixins/git_cache.rb +0 -41
  46. data/core-docs/toys/standard_mixins/highline.rb +0 -133
  47. data/core-docs/toys/standard_mixins/pager.rb +0 -50
  48. data/core-docs/toys/standard_mixins/terminal.rb +0 -135
  49. data/core-docs/toys/standard_mixins/xdg.rb +0 -49
  50. data/core-docs/toys/template.rb +0 -112
  51. data/core-docs/toys/tool_definition.rb +0 -1079
  52. data/core-docs/toys/utils/completion_engine.rb +0 -49
  53. data/core-docs/toys/utils/exec.rb +0 -776
  54. data/core-docs/toys/utils/gems.rb +0 -185
  55. data/core-docs/toys/utils/git_cache.rb +0 -353
  56. data/core-docs/toys/utils/help_text.rb +0 -134
  57. data/core-docs/toys/utils/pager.rb +0 -118
  58. data/core-docs/toys/utils/standard_ui.rb +0 -184
  59. data/core-docs/toys/utils/terminal.rb +0 -310
  60. data/core-docs/toys/utils/xdg.rb +0 -253
  61. data/core-docs/toys/wrappable_string.rb +0 -132
  62. data/core-docs/toys-core.rb +0 -111
@@ -1,49 +0,0 @@
1
- module Toys
2
- module Utils
3
- ##
4
- # **_Defined in the toys-core gem_**
5
- #
6
- # Implementations of tab completion.
7
- #
8
- # This module is not loaded by default. Before using it directly, you must
9
- # `require "toys/utils/completion_engine"`
10
- #
11
- module CompletionEngine
12
- ##
13
- # **_Defined in the toys-core gem_**
14
- #
15
- # A completion engine for bash.
16
- #
17
- class Bash
18
- ##
19
- # Create a bash completion engine.
20
- #
21
- # @param cli [Toys::CLI] The CLI.
22
- #
23
- def initialize(cli)
24
- # Source available in the toys-core gem
25
- end
26
-
27
- ##
28
- # Perform completion in the current shell environment, which must
29
- # include settings for the `COMP_LINE` and `COMP_POINT` environment
30
- # variables. Prints out completion candidates, one per line, and
31
- # returns a status code indicating the result.
32
- #
33
- # * **0** for success.
34
- # * **1** if completion failed.
35
- # * **2** if the environment is incorrect (e.g. expected environment
36
- # variables not found)
37
- #
38
- # @return [Integer] status code
39
- #
40
- def run
41
- # Source available in the toys-core gem
42
- end
43
- end
44
-
45
- class << self
46
- end
47
- end
48
- end
49
- end