wile 0.9.261203

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 (131) hide show
  1. checksums.yaml +7 -0
  2. data/.version +1 -0
  3. data/CREDITS.md +20 -0
  4. data/README.md +253 -0
  5. data/bin/wile +102 -0
  6. data/cache/.bin/pane +99 -0
  7. data/cache/.bin/panes +54 -0
  8. data/cache/.config.fish +2 -0
  9. data/cache/.dictionary +0 -0
  10. data/cache/.gemignore +16 -0
  11. data/cache/.gitignore +9 -0
  12. data/cache/.greeting.erb +1 -0
  13. data/cache/.irbrc +30 -0
  14. data/cache/.lexicon +0 -0
  15. data/cache/.prompt.erb +1 -0
  16. data/cache/.reek-strict.yml +1 -0
  17. data/cache/.reek.yml +1 -0
  18. data/cache/.rubocop-strict.yml +4 -0
  19. data/cache/.rubocop.yml +4 -0
  20. data/cache/.ruby-version-floor +1 -0
  21. data/cache/.ruby-version.erb +1 -0
  22. data/cache/.solargraph.yml +21 -0
  23. data/cache/.title.erb +1 -0
  24. data/cache/.version +1 -0
  25. data/cache/.wile/example.rb +56 -0
  26. data/cache/.wileignore +3 -0
  27. data/cache/CREDITS.md +10 -0
  28. data/cache/Gemfile +5 -0
  29. data/cache/Gemfile.lock +1 -0
  30. data/cache/History.txt +0 -0
  31. data/cache/README.md.erb +54 -0
  32. data/cache/TODO.md +3 -0
  33. data/cache/bin/project.erb +12 -0
  34. data/cache/cucumber.yml +1 -0
  35. data/cache/examples/README.md +3 -0
  36. data/cache/features/help.feature.erb +30 -0
  37. data/cache/features/step_definitions/command_steps.rb +171 -0
  38. data/cache/features/support/env.rb +11 -0
  39. data/cache/features/version.feature.erb +19 -0
  40. data/cache/git/hooks/pre-commit +93 -0
  41. data/cache/lib/project.rb.erb +4 -0
  42. data/cache/man/project.md.erb +24 -0
  43. data/cache/pkg/README.md +3 -0
  44. data/cache/test/cons.gz +0 -0
  45. data/cache/test/tc_comments +216 -0
  46. data/cache/test/tc_cucumber_slow +67 -0
  47. data/cache/test/tc_dependency_scrapes +126 -0
  48. data/cache/test/tc_dictionary +51 -0
  49. data/cache/test/tc_encoding +53 -0
  50. data/cache/test/tc_lexicon +34 -0
  51. data/cache/test/tc_lib_tests +37 -0
  52. data/cache/test/tc_lints +71 -0
  53. data/cache/test/tc_readme_rocket_check +128 -0
  54. data/cache/test/tc_reek +20 -0
  55. data/cache/test/tc_rubocop +20 -0
  56. data/cache/test/tc_ruby_syntax +28 -0
  57. data/cache/test/tc_tags +32 -0
  58. data/cache/test/tc_tasks_test +31 -0
  59. data/cache/test/tc_version +97 -0
  60. data/cache/test/tc_weird_filenames +23 -0
  61. data/cache/test/test_helper.rb +230 -0
  62. data/cache/tmp/README.md +8 -0
  63. data/data/command_version.tsv +281 -0
  64. data/dependencies.txt +70 -0
  65. data/lib/wile/autoloads/cache.rb +123 -0
  66. data/lib/wile/autoloads/code_content.rb +225 -0
  67. data/lib/wile/autoloads/code_data.rb +153 -0
  68. data/lib/wile/autoloads/code_data_function.rb +79 -0
  69. data/lib/wile/autoloads/code_data_valuation.rb +60 -0
  70. data/lib/wile/autoloads/code_stats.rb +185 -0
  71. data/lib/wile/autoloads/command_version.rb +119 -0
  72. data/lib/wile/autoloads/content.rb +196 -0
  73. data/lib/wile/autoloads/dependencies.rb +170 -0
  74. data/lib/wile/autoloads/gem_utils.rb +69 -0
  75. data/lib/wile/autoloads/gemspec.rb +163 -0
  76. data/lib/wile/autoloads/git.rb +59 -0
  77. data/lib/wile/autoloads/info.rb +91 -0
  78. data/lib/wile/autoloads/manpage.rb +44 -0
  79. data/lib/wile/autoloads/methods.rb +130 -0
  80. data/lib/wile/autoloads/nvim_files.rb +54 -0
  81. data/lib/wile/autoloads/options_dictionary.rb +345 -0
  82. data/lib/wile/autoloads/order_optimizer.rb +185 -0
  83. data/lib/wile/autoloads/project.rb +60 -0
  84. data/lib/wile/autoloads/readme.rb +137 -0
  85. data/lib/wile/autoloads/receivers.rb +101 -0
  86. data/lib/wile/autoloads/responds.rb +36 -0
  87. data/lib/wile/autoloads/test.rb +78 -0
  88. data/lib/wile/autoloads/thread_pool.rb +64 -0
  89. data/lib/wile/help.rb +41 -0
  90. data/lib/wile/requires.rb +7 -0
  91. data/lib/wile/run.rb +108 -0
  92. data/lib/wile/sysexits.rb +43 -0
  93. data/lib/wile/tasks/build.rb +46 -0
  94. data/lib/wile/tasks/bump.rb +61 -0
  95. data/lib/wile/tasks/compare.rb +139 -0
  96. data/lib/wile/tasks/content.rb +44 -0
  97. data/lib/wile/tasks/cp.rb +52 -0
  98. data/lib/wile/tasks/dependencies.rb +58 -0
  99. data/lib/wile/tasks/dictionary.rb +59 -0
  100. data/lib/wile/tasks/gemcheck.rb +142 -0
  101. data/lib/wile/tasks/gemfile.rb +60 -0
  102. data/lib/wile/tasks/help.rb +29 -0
  103. data/lib/wile/tasks/info.rb +77 -0
  104. data/lib/wile/tasks/install.rb +53 -0
  105. data/lib/wile/tasks/lexicon.rb +59 -0
  106. data/lib/wile/tasks/list.rb +97 -0
  107. data/lib/wile/tasks/methods.rb +154 -0
  108. data/lib/wile/tasks/mkdir.rb +19 -0
  109. data/lib/wile/tasks/note.rb +49 -0
  110. data/lib/wile/tasks/nvim.rb +60 -0
  111. data/lib/wile/tasks/order.rb +93 -0
  112. data/lib/wile/tasks/oscheck.rb +49 -0
  113. data/lib/wile/tasks/publish.rb +67 -0
  114. data/lib/wile/tasks/receivers.rb +34 -0
  115. data/lib/wile/tasks/review.rb +157 -0
  116. data/lib/wile/tasks/ruby.rb +38 -0
  117. data/lib/wile/tasks/tc.rb +114 -0
  118. data/lib/wile/tasks/test.rb +57 -0
  119. data/lib/wile/tasks/todo.rb +55 -0
  120. data/lib/wile/tasks/update.rb +67 -0
  121. data/lib/wile/tasks.rb +34 -0
  122. data/lib/wile/usage.rb +56 -0
  123. data/lib/wile/usage_error.rb +18 -0
  124. data/lib/wile/utilities.rb +283 -0
  125. data/lib/wile/utilities_refinements.rb +41 -0
  126. data/lib/wile/wile_refinements.rb +137 -0
  127. data/lib/wile.rb +39 -0
  128. data/man/wile.1 +1121 -0
  129. data/man/wile.md +786 -0
  130. data/pkg/README.md +3 -0
  131. metadata +399 -0
data/man/wile.1 ADDED
@@ -0,0 +1,1121 @@
1
+ .\" Automatically generated by Pandoc 2.17.1.1
2
+ .\"
3
+ .\" Define V font for inline verbatim, using C font in formats
4
+ .\" that render this, and otherwise B font.
5
+ .ie "\f[CB]x\f[]"x" \{\
6
+ . ftr V B
7
+ . ftr VI BI
8
+ . ftr VB B
9
+ . ftr VBI BI
10
+ .\}
11
+ .el \{\
12
+ . ftr V CR
13
+ . ftr VI CI
14
+ . ftr VB CB
15
+ . ftr VBI CBI
16
+ .\}
17
+ .TH "WILE" "1" "December 2026" "wile 0.9.261203" "User Commands"
18
+ .hy
19
+ .SH NAME
20
+ .PP
21
+ wile \[en] prescriptive task dispatcher for Ruby gem projects
22
+ .SH SYNOPSIS
23
+ .PP
24
+ \f[V]wile [<task>] [<args>...] [:<options>...]\f[R]
25
+ .PP
26
+ \f[V]wile <options>...\f[R]
27
+ .SH DESCRIPTION
28
+ .PP
29
+ \f[B]Wile\f[R] is a prescriptive task dispatcher for Ruby gem projects,
30
+ built around a living project template.
31
+ .PP
32
+ It scaffolds new projects from the template, keeps existing ones aligned
33
+ with it, and automates workflow steps \[en] gemspec upkeep, testing, and
34
+ release.
35
+ .SH GET STARTED
36
+ .IP \[bu] 2
37
+ \f[V]wile\f[R]: Display manual page.
38
+ .IP \[bu] 2
39
+ \f[V]wile <options>...\f[R]: Query options dictionary for flag details.
40
+ .IP \[bu] 2
41
+ \f[V]wile list\f[R]: List all available tasks.
42
+ .IP \[bu] 2
43
+ \f[V]wile help [<task>]\f[R]: Show help for task(s).
44
+ .IP \[bu] 2
45
+ \f[V]wile test [<file> [<method>]]\f[R]: Run project test suites.
46
+ .SH GLOBAL OPTIONS
47
+ .IP \[bu] 2
48
+ \f[V]-h\f[R], \f[V]--help\f[R]: Show help summary.
49
+ .IP \[bu] 2
50
+ \f[V]-v\f[R], \f[V]--version\f[R]: Show version number.
51
+ .IP \[bu] 2
52
+ \f[V]-a\f[R], \f[V]--all\f[R]: Apply to all targets.
53
+ .IP \[bu] 2
54
+ \f[V]--batch\f[R]: Run in non-interactive batch mode.
55
+ .IP \[bu] 2
56
+ \f[V]-c\f[R], \f[V]--check\f[R]: Run in check-only mode.
57
+ .IP \[bu] 2
58
+ \f[V]-d\f[R], \f[V]--dump\f[R]: Dump internal structure or data.
59
+ .IP \[bu] 2
60
+ \f[V]-f\f[R], \f[V]--force\f[R]: Force execution without safety checks.
61
+ .IP \[bu] 2
62
+ \f[V]--format=WORD\f[R]: Output format.
63
+ .IP \[bu] 2
64
+ \f[V]-l\f[R], \f[V]--list\f[R]: List items.
65
+ .IP \[bu] 2
66
+ \f[V]--name=WORD\f[R]: Filter or match by name.
67
+ .IP \[bu] 2
68
+ \f[V]--only=CSV\f[R]: Select only specified items.
69
+ .IP \[bu] 2
70
+ \f[V]-q\f[R], \f[V]--quiet\f[R]: Suppress non-essential output.
71
+ .IP \[bu] 2
72
+ \f[V]-r\f[R], \f[V]--raw\f[R]: Raw / unformatted output.
73
+ .IP \[bu] 2
74
+ \f[V]-s\f[R], \f[V]--strict\f[R]: Enable strict mode.
75
+ .IP \[bu] 2
76
+ \f[V]-t\f[R], \f[V]--trace\f[R]: Trace execution.
77
+ .IP \[bu] 2
78
+ \f[V]-y\f[R], \f[V]--yes\f[R]: Answer yes to all prompts.
79
+ .SH TASKS
80
+ .PP
81
+ Run \f[V]wile list\f[R] to list all tasks, or \f[V]wile help <task>\f[R]
82
+ for details.
83
+ .IP \[bu] 2
84
+ \f[B]build\f[R]: Build gem package (see \f[B]BUILD\f[R]).
85
+ .IP \[bu] 2
86
+ \f[B]bump\f[R]: Bump project version number (see \f[B]BUMP\f[R]).
87
+ .IP \[bu] 2
88
+ \f[B]compare\f[R]: Compare project files with template (see
89
+ \f[B]COMPARE\f[R]).
90
+ .IP \[bu] 2
91
+ \f[B]content\f[R]: Inspect ruby file structure and methods (see
92
+ \f[B]CONTENT\f[R]).
93
+ .IP \[bu] 2
94
+ \f[B]cp\f[R]: Copy template files into project (see \f[B]CP\f[R]).
95
+ .IP \[bu] 2
96
+ \f[B]dependencies\f[R]: List ruby and system dependencies (see
97
+ \f[B]DEPENDENCIES\f[R]).
98
+ .IP \[bu] 2
99
+ \f[B]dictionary\f[R]: Manage spelling dictionary (see
100
+ \f[B]DICTIONARY\f[R]).
101
+ .IP \[bu] 2
102
+ \f[B]gemcheck\f[R]: Check for missing gems across rbenv Rubies (see
103
+ \f[B]GEMCHECK\f[R]).
104
+ .IP \[bu] 2
105
+ \f[B]gemfile\f[R]: Generate Gemfile from dependencies (see
106
+ \f[B]GEMFILE\f[R]).
107
+ .IP \[bu] 2
108
+ \f[B]help\f[R]: Show detailed help for tasks (see \f[B]HELP\f[R]).
109
+ .IP \[bu] 2
110
+ \f[B]info\f[R]: Display project metadata and configuration (see
111
+ \f[B]INFO\f[R]).
112
+ .IP \[bu] 2
113
+ \f[B]install\f[R]: Build and install gem locally (see
114
+ \f[B]INSTALL\f[R]).
115
+ .IP \[bu] 2
116
+ \f[B]lexicon\f[R]: View and update vocabulary whitelist (see
117
+ \f[B]LEXICON\f[R]).
118
+ .IP \[bu] 2
119
+ \f[B]list\f[R]: List all tasks or filter by pattern (see
120
+ \f[B]LIST\f[R]).
121
+ .IP \[bu] 2
122
+ \f[B]methods\f[R]: Classify methods in your code (see
123
+ \f[B]METHODS\f[R]).
124
+ .IP \[bu] 2
125
+ \f[B]mkdir\f[R]: Create project directory from template (see
126
+ \f[B]MKDIR\f[R]).
127
+ .IP \[bu] 2
128
+ \f[B]note\f[R]: Scrape ruby files for NOTE comments (see
129
+ \f[B]NOTE\f[R]).
130
+ .IP \[bu] 2
131
+ \f[B]nvim\f[R]: Open project files in Neovim (see \f[B]NVIM\f[R]).
132
+ .IP \[bu] 2
133
+ \f[B]order\f[R]: Suggest method ordering in ruby files (see
134
+ \f[B]ORDER\f[R]).
135
+ .IP \[bu] 2
136
+ \f[B]oscheck\f[R]: Verify system commands and versions (see
137
+ \f[B]OSCHECK\f[R]).
138
+ .IP \[bu] 2
139
+ \f[B]publish\f[R]: Publish new version to RubyGems (see
140
+ \f[B]PUBLISH\f[R]).
141
+ .IP \[bu] 2
142
+ \f[B]receivers\f[R]: List variable and constant receiver types (see
143
+ \f[B]RECEIVERS\f[R]).
144
+ .IP \[bu] 2
145
+ \f[B]review\f[R]: Interactively review project files (see
146
+ \f[B]REVIEW\f[R]).
147
+ .IP \[bu] 2
148
+ \f[B]ruby\f[R]: List all ruby files in project or git (see
149
+ \f[B]RUBY\f[R]).
150
+ .IP \[bu] 2
151
+ \f[B]tc\f[R]: List custom unit tests (see \f[B]TC\f[R]).
152
+ .IP \[bu] 2
153
+ \f[B]test\f[R]: Run test suites (see \f[B]TESTING\f[R]).
154
+ .IP \[bu] 2
155
+ \f[B]todo\f[R]: Display TODO.md or scrape files for TODO comments (see
156
+ \f[B]TODO\f[R]).
157
+ .IP \[bu] 2
158
+ \f[B]update\f[R]: Update project files (see \f[B]UPDATE\f[R]).
159
+ .SH BUILD
160
+ .PP
161
+ Wile builds the gem package from the project gemspec into the working
162
+ directory (\f[V]<project>-<version>.gem\f[R]):
163
+ .IP
164
+ .nf
165
+ \f[C]
166
+ $ wile build # Build gem package
167
+ $ wile build --force # Build package even if checks fail
168
+ \f[R]
169
+ .fi
170
+ .PP
171
+ Pre-build checks:
172
+ .PP
173
+ Before building, Wile verifies that:
174
+ .IP \[bu] 2
175
+ Git working directory is clean (\f[V]git status\f[R] shows no
176
+ uncommitted changes).
177
+ .IP \[bu] 2
178
+ No stale \f[V].gem\f[R] file exists in the working directory.
179
+ .IP \[bu] 2
180
+ The project gemspec exists and has been modified within the last 5
181
+ minutes.
182
+ .PP
183
+ Passing \f[V]--force\f[R] bypasses these verification checks and invokes
184
+ \f[V]gem build\f[R] immediately.
185
+ .PP
186
+ Options:
187
+ .IP \[bu] 2
188
+ \f[V]-f\f[R], \f[V]--force\f[R]: Force build even if Git status is
189
+ dirty, a stale gem package exists, or the gemspec has not been touched
190
+ recently.
191
+ .SH BUMP
192
+ .PP
193
+ Wile bumps the project version number across \f[V].version\f[R],
194
+ \f[V]lib/<project>.rb\f[R], \f[V]README.md\f[R], and
195
+ \f[V]<project>.gemspec\f[R].
196
+ Versions follow a date-based convention of \f[V]major.minor.YYMMDD\f[R]:
197
+ .IP
198
+ .nf
199
+ \f[C]
200
+ $ wile bump # Re-stamp build segment to today
201
+ $ wile bump build # Same as default
202
+ $ wile bump minor # Step minor version (e.g. 0.5 -> 0.6)
203
+ $ wile bump major # Step major version (e.g. 0.5 -> 1.0)
204
+ \f[R]
205
+ .fi
206
+ .PP
207
+ Subcommands:
208
+ .IP \[bu] 2
209
+ \f[V]build\f[R] (or no argument): Re-stamps the build segment with
210
+ today\[cq]s date as \f[V]%y%m%d\f[R], keeping the major and minor
211
+ version numbers unchanged.
212
+ .IP \[bu] 2
213
+ \f[V]minor\f[R]: Increments the minor version by 1 and updates the build
214
+ segment to today\[cq]s date.
215
+ .IP \[bu] 2
216
+ \f[V]major\f[R]: Increments the major version by 1, resets the minor
217
+ version to 0, and updates the build segment to today\[cq]s date.
218
+ .PP
219
+ The updated version is written to \f[V].version\f[R] and substituted
220
+ into the first matching \f[V]\[rs]d+\[rs].\[rs]d+\[rs].\[rs]d+\f[R]
221
+ pattern found in \f[V]lib/<project>.rb\f[R], \f[V]README.md\f[R], and
222
+ the project gemspec.
223
+ .SH COMPARE
224
+ .PP
225
+ Wile compares project files against the living template in
226
+ \f[V]cache/\f[R], honoring \f[V].wileignore\f[R]:
227
+ .IP
228
+ .nf
229
+ \f[C]
230
+ $ wile compare # Compare all template files
231
+ $ wile compare README # Show diff for matching files
232
+ $ wile compare lib/ test/ # Compare multiple paths
233
+ \f[R]
234
+ .fi
235
+ .PP
236
+ Markers indicate file status:
237
+ .IP \[bu] 2
238
+ \f[V]\[OK]\f[R] (green): Project file is identical to the template.
239
+ .IP \[bu] 2
240
+ \f[V]\[*D]\f[R] (blue): Project file contains expected customizations
241
+ (such as \f[V]lib/\f[R], \f[V]bin/\f[R], \f[V]man/\f[R],
242
+ \f[V]README.md\f[R], \f[V]Gemfile\f[R], and dotfiles).
243
+ .IP \[bu] 2
244
+ \f[V]\[u2717]\f[R] (red): Project file drifted from template outside
245
+ expected changes.
246
+ .IP \[bu] 2
247
+ \f[V]# Missing:\f[R] (red): Template files absent from the project.
248
+ .PP
249
+ When invoked with one or more match patterns, \f[V]compare\f[R] displays
250
+ unified diff lines indented beneath each matching file.
251
+ Discrepancies are informational, so \f[V]compare\f[R] exits 0 on drift
252
+ or missing files.
253
+ .PP
254
+ Arguments:
255
+ .IP \[bu] 2
256
+ \f[V]<match>...\f[R]: Optional patterns filtering files to compare and
257
+ diff.
258
+ .SH CONTENT
259
+ .PP
260
+ Wile inspects Ruby source files, displaying class, module, and method
261
+ definitions alongside their line counts and referenced dependency calls:
262
+ .IP
263
+ .nf
264
+ \f[C]
265
+ $ wile content lib/foo.rb # Inspect method line counts and calls
266
+ $ wile content lib/foo.rb --raw # Display raw line counts and definitions
267
+ $ wile content lib/foo.rb --dump # Dump parse tree as S-expressions
268
+ \f[R]
269
+ .fi
270
+ .PP
271
+ Output details:
272
+ .IP \[bu] 2
273
+ \f[B]Method line counts\f[R]: Beside each method definition, Wile
274
+ displays the number of lines in the method (in green).
275
+ The count includes the \f[V]def\f[R] header and all body lines,
276
+ excluding only the closing \f[V]end\f[R] keyword.
277
+ .IP \[bu] 2
278
+ \f[B]Referenced dependencies\f[R]: Indented lines beneath a method show
279
+ calls and constants referenced within its body, color-coded by
280
+ resolution.
281
+ .PP
282
+ Arguments and options:
283
+ .IP \[bu] 2
284
+ \f[V]<filename>+\f[R]: One or more Ruby source files to inspect.
285
+ .IP \[bu] 2
286
+ \f[V]--raw\f[R]: Display plain method line counts and definitions
287
+ without color.
288
+ .IP \[bu] 2
289
+ \f[V]--dump\f[R]: Dump internal S-expression AST structure to stdout
290
+ with source header on stderr.
291
+ .SH CP
292
+ .PP
293
+ Wile copies template files from the living template cache into the
294
+ project directory, keeping scaffolded files synchronized with upstream
295
+ enhancements:
296
+ .IP
297
+ .nf
298
+ \f[C]
299
+ $ wile cp # Copy all missing template files
300
+ $ wile cp test # Copy template files matching pattern
301
+ $ wile cp .rubocop.yml --force # Overwrite existing project file
302
+ $ wile cp --trace # Show skipped and copied files
303
+ \f[R]
304
+ .fi
305
+ .PP
306
+ Template behavior:
307
+ .IP \[bu] 2
308
+ \f[B]ERB templates\f[R]: Template files ending in \f[V].erb\f[R] are
309
+ evaluated in the project context, replacing project placeholders and
310
+ removing the \f[V].erb\f[R] extension upon copying.
311
+ .IP \[bu] 2
312
+ \f[B]Safety\f[R]: Existing project files are skipped by default.
313
+ Pass \f[V]--force\f[R] to overwrite existing files with fresh template
314
+ copies.
315
+ .PP
316
+ Arguments and options:
317
+ .IP \[bu] 2
318
+ \f[V]<match>\f[R]: Optional pattern filtering which template files to
319
+ copy.
320
+ .IP \[bu] 2
321
+ \f[V]-f\f[R], \f[V]--force\f[R]: Overwrite existing files in the
322
+ project.
323
+ .IP \[bu] 2
324
+ \f[V]-t\f[R], \f[V]--trace\f[R]: Trace execution, displaying skipped
325
+ files in grey and copied files in green.
326
+ .SH DEPENDENCIES
327
+ .PP
328
+ Wile scrapes Git-tracked Ruby files and \f[V].irbrc\f[R] to detect and
329
+ list the project\[cq]s Ruby gem and system-command dependencies:
330
+ .IP
331
+ .nf
332
+ \f[C]
333
+ $ wile dependencies # List project dependencies
334
+ \f[R]
335
+ .fi
336
+ .PP
337
+ Dependencies are partitioned into four sections:
338
+ .IP \[bu] 2
339
+ \f[V]## runtime ##\f[R]: Runtime Ruby gems resolved via
340
+ \f[V]gem which\f[R].
341
+ .IP \[bu] 2
342
+ \f[V]## development ##\f[R]: Development Ruby gems (from files matched
343
+ by \f[V].gemignore\f[R]).
344
+ .IP \[bu] 2
345
+ \f[V]## system-run ##\f[R]: Operating system commands executed at
346
+ runtime.
347
+ .IP \[bu] 2
348
+ \f[V]## system-dev ##\f[R]: Operating system commands used during
349
+ development.
350
+ .PP
351
+ Detection rules:
352
+ .IP \[bu] 2
353
+ \f[B]Gems\f[R]: Scraped from \f[V]require\f[R] and \f[V]autoload\f[R]
354
+ statements in non-comment code, as well as
355
+ \f[V]# wile: require \[aq]<gem>\[aq]\f[R] directives.
356
+ .IP \[bu] 2
357
+ \f[B]Commands\f[R]: Declared via
358
+ \f[V]# wile: os \[ga]<cmd>[,<cmd>...]\[ga]\f[R] directives (audited
359
+ against actual OS calls by \f[V]test/tc_comments\f[R]).
360
+ Commands provided by the project\[cq]s own \f[V]bin\f[R] directories are
361
+ excluded.
362
+ Versions are resolved via Wile\[cq]s command version registry.
363
+ .SH DICTIONARY
364
+ .PP
365
+ Wile provides trigram-based spell checking across \f[V]README.md\f[R],
366
+ \f[V]bin/*\f[R], and \f[V]lib/**/*.rb\f[R] via
367
+ \f[V]test/tc_dictionary\f[R].
368
+ Words not recognized by the trigram model are compared against the
369
+ \f[V].dictionary\f[R] whitelist:
370
+ .IP
371
+ .nf
372
+ \f[C]
373
+ $ wile dictionary # Check spelling and prompt to update
374
+ $ wile dictionary --check # Check only; exit 1 on unrecognized words
375
+ $ wile dictionary --yes # Auto-accept new words into .dictionary
376
+ \f[R]
377
+ .fi
378
+ .PP
379
+ Options:
380
+ .IP \[bu] 2
381
+ \f[V]-c\f[R], \f[V]--check\f[R]: Run in check-only mode without
382
+ prompting.
383
+ .IP \[bu] 2
384
+ \f[V]-y\f[R], \f[V]--yes\f[R]: Answer yes to confirmation prompt
385
+ (auto-accept updates).
386
+ .SH GEMCHECK
387
+ .PP
388
+ Wile checks for missing gems in the currently running Ruby version
389
+ compared to installed versions managed by \f[V]rbenv\f[R].
390
+ By default, only the previous installed version is searched; passing
391
+ \f[V]--all\f[R] inspects all installed Ruby versions.
392
+ .PP
393
+ Major versions are tracked according to Semantic Versioning: for each
394
+ gem in the searched versions, each missing major version not currently
395
+ installed is reported with a pessimistic requirement (such as
396
+ \f[V]\[ti]> 1\f[R]):
397
+ .IP
398
+ .nf
399
+ \f[C]
400
+ $ wile gemcheck # Check against previous Ruby version
401
+ $ wile gemcheck --all # Check across all installed Rubies
402
+ \f[R]
403
+ .fi
404
+ .PP
405
+ If missing gems are found, Wile displays the current Ruby version, the
406
+ searched versions, and the missing gems, then prompts to install them
407
+ with their respective version constraints:
408
+ .IP
409
+ .nf
410
+ \f[C]
411
+ Current Ruby version: 4.0.7
412
+ Searching versions: 4.0.0
413
+ Gems missing in current found in other versions:
414
+ reverse_markdown (\[ti]> 3): 4.0.0
415
+ solargraph (\[ti]> 0): 4.0.0
416
+ Would you like to install them all? (Y/n)
417
+ \f[R]
418
+ .fi
419
+ .PP
420
+ Options:
421
+ .IP \[bu] 2
422
+ \f[V]-a\f[R], \f[V]--all\f[R]: Search across all installed Ruby versions
423
+ instead of only the previous version.
424
+ .SH GEMFILE
425
+ .PP
426
+ Wile generates a project \f[V]Gemfile\f[R] directly from dependencies.
427
+ It classifies gems into runtime and development groups based on
428
+ \f[V].gemignore\f[R], including the rubygems source and
429
+ runtime/development gems:
430
+ .IP
431
+ .nf
432
+ \f[C]
433
+ $ wile gemfile # Generate or update project Gemfile
434
+ $ wile gemfile --dump # Print generated Gemfile to stdout
435
+ \f[R]
436
+ .fi
437
+ .PP
438
+ The generated file follows standard Bundler syntax:
439
+ .IP
440
+ .nf
441
+ \f[C]
442
+ source \[aq]https://rubygems.org\[aq]
443
+ ## runtime ##
444
+ gem \[aq]colorize\[aq]
445
+ ## development ##
446
+ gem \[aq]reek\[aq]
447
+ gem \[aq]rubocop\[aq]
448
+ \f[R]
449
+ .fi
450
+ .SH HELP
451
+ .PP
452
+ Wile scrapes task documentation directly from the header comments of
453
+ task source files in \f[V].wile/*.rb\f[R] and
454
+ \f[V]lib/wile/tasks/*.rb\f[R]:
455
+ .IP
456
+ .nf
457
+ \f[C]
458
+ $ wile help # Show help for help and list tasks
459
+ $ wile help build # Show detailed help for build task
460
+ $ wile help order review # Show help for multiple tasks
461
+ \f[R]
462
+ .fi
463
+ .PP
464
+ Arguments:
465
+ .IP \[bu] 2
466
+ \f[V]<task>...\f[R]: One or more task names or partial names to inspect.
467
+ When omitted, Wile displays help for \f[V]help\f[R] and \f[V]list\f[R].
468
+ .SH INFO
469
+ .PP
470
+ Wile displays project metadata, description, and dependency
471
+ configuration synthesized from project dotfiles, \f[V]README.md\f[R],
472
+ and gemspec specifications:
473
+ .IP
474
+ .nf
475
+ \f[C]
476
+ $ wile info # Display project metadata and gems
477
+ \f[R]
478
+ .fi
479
+ .PP
480
+ Sections displayed:
481
+ .IP \[bu] 2
482
+ \f[B]Header\f[R]: Project name, version number, and author username.
483
+ .IP \[bu] 2
484
+ \f[B]Description\f[R]: Project summary extracted from the description
485
+ section of \f[V]README.md\f[R].
486
+ .IP \[bu] 2
487
+ \f[B]Files\f[R]: Complete listing of tracked project files packaged into
488
+ the gem.
489
+ .IP \[bu] 2
490
+ \f[B]Executables\f[R]: Executables located under \f[V]bin/\f[R].
491
+ .IP \[bu] 2
492
+ \f[B]Runtime gems\f[R]: Third-party gems and versions required at
493
+ runtime.
494
+ .IP \[bu] 2
495
+ \f[B]Development gems\f[R]: Dependencies required during development and
496
+ testing.
497
+ .PP
498
+ \f[V]wile info\f[R] takes no arguments and must be executed from the
499
+ project root.
500
+ .SH INSTALL
501
+ .PP
502
+ Wile builds the project gem and installs it into the local Ruby
503
+ environment using \f[V]gem install --no-document --local\f[R].
504
+ If the current version is already installed, it uninstalls it first
505
+ before installing the newly built gem, then cleans up the temporary
506
+ \f[V].gem\f[R] package file:
507
+ .IP
508
+ .nf
509
+ \f[C]
510
+ $ wile install # Build and install gem locally
511
+ $ wile install --force # Bypass git cleanliness and gemspec checks
512
+ \f[R]
513
+ .fi
514
+ .PP
515
+ By default, Wile enforces that the Git working tree is clean, no
516
+ leftover \f[V].gem\f[R] packages exist in the directory, and the gemspec
517
+ has been updated within the last 5 minutes.
518
+ Passing \f[V]--force\f[R] bypasses these verification checks.
519
+ .PP
520
+ Options:
521
+ .IP \[bu] 2
522
+ \f[V]-f\f[R], \f[V]--force\f[R]: Force installation without requiring
523
+ clean git status or up-to-date gemspec checks.
524
+ .SH LEXICON
525
+ .PP
526
+ Wile enforces vocabulary control across \f[V]lib/**/*.rb\f[R] using AST
527
+ parsing in \f[V]test/tc_lexicon\f[R].
528
+ Every method name, identifier, and symbol is tracked in
529
+ \f[V].lexicon\f[R] to prevent unintended API drift and subtle typos:
530
+ .IP
531
+ .nf
532
+ \f[C]
533
+ $ wile lexicon # Inspect vocabulary drift and prompt
534
+ $ wile lexicon --check # Check only; exit 1 on new vocabulary
535
+ $ wile lexicon --yes # Auto-accept new vocabulary into .lexicon
536
+ \f[R]
537
+ .fi
538
+ .PP
539
+ Options:
540
+ .IP \[bu] 2
541
+ \f[V]-c\f[R], \f[V]--check\f[R]: Run in check-only mode without
542
+ prompting.
543
+ .IP \[bu] 2
544
+ \f[V]-y\f[R], \f[V]--yes\f[R]: Answer yes to confirmation prompt
545
+ (auto-accept updates).
546
+ .SH LIST
547
+ .PP
548
+ Wile lists available built-in and custom tasks with optional pattern
549
+ filtering and multiple output formats:
550
+ .IP
551
+ .nf
552
+ \f[C]
553
+ $ wile list # List all tasks with usage syntax
554
+ $ wile list dict lex # Filter tasks matching patterns
555
+ $ wile list --format=name # Print task names only
556
+ $ wile list --format=dictionary # Print dictionary-style task summaries
557
+ \f[R]
558
+ .fi
559
+ .PP
560
+ Arguments and options:
561
+ .IP \[bu] 2
562
+ \f[V]<match>...\f[R]: Optional patterns filtering task names.
563
+ .IP \[bu] 2
564
+ \f[V]--format=WORD\f[R]: Output format (\f[V]USAGE\f[R],
565
+ \f[V]DICTIONARY\f[R], \f[V]NAME\f[R], or \f[V]CODE\f[R]).
566
+ Defaults to \f[V]USAGE\f[R].
567
+ .PP
568
+ Formats:
569
+ .IP \[bu] 2
570
+ \f[B]USAGE\f[R]: Formatted task usage header with brief description
571
+ comment (default).
572
+ .IP \[bu] 2
573
+ \f[B]DICTIONARY\f[R]: Concise list in \f[V]+ <task>: <description>\f[R]
574
+ format.
575
+ .IP \[bu] 2
576
+ \f[B]NAME\f[R]: Bare task names only, suitable for shell completion and
577
+ scripts.
578
+ .IP \[bu] 2
579
+ \f[B]CODE\f[R]: Unformatted usage comment lines extracted from task
580
+ source files.
581
+ .SH METHODS
582
+ .PP
583
+ Wile performs lightweight static analysis across tracked Ruby files
584
+ under \f[V]lib/\f[R] and classifies defined and called methods into
585
+ seven categories:
586
+ .IP
587
+ .nf
588
+ \f[C]
589
+ $ wile methods # Display all method categories
590
+ $ wile methods Cache Info # Filter results by regex patterns
591
+ $ wile methods --name=unused # Display only categories matching name
592
+ $ wile methods Cache --name=un # Combine pattern and category filters
593
+ \f[R]
594
+ .fi
595
+ .PP
596
+ Arguments and options:
597
+ .IP \[bu] 2
598
+ \f[V]<match>...\f[R]: Optional regex patterns filtering displayed method
599
+ names.
600
+ .IP \[bu] 2
601
+ \f[V]--name=PATTERN\f[R]: Optional case-insensitive pattern selecting
602
+ which category lists to display (e.g.\ \f[V]unused\f[R],
603
+ \f[V]undef\f[R], \f[V]shared\f[R]).
604
+ .PP
605
+ Categories:
606
+ .IP \[bu] 2
607
+ \f[B]Undefined\f[R]: External method calls not resolved to a project
608
+ definition, common Ruby/Object method, or skipped receiver.
609
+ Standard library calls are marked with \f[V]\[u2630]\f[R] and
610
+ \f[V]Object\f[R] methods with \f[V]\[u25C7]\f[R].
611
+ .IP \[bu] 2
612
+ \f[B]Implicit\f[R]: \f[V].new\f[R] calls on project classes that have no
613
+ explicit \f[V]initialize\f[R] method.
614
+ .IP \[bu] 2
615
+ \f[B]Unused\f[R]: Defined methods (including \f[V]attr_*\f[R] and
616
+ \f[V]Struct\f[R] accessors) with no statically detected callers.
617
+ .IP \[bu] 2
618
+ \f[B]Independent\f[R]: Methods that do not depend on any other project
619
+ methods.
620
+ .IP \[bu] 2
621
+ \f[B]Isolate\f[R]: Methods that are both unused and independent.
622
+ .IP \[bu] 2
623
+ \f[B]Shared\f[R]: Methods called from files other than the file defining
624
+ them.
625
+ .IP \[bu] 2
626
+ \f[B]Reused\f[R]: Method names defined in more than one class or module
627
+ (excluding \f[V]initialize\f[R]).
628
+ .PP
629
+ Receiver conventions:
630
+ .IP \[bu] 2
631
+ Duck-typed calls (e.g.\ \f[V]foo#bar\f[R] or chained \f[V]*#bar\f[R])
632
+ are matched against defined project method names to record dependencies.
633
+ .IP \[bu] 2
634
+ Receivers named \f[V]options\f[R], \f[V]it\f[R], or ending in a trailing
635
+ underscore (e.g.\ \f[V]node_\f[R], \f[V]sym_\f[R]) are skipped from
636
+ \f[B]Undefined\f[R] when unresolved, allowing intentional opt-out for
637
+ dynamic or third-party AST objects.
638
+ .SH MKDIR
639
+ .PP
640
+ Wile creates a new Ruby gem project directory scaffolded from the living
641
+ template in \f[V]cache/\f[R]:
642
+ .IP
643
+ .nf
644
+ \f[C]
645
+ $ wile mkdir my_gem # Create new project directory
646
+ \f[R]
647
+ .fi
648
+ .PP
649
+ Arguments:
650
+ .IP \[bu] 2
651
+ \f[V]<dirname>\f[R]: Exactly one argument specifying the new project
652
+ directory name.
653
+ Must contain only letters, numbers, underscores, or hyphens
654
+ (\f[V][a-zA-Z0-9_-]\f[R]).
655
+ .PP
656
+ Scaffolding steps:
657
+ .IP "1." 3
658
+ \f[B]Safety Check\f[R]: Verifies that \f[V]<dirname>\f[R] does not
659
+ already exist in the target path.
660
+ .IP "2." 3
661
+ \f[B]Template Copy\f[R]: Copies the template structure from
662
+ \f[V]cache/\f[R] into the new project directory.
663
+ .IP "3." 3
664
+ \f[B]Template Evaluation\f[R]: Evaluates all \f[V].erb\f[R] files (such
665
+ as \f[V]README.md.erb\f[R], \f[V]bin/project.erb\f[R], and
666
+ \f[V]lib/project.rb.erb\f[R]), substituting the project name, PascalCase
667
+ module name, Git author credentials, year, and date.
668
+ .IP "4." 3
669
+ \f[B]Path Renaming\f[R]: Renames template source and executable files
670
+ (e.g.
671
+ \f[V]bin/project\f[R] and \f[V]lib/project.rb\f[R]) to match the project
672
+ name, and deletes the \f[V].erb\f[R] templates.
673
+ .IP "5." 3
674
+ \f[B]Git Initialization\f[R]: Initializes a new Git repository
675
+ (\f[V]git init\f[R]) and installs template Git hooks (such as
676
+ \f[V].git/hooks/pre-commit\f[R]).
677
+ .SH NOTE
678
+ .PP
679
+ Wile scrapes project Ruby source files and prints every line containing
680
+ a \f[V]# NOTE\f[R] comment:
681
+ .IP
682
+ .nf
683
+ \f[C]
684
+ $ wile note # Scrape NOTE comments in all Ruby files
685
+ $ wile note order # Scrape NOTE comments in matching files
686
+ \f[R]
687
+ .fi
688
+ .PP
689
+ Arguments:
690
+ .IP \[bu] 2
691
+ \f[V]<match>...\f[R]: Optional patterns filtering Ruby file paths.
692
+ When omitted, all project Ruby files are inspected.
693
+ .SH NVIM
694
+ .PP
695
+ Wile opens the project\[cq]s standard files in Neovim, ordered by
696
+ internal dependency rank (\f[V]README.md\f[R], executable
697
+ \f[V]bin/*\f[R] scripts, then \f[V]lib/**/*.rb\f[R] in load order):
698
+ .IP
699
+ .nf
700
+ \f[C]
701
+ $ wile nvim # Open all standard files in Neovim
702
+ $ wile nvim tasks # Open files matching \[dq]tasks\[dq]
703
+ $ wile nvim --list # List matching files without opening
704
+ $ wile nvim tasks --list # List files matching \[dq]tasks\[dq]
705
+ \f[R]
706
+ .fi
707
+ .PP
708
+ Arguments and options:
709
+ .IP \[bu] 2
710
+ \f[V]<match>...\f[R]: Optional patterns filtering file paths.
711
+ .IP \[bu] 2
712
+ \f[V]-l\f[R], \f[V]--list\f[R]: Print file paths to stdout instead of
713
+ launching Neovim.
714
+ .SH ORDER
715
+ .PP
716
+ Wile analyzes call dependencies and method line lengths within a Ruby
717
+ source file to suggest an optimal top-to-bottom method order.
718
+ The optimization minimizes the line distance between callers and their
719
+ dependencies (preferring callees above callers) and breaks ties with
720
+ alphabetical ordering:
721
+ .IP
722
+ .nf
723
+ \f[C]
724
+ $ wile order lib/foo.rb # Suggest method order using default (bcmv)
725
+ $ wile order lib/foo.rb bprm # Suggest order using best permutation
726
+ $ wile order lib/foo.rb dump # Dump method data and index as JSON
727
+ $ wile order lib/foo.rb qc # Check dependency integrity and cycles
728
+ \f[R]
729
+ .fi
730
+ .PP
731
+ When suggestions are found, Wile prints each method name alongside
732
+ movement indicators:
733
+ .IP \[bu] 2
734
+ \f[V]\[ua]N\f[R] (arrow up): Method moved up by N positions from its
735
+ original place.
736
+ .IP \[bu] 2
737
+ \f[V]\[da]N\f[R] (arrow down): Method moved down by N positions from its
738
+ original place.
739
+ .PP
740
+ Wile exits 0 when the file is already in optimal order, or 1 when
741
+ reordering is suggested.
742
+ .PP
743
+ Sort methods:
744
+ .IP \[bu] 2
745
+ \f[B]bcmv\f[R] (default): Best combination move.
746
+ Evaluates relocating any method to any position (insert and shift),
747
+ committing the single best move per round until no move reduces total
748
+ distance.
749
+ .IP \[bu] 2
750
+ \f[B]nswp\f[R]: Neighbor swap.
751
+ Fast first-improvement pass that sweeps forward and backward through
752
+ adjacent method pairs, swapping immediately upon any score improvement.
753
+ .IP \[bu] 2
754
+ \f[B]cswp\f[R]: Combination swap.
755
+ First-improvement pass that tests all pairs \f[V](i, j)\f[R] and swaps
756
+ them immediately upon any score improvement.
757
+ .IP \[bu] 2
758
+ \f[B]bnswp\f[R]: Best neighbor swap.
759
+ Evaluates all adjacent pairs \f[V](i, i+1)\f[R] and commits the single
760
+ best adjacent swap per round.
761
+ .IP \[bu] 2
762
+ \f[B]bcswp\f[R]: Best combination swap.
763
+ Evaluates all possible pairs \f[V](i, j)\f[R] across the file and
764
+ commits the single best swap per round.
765
+ .IP \[bu] 2
766
+ \f[B]bprm\f[R]: Best permutation.
767
+ Exhaustive search across a sliding window of 7 methods (5,040
768
+ permutations per step) sweeping forward and backward until convergence.
769
+ Reaches global optimum for files with <= 7 methods.
770
+ .PP
771
+ Special subcommands:
772
+ .IP \[bu] 2
773
+ \f[B]dump\f[R]: Print parsed method definitions, sizes, and dependency
774
+ index as formatted JSON.
775
+ .IP \[bu] 2
776
+ \f[B]index\f[R]: Print method call-site line offsets for each
777
+ dependency.
778
+ .IP \[bu] 2
779
+ \f[B]isolate\f[R]: Print methods that neither call nor are called by
780
+ other methods in the file.
781
+ .IP \[bu] 2
782
+ \f[B]total\f[R]: Print the file\[cq]s total valuation score with a
783
+ detailed trace of alphabetical and dependency distances.
784
+ .IP \[bu] 2
785
+ \f[B]qc\f[R]: Quality check dependency symmetry and detect circular
786
+ dependencies.
787
+ Exits 65 (EX_DATAERR) if errors are found.
788
+ .PP
789
+ Arguments:
790
+ .IP \[bu] 2
791
+ \f[V]<filename>\f[R]: Path to the Ruby source file to analyze.
792
+ .IP \[bu] 2
793
+ \f[V]<sort-type|special>\f[R]: Optional sort algorithm or special
794
+ subcommand.
795
+ Defaults to \f[V]bcmv\f[R].
796
+ .SH OSCHECK
797
+ .PP
798
+ Wile checks system commands known to Wile against the host operating
799
+ system and reports their installed versions.
800
+ Probes are defined in Wile\[cq]s command version registry and support
801
+ standard command-line flags, man pages, and Fish plugins.
802
+ .PP
803
+ By default, Wile reports only commands that are installed on the host:
804
+ .IP
805
+ .nf
806
+ \f[C]
807
+ $ wile oscheck # Report installed system commands
808
+ \f[R]
809
+ .fi
810
+ .PP
811
+ Passing \f[V]--all\f[R] audits all known commands, displaying installed
812
+ commands with their detected versions and missing commands with
813
+ \f[V]-\f[R] in red.
814
+ If any commands are missing in \f[V]--all\f[R] mode, Wile exits with
815
+ status 2 (\f[V]EX_STOP\f[R]):
816
+ .IP
817
+ .nf
818
+ \f[C]
819
+ $ wile oscheck --all # Audit all known commands (exit 2 if missing)
820
+ \f[R]
821
+ .fi
822
+ .PP
823
+ Options:
824
+ .IP \[bu] 2
825
+ \f[V]--all\f[R]: Audit all known commands, including missing commands,
826
+ and exit 2 (\f[V]EX_STOP\f[R]) if any command is missing.
827
+ .SH PUBLISH
828
+ .PP
829
+ Wile verifies project readiness, builds and pushes a new gem version to
830
+ RubyGems, archives the package, and records the release in Git:
831
+ .IP
832
+ .nf
833
+ \f[C]
834
+ $ wile publish 0.7.261121 # Publish version 0.7.261121
835
+ \f[R]
836
+ .fi
837
+ .PP
838
+ Arguments:
839
+ .IP \[bu] 2
840
+ \f[V]<version>\f[R]: Exactly one version argument matching
841
+ \f[V]X.Y.Z\f[R] (\f[V]/\[ha]\[rs]d+\[rs].\[rs]d+\[rs].\[rs]d+$/\f[R]),
842
+ which must match \f[V].version\f[R] and not already exist as a Git tag.
843
+ .PP
844
+ Pre-publish checks:
845
+ .IP "1." 3
846
+ \f[B]Project Root\f[R]: Verifies required project root files are
847
+ present.
848
+ .IP "2." 3
849
+ \f[B]Version & Tag\f[R]: Verifies \f[V]<version>\f[R] matches
850
+ \f[V].version\f[R] and has not already been tagged in Git.
851
+ .IP "3." 3
852
+ \f[B]Git & Gemspec\f[R]: Verifies \f[V]git status\f[R] is clean, no
853
+ \f[V].gem\f[R] file is present in the working directory, and the gemspec
854
+ has been touched within the last 5 minutes.
855
+ .IP "4." 3
856
+ \f[B]Test Suite\f[R]: Runs the full test suite (\f[V]Test.test!\f[R])
857
+ and aborts on any failure.
858
+ .PP
859
+ Release steps:
860
+ .IP "1." 3
861
+ \f[B]Build & Push\f[R]: Builds \f[V]<project>-<version>.gem\f[R] and
862
+ runs \f[V]gem push\f[R].
863
+ If \f[V]gem push\f[R] fails, the \f[V].gem\f[R] file remains in the
864
+ working directory for inspection.
865
+ .IP "2." 3
866
+ \f[B]Archive\f[R]: Moves the \f[V].gem\f[R] file into \f[V]pkg/\f[R] and
867
+ appends a timestamp and \f[V]md5sum\f[R] entry to \f[V]History.txt\f[R].
868
+ .IP "3." 3
869
+ \f[B]Commit, Tag & Push\f[R]: Stages \f[V]History.txt\f[R], commits with
870
+ \f[V]--no-verify\f[R] (since tests already ran), creates an annotated
871
+ Git tag for \f[V]<version>\f[R], and runs
872
+ \f[V]git push --follow-tags\f[R].
873
+ .SH RECEIVERS
874
+ .PP
875
+ Wile scans Ruby source files under \f[V]lib/**/*.rb\f[R] with Prism and
876
+ lists variable and constant names whose assignments resolve to known
877
+ built-in Ruby receiver types:
878
+ .IP
879
+ .nf
880
+ \f[C]
881
+ $ wile receivers # List variables and constants by type
882
+ \f[R]
883
+ .fi
884
+ .PP
885
+ Detected types:
886
+ .IP \[bu] 2
887
+ \f[B]Array\f[R]: Array literals (\f[V][...]\f[R], \f[V]%w[...]\f[R],
888
+ \f[V]%i[...]\f[R]), \f[V]Array.new\f[R], \f[V]Array[...]\f[R], and
889
+ \f[V]Array(...)\f[R].
890
+ .IP \[bu] 2
891
+ \f[B]Float\f[R]: Float literals and \f[V]Float(...)\f[R].
892
+ .IP \[bu] 2
893
+ \f[B]Hash\f[R]: Hash literals (\f[V]{...}\f[R]), \f[V]Hash.new\f[R],
894
+ \f[V]Hash[...]\f[R], and \f[V]Hash(...)\f[R].
895
+ .IP \[bu] 2
896
+ \f[B]Integer\f[R]: Integer literals and \f[V]Integer(...)\f[R].
897
+ .IP \[bu] 2
898
+ \f[B]Set\f[R]: \f[V]Set.new\f[R] and \f[V]Set[...]\f[R].
899
+ .IP \[bu] 2
900
+ \f[B]String\f[R]: String and interpolated string literals,
901
+ \f[V]String.new\f[R], and \f[V]String(...)\f[R].
902
+ .IP \[bu] 2
903
+ \f[B]Time\f[R]: \f[V]Time.new\f[R], \f[V]Time.now\f[R],
904
+ \f[V]Time.at\f[R], \f[V]Time.utc\f[R], \f[V]Time.gm\f[R],
905
+ \f[V]Time.local\f[R], \f[V]Time.mktime\f[R], \f[V]Time.parse\f[R],
906
+ \f[V]Time.strptime\f[R], and \f[V]Time.iso8601\f[R].
907
+ .PP
908
+ Assignments include local, instance, class, global, and constant writes
909
+ (\f[V]=\f[R] and \f[V]||=\f[R]), unwrapping trailing \f[V].freeze\f[R]
910
+ calls.
911
+ Empty type tables are omitted.
912
+ .SH REVIEW
913
+ .PP
914
+ Wile interactively reviews project files using \f[V]content\f[R],
915
+ \f[V]order\f[R], \f[V]reek\f[R], and \f[V]rubocop\f[R].
916
+ By default, it pauses after each file; passing \f[V]--all\f[R] enables
917
+ auto-advance mode, advancing through files that pass all checks and
918
+ stopping only when an issue or offense is detected.
919
+ .IP
920
+ .nf
921
+ \f[C]
922
+ $ wile review # Review all lib files interactively
923
+ $ wile review --all # Auto-advance, stopping only on errors
924
+ $ wile review gemcheck # Filter to files matching gemcheck
925
+ $ wile review --only=rubocop # Run only rubocop check
926
+ $ wile review --strict # Use strict linter configurations
927
+ \f[R]
928
+ .fi
929
+ .PP
930
+ Arguments:
931
+ .IP \[bu] 2
932
+ \f[V]<target>\f[R]: Optional file path, directory path, or regex pattern
933
+ filtering the files to review.
934
+ When omitted, all project files in \f[V]lib/\f[R] are reviewed.
935
+ .PP
936
+ Options:
937
+ .IP \[bu] 2
938
+ \f[V]-a\f[R], \f[V]--all\f[R]: Auto-advance through passing files,
939
+ stopping only on errors.
940
+ .IP \[bu] 2
941
+ \f[V]-s\f[R], \f[V]--strict\f[R]: Use strict linter configurations
942
+ (\f[V].reek-strict.yml\f[R] and \f[V].rubocop-strict.yml\f[R]).
943
+ .IP \[bu] 2
944
+ \f[V]--only=CSV\f[R]: Comma-separated list of checks to run
945
+ (\f[V]content\f[R], \f[V]order\f[R], \f[V]reek\f[R], \f[V]rubocop\f[R]).
946
+ .SH RUBY
947
+ .PP
948
+ Wile lists all Ruby files in the project tracked by Git, including
949
+ \f[V].rb\f[R] source files and executable scripts with a Ruby shebang:
950
+ .IP
951
+ .nf
952
+ \f[C]
953
+ $ wile ruby # List all project Ruby files
954
+ $ wile ruby tasks # Filter files matching tasks
955
+ \f[R]
956
+ .fi
957
+ .PP
958
+ Arguments:
959
+ .IP \[bu] 2
960
+ \f[V]<match>...\f[R]: Optional patterns filtering file paths.
961
+ .SH TC
962
+ .PP
963
+ Wile discovers and lists test cases located in \f[V]test/tc_*\f[R]:
964
+ .IP
965
+ .nf
966
+ \f[C]
967
+ $ wile tc # List project custom unit tests
968
+ $ wile tc wile # List Wile template quality gates
969
+ $ wile tc all # List project and Wile tests
970
+ $ wile tc all --raw # Suppress headers and spaces
971
+ $ wile tc help # Filter project tests matching \[dq]help\[dq]
972
+ $ wile tc all rubo # Filter across all tests
973
+ \f[R]
974
+ .fi
975
+ .PP
976
+ Arguments and options:
977
+ .IP \[bu] 2
978
+ \f[V]<scope>\f[R]: Optional target category: \f[V]project\f[R]
979
+ (default), \f[V]wile\f[R] (template quality gates), or \f[V]all\f[R]
980
+ (both categories).
981
+ .IP \[bu] 2
982
+ \f[V]<match>...\f[R]: Optional patterns filtering test file paths.
983
+ .IP \[bu] 2
984
+ \f[V]-r\f[R], \f[V]--raw\f[R]: Suppress section headings and blank lines
985
+ in \f[V]all\f[R] scope for piping to other commands.
986
+ .PP
987
+ When listing \f[V]project\f[R] tests, domain unit tests corresponding to
988
+ ranked \f[V]lib/\f[R] files (following the \f[V]tc_ut_<module>\f[R]
989
+ convention) are listed first in rank order, followed by any remaining
990
+ custom unit tests.
991
+ When \f[V]all\f[R] is selected without \f[V]--raw\f[R], tests are
992
+ grouped under \f[V]# Project:\f[R] and \f[V]# Wile:\f[R] headings.
993
+ .SH TESTING
994
+ .PP
995
+ Wile executes project test suites located in \f[V]test/**/tc_*\f[R].
996
+ The \f[V]test\f[R] task supports targeted filtering by test file and
997
+ test method name:
998
+ .IP
999
+ .nf
1000
+ \f[C]
1001
+ $ wile test # Run all test suites
1002
+ $ wile test --batch # Run tests in parallel batch mode
1003
+ $ wile test usage # Run test files matching \[dq]usage\[dq]
1004
+ $ wile test usage init # Run test methods matching \[dq]init\[dq]
1005
+ $ wile test --list # List matching test files only
1006
+ $ wile test -q # Fault-only output (suppress dots)
1007
+ \f[R]
1008
+ .fi
1009
+ .PP
1010
+ Arguments and options:
1011
+ .IP \[bu] 2
1012
+ \f[V]<filematch>\f[R]: Optional pattern filtering test file paths.
1013
+ .IP \[bu] 2
1014
+ \f[V]<methodmatch>\f[R]: Optional pattern filtering test method names.
1015
+ .IP \[bu] 2
1016
+ \f[V]--batch\f[R]: Run tests concurrently in a thread pool, suppressing
1017
+ output.
1018
+ .IP \[bu] 2
1019
+ \f[V]-l\f[R], \f[V]--list\f[R]: Print matching test files without
1020
+ running them.
1021
+ .IP \[bu] 2
1022
+ \f[V]-q\f[R], \f[V]--quiet\f[R]: Run with fault-only progress style.
1023
+ .SH TODO
1024
+ .PP
1025
+ Wile displays project tasks from \f[V]TODO.md\f[R] or scrapes
1026
+ \f[V]# TODO\f[R] comments from Ruby source files:
1027
+ .IP
1028
+ .nf
1029
+ \f[C]
1030
+ $ wile todo # Display TODO.md items
1031
+ $ wile todo order # Scrape TODO comments in matching files
1032
+ $ wile todo . # Scrape TODO comments across all files
1033
+ \f[R]
1034
+ .fi
1035
+ .PP
1036
+ When invoked without arguments, Wile displays \f[V]TODO.md\f[R]
1037
+ formatted with \f[V]colora\f[R].
1038
+ When invoked with one or more match patterns, Wile inspects project Ruby
1039
+ files matching the patterns and prints their \f[V]# TODO\f[R] comments.
1040
+ .PP
1041
+ Arguments:
1042
+ .IP \[bu] 2
1043
+ \f[V]<match>...\f[R]: Optional patterns filtering Ruby file paths.
1044
+ When omitted, \f[V]TODO.md\f[R] is displayed.
1045
+ .SH UPDATE
1046
+ .PP
1047
+ Wile synchronizes and regenerates project metadata files, keeping the
1048
+ \f[V]README.md\f[R] version, copyright notice, active console output
1049
+ blocks, gemspec specification, and man page documentation in sync:
1050
+ .IP
1051
+ .nf
1052
+ \f[C]
1053
+ $ wile update # Update README, gemspec, and man page
1054
+ $ wile update README # Update only README.md
1055
+ $ wile update gemspec # Update only <project>.gemspec
1056
+ $ wile update man # Update only man page roff files
1057
+ $ wile update --force # Update despite uncommitted git changes
1058
+ \f[R]
1059
+ .fi
1060
+ .PP
1061
+ When updating \f[V]README.md\f[R], Wile synchronizes the first version
1062
+ number with the current project version, updates the copyright year and
1063
+ author, and refreshes any active console blocks.
1064
+ Active console blocks are \f[V]console\f[R] code blocks whose first line
1065
+ begins with \f[V]$ <project>\f[R] and ends with \f[V]#>>\f[R].
1066
+ When \f[V]bin/<project>\f[R] exists, Wile executes the command and
1067
+ replaces the block contents with the latest command output.
1068
+ .PP
1069
+ When updating the gemspec, Wile regenerates \f[V]<project>.gemspec\f[R]
1070
+ from Git tracked files, runtime dependencies, development dependencies,
1071
+ and the summary and description parsed from \f[V]README.md\f[R].
1072
+ .PP
1073
+ When updating man pages, Wile compiles \f[V]man/<project>.md\f[R] to
1074
+ \f[V]man/<project>.1\f[R] using \f[V]pandoc\f[R] if available.
1075
+ .PP
1076
+ By default, Wile requires a clean Git working tree before applying
1077
+ updates.
1078
+ If changes are generated, Wile displays a git diff of the modified
1079
+ targets and prompts to verify the changes.
1080
+ .PP
1081
+ Arguments:
1082
+ .IP \[bu] 2
1083
+ \f[V][README|gemspec|man]\f[R]: Optional target file to update.
1084
+ When omitted, all three targets are updated.
1085
+ .PP
1086
+ Options:
1087
+ .IP \[bu] 2
1088
+ \f[V]-f\f[R], \f[V]--force\f[R]: Proceed with updates even if the Git
1089
+ working tree has uncommitted changes.
1090
+ .SH OPTIONS DICTIONARY
1091
+ .PP
1092
+ Wile maintains a canonical dictionary of CLI options and conventions.
1093
+ When invoked with one or more options and no task, Wile queries this
1094
+ dictionary:
1095
+ .IP
1096
+ .nf
1097
+ \f[C]
1098
+ $ wile --format=json
1099
+ --format=json
1100
+ Description: Output format
1101
+ Pattern: WORD (/\[rs]A[\[rs]w-]+\[rs]z/)
1102
+ Commands: rubocop, reek, cucumber
1103
+ \f[R]
1104
+ .fi
1105
+ .PP
1106
+ For each flag, the dictionary reports:
1107
+ .IP \[bu] 2
1108
+ \f[B]Description\f[R]: The standard purpose of the flag.
1109
+ .IP \[bu] 2
1110
+ \f[B]Pattern\f[R]: The type name and regular expression (for flags
1111
+ taking a value).
1112
+ .IP \[bu] 2
1113
+ \f[B]Commands\f[R]: Established tools or tasks that use the flag.
1114
+ .PP
1115
+ Both active task flags and reserved flags for custom tasks can be
1116
+ inspected.
1117
+ If an unrecognized flag is passed or an option value fails pattern
1118
+ validation, an error is reported.
1119
+ .SH SEE ALSO
1120
+ .PP
1121
+ \f[V]ruby\f[R](1), \f[V]fish\f[R](1), \f[V]tmux\f[R](1)