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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fbc762217f2bb4ad19ccce49e0501d4b5c045b29a585b7d194e36c71a1883ba9
4
+ data.tar.gz: cc6d5230def7f0b359f1e38471139a177e3b79fedcb1b2520fd6fb9b1b0e4f50
5
+ SHA512:
6
+ metadata.gz: b9c346b98337b6c7d7c326e9e620c77f67ddcd13cb431c6c2431e8bb577da84f7450d772088781ea3ae6a657532b5eadb015d4fc2823d1b38213a804dbad473d
7
+ data.tar.gz: 696b1df7d8db8d897102f600eb1a2144766adfc0008945c6ca1ac8cf0592186da44686dea5ce05f7c11b978530afca2e572f4fa63f1e4283bc63925620f2fab2
data/.version ADDED
@@ -0,0 +1 @@
1
+ 0.9.261203
data/CREDITS.md ADDED
@@ -0,0 +1,20 @@
1
+ # Credits
2
+
3
+ We want to credit where credit is due.
4
+ This project owes thanks to the authors of this repository (see their commits),
5
+ the third-party libraries we rely on (check the dependencies),
6
+ and the diffuse pool of ideas and inspirations that shaped it.
7
+
8
+ We welcome contributions to this list!
9
+ If you feel someone or something is missing,
10
+ please submit a pull request with the suggested addition.
11
+
12
+ + [Thor](https://rubygems.org/gems/thor): Although no longer used by Wile, Wile originally started with it.
13
+ + [Robert Morris and Lorinda Cherry](https://doi.org/10.1109/TPC.1975.6593963)
14
+ and [Zamora & Pollock](https://doi.org/10.1016/0306-4573%2881%2990044-3):
15
+ Pioneered trigram typo detection for early Unix and formalized the binary
16
+ trigram dictionary method used in `test/tc_dictionary`.
17
+ + [Antigravity](https://deepmind.google): AI pair programmer developed by
18
+ Google DeepMind, assisting with code reviews, testing, and maintenance.
19
+ + [Fluffy](https://muse.ai): AI agent (Muse Spark 1.3), contributing code
20
+ review, testing, and maintenance of the project wiki.
data/README.md ADDED
@@ -0,0 +1,253 @@
1
+ # Wile
2
+
3
+ * [VERSION 0.9.261203](https://github.com/carlosjhr64/wile/releases)
4
+ * [github](https://www.github.com/carlosjhr64/wile)
5
+
6
+ ## DESCRIPTION
7
+
8
+ `Wile` is a prescriptive task dispatcher for Ruby gem projects,
9
+ built around a living project template.
10
+
11
+ It scaffolds new projects from the template, keeps existing ones
12
+ aligned with it, and automates the rest of the workflow -- gemspec
13
+ upkeep, testing, and release. There is no configuration file: your
14
+ clone is the configuration, to take as-is or edit and install
15
+ locally.
16
+
17
+ ## INSTALL
18
+
19
+ * Built for Linux (GNU tools; bootstrap scripts require Debian/Ubuntu)
20
+ * Required Ruby version: `>= 4.0`
21
+
22
+ The recommended way to use `wile` is from a local git clone. Because
23
+ project structure, template conventions, and tasks live directly in the
24
+ Ruby source and `cache/` template, cloning lets you customize `wile` to
25
+ fit your workflow and reinstall it locally (`wile install`) whenever you
26
+ add or adjust a feature.
27
+
28
+ The bootstrap scripts automate setting up `rbenv`, Ruby, gems, `fish`,
29
+ system commands, and Neovim. The first script (`bootstrap_ruby_rbenv`)
30
+ does not require Ruby `>= 4.0` -- its job is to install `rbenv` and
31
+ bring Ruby up to Wile's version. Run any bootstrap script with `--help`
32
+ first to see what it will do:
33
+
34
+ ```console
35
+ $ git clone --depth 1 https://github.com/carlosjhr64/wile.git
36
+ $ cd wile
37
+ $ ./bin/bootstrap_ruby_rbenv
38
+ $ ./bin/bootstrap_ruby_gems
39
+ $ ./bin/bootstrap_fish
40
+ $ ./bin/bootstrap_fisher_plugins
41
+ $ ./bin/bootstrap_system_commands
42
+ $ ./bin/bootstrap_install_neovim
43
+ ```
44
+
45
+ Once `fish` is installed, start a `fish` shell (or open a terminal
46
+ running `fish`), install `wile`, and scaffold your first project:
47
+
48
+ ```console
49
+ $ goto wile # takes you to the wile directory
50
+ $ wile install
51
+ $ cd .. # a reasonable place to set up a new project
52
+ $ RBENV_VERSION=4.0.7 wile mkdir awesome # use wile's .ruby-version
53
+ $ goto awesome
54
+ ```
55
+
56
+ There you'll see the skeleton of your new `awesome` project.
57
+
58
+ ## HELP
59
+
60
+ For more help, see the AI generated and maintained
61
+ [wiki](https://github.com/carlosjhr64/wile/wiki).
62
+ ```console
63
+ $ wile --help #>>
64
+ ## wile ##
65
+
66
+ Usage:
67
+ wile [<task=WORD> [<args>+]] [:options+]
68
+
69
+ Options:
70
+ -h --help Show help summary
71
+ -v --version Show version number
72
+ -a --all Apply to all targets
73
+ --batch Run in non-interactive batch mode
74
+ -c --check Run in check-only mode
75
+ -d --dump Dump internal structure or data
76
+ -f --force Force execution without safety checks
77
+ --format=WORD Output format
78
+ -l --list List items
79
+ --name=WORD Filter or match by name
80
+ --only=CSV Select only specified items
81
+ -q --quiet Suppress non-essential output
82
+ -r --raw Raw / unformatted output
83
+ -s --strict Enable strict mode
84
+ -t --trace Trace execution
85
+ -y --yes Assume yes to confirmation prompts
86
+
87
+ Reserved flags for custom tasks:
88
+
89
+ --archive Archive mode; preserve file attributes and permissions
90
+ --backup Make backup before removal or overwrite
91
+ --clean Remove build artifacts and temporary files
92
+ --color=WHEN Control colored output (always, auto, never)
93
+ --config=FILE Configuration file path
94
+ --context=INTEGER Number of lines of context to display
95
+ --count Print count of matching items instead of contents
96
+ --delete Delete extraneous or target files
97
+ --dereference Follow symbolic links
98
+ --detailed Display detailed output
99
+ --diff Show differences between files or states
100
+ --directory=FILE Change to directory before operating
101
+ --encoding=WORD Character encoding to use
102
+ --exclude=PATTERN Exclude files or paths matching pattern
103
+ --follow Output appended data as file grows
104
+ --git Operate on git-tracked files
105
+ --header Display or include header line
106
+ --icase Ignore case distinctions in patterns or text
107
+ --include=PATTERN Include only files or paths matching pattern
108
+ -i --interactive Prompt before overwrite or action
109
+ --interval=DECIMAL Time to wait between repetitions
110
+ --jobs=INTEGER Number of concurrent jobs or tasks
111
+ --limit=INTEGER Limit the number of results or records
112
+ --linenumber Print line number with output lines
113
+ --logfile=FILE Path to log file
114
+ --maxdepth=INTEGER Descend at most INTEGER directory levels
115
+ --mode=MODE File permission mode (octal or symbolic)
116
+ --nocache Bypass cache and fetch fresh data
117
+ --output=FILE Write output to file
118
+ -p --parents Create intermediate parent directories as needed
119
+ --port=INTEGER Port number to connect or listen to
120
+ --preserve=ATTRS Preserve specified file attributes
121
+ --readable Print human readable output
122
+ -R --recursive Operate recursively on directories
123
+ --remote=URL Remote repository or server address
124
+ --reverse Reverse sorting order of results
125
+ --simulate Simulate execution without making changes
126
+ --sort=WORD Sort output by specified key or field
127
+ --status Display operational status or summary
128
+ --sync Synchronize data to storage before exiting
129
+ --tag=WORD Tag name or label to apply or filter by
130
+ --target=FILE Target file, directory, or architecture
131
+ --timeout=DECIMAL Maximum time to wait before timing out
132
+ --user=USER Run as or filter by user
133
+
134
+ Types:
135
+ WORD /\A[\w-]+\z/
136
+ CSV /\A[\w-]+(,[\w-]+)*\z/
137
+ FILE /\A(\/?[\w.][\w.-]*)+\/?\z/
138
+ ATTRS /\A[a-zA-Z]+(,[a-zA-Z]+)*\z/
139
+ MODE /\A[0-7]{3,4}\z/
140
+ INTEGER /\A\d+\z/
141
+ DECIMAL /\A\d+(\.\d+)?\z/
142
+ PATTERN /\A\S+\z/
143
+ USER /\A([a-zA-Z_])[\w-]*\z/
144
+ WHEN /\A(always|auto|never)\z/
145
+ URL /\A([a-zA-Z]+:\/\/\S+|[\w.-]+@\S+)\z/
146
+
147
+ ### Get started ################################
148
+ # wile # shows man page #
149
+ # wile list # list all tasks #
150
+ # wile help [<task>] # show help for task(s) #
151
+ # wile test # run the test suites #
152
+ ################################################
153
+ ```
154
+ ## TASKS
155
+
156
+ Run `wile list` and you'll get the entire list of available tasks.
157
+ ```console
158
+ $ wile list --format=dictionary #>>
159
+
160
+ + example: demo task
161
+ + build: build gem pkg
162
+ + bump: bump the version number
163
+ + compare: compares project with template
164
+ + content: show file's contents
165
+ + cp: copy template files into project
166
+ + dependencies: list ruby dependencies
167
+ + dictionary: view changes and update dictionary
168
+ + gemcheck: checks for missing gems
169
+ + gemfile: generate Gemfile from dependencies
170
+ + help: show task's help
171
+ + info: show project info
172
+ + install: install current local project
173
+ + lexicon: view changes and update lexicon
174
+ + list: list tasks(by match)
175
+ + methods: classify methods in your code
176
+ + mkdir: creates project dirname
177
+ + note: scrape ruby files for NOTE comments
178
+ + nvim: spawn nvim with(matching) files
179
+ + order: suggest a methods order
180
+ + oscheck: check system command versions
181
+ + publish: publish a new version
182
+ + receivers: list variable and constant names by receiver type
183
+ + review: runs review
184
+ + ruby: lists ruby files
185
+ + tc: lists unit tests
186
+ + test: tc tests
187
+ + todo: display TODO.md or scrape TODO comments
188
+ + update: update project files
189
+
190
+ ```
191
+ ## FEATURED TESTS
192
+
193
+ * `test/tc_readme_rocket_check`
194
+
195
+ Your Ruby demos don't lie.
196
+ Test to verify your README rockets!
197
+ ```ruby
198
+ # The rockets are compared to the inspect return of the value
199
+ 1 + 2 #=> 3
200
+ 1 + 2 == 3 #=> true
201
+ ['a', 'b', 'c'].join #=> "abc"
202
+ 'abc'.class #=> String
203
+ 'abc'.to_sym #=> :abc
204
+ 'Major.Minor.Build'.split('.') #=> ["Major", "Minor", "Build"]
205
+ {a: 'abc', b: 'cde', c: 'xyz', d: 'ace'}.select{|k,v| v.include? 'c'}
206
+ #=> {a: "abc", b: "cde", d: "ace"}
207
+ require 'date'
208
+ # The twiddle rockets verifies it matches the pattern
209
+ Date.today.to_s #~> ^\d\d\d\d-\d\d-\d\d$
210
+ ```
211
+
212
+ * `test/tc_dictionary`
213
+
214
+ Spell check tailored for code and docs.
215
+ Uses compressed English trigram frequencies to catch typos across
216
+ `README.md`, `bin/*`, and `lib/` without external dependencies.
217
+ New terms and project jargon are reviewed with `wile dictionary`
218
+ and tracked in `.dictionary`.
219
+
220
+ * `test/tc_version`
221
+
222
+ Keep version numbers honest and in sync.
223
+ Ensures the authoritative version in `.version` stays aligned across
224
+ code constants in `lib/`, CLI executables in `bin/`, gemspecs, and
225
+ `README.md` so you never publish a mismatched gem.
226
+
227
+ ## LICENSE
228
+
229
+ Copyright (c) 2026 CarlosJHR64
230
+
231
+ Permission is hereby granted, free of charge,
232
+ to any person obtaining a copy of this software and
233
+ associated documentation files (the "Software"),
234
+ to deal in the Software without restriction,
235
+ including without limitation the rights
236
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
237
+ copies of the Software, and
238
+ to permit persons to whom the Software is furnished to do so,
239
+ subject to the following conditions:
240
+
241
+ The above copyright notice and this permission notice
242
+ shall be included in all copies or substantial portions of the Software.
243
+
244
+ THE SOFTWARE IS PROVIDED "AS IS",
245
+ WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
246
+ INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
247
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
248
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
249
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
250
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
251
+ THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
252
+
253
+ ## [CREDITS](CREDITS.md)
data/bin/wile ADDED
@@ -0,0 +1,102 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ Encoding.default_external = Encoding::UTF_8
5
+
6
+ require_relative '../lib/wile'
7
+
8
+ HelpParser.csv(:only)
9
+ HelpParser.integer(:context, :jobs, :limit, :maxdepth, :port)
10
+ HelpParser.float(:interval, :timeout)
11
+
12
+ Wile::Run.new(HelpParser[Wile::VERSION, <<~HELP])
13
+ ## wile ##
14
+
15
+ Usage:
16
+ wile [<task=WORD> [<args>+]] [:options+]
17
+
18
+ Options:
19
+ -h --help Show help summary
20
+ -v --version Show version number
21
+ -a --all Apply to all targets
22
+ --batch Run in non-interactive batch mode
23
+ -c --check Run in check-only mode
24
+ -d --dump Dump internal structure or data
25
+ -f --force Force execution without safety checks
26
+ --format=WORD Output format
27
+ -l --list List items
28
+ --name=WORD Filter or match by name
29
+ --only=CSV Select only specified items
30
+ -q --quiet Suppress non-essential output
31
+ -r --raw Raw / unformatted output
32
+ -s --strict Enable strict mode
33
+ -t --trace Trace execution
34
+ -y --yes Assume yes to confirmation prompts
35
+
36
+ Reserved flags for custom tasks:
37
+
38
+ --archive Archive mode; preserve file attributes and permissions
39
+ --backup Make backup before removal or overwrite
40
+ --clean Remove build artifacts and temporary files
41
+ --color=WHEN Control colored output (always, auto, never)
42
+ --config=FILE Configuration file path
43
+ --context=INTEGER Number of lines of context to display
44
+ --count Print count of matching items instead of contents
45
+ --delete Delete extraneous or target files
46
+ --dereference Follow symbolic links
47
+ --detailed Display detailed output
48
+ --diff Show differences between files or states
49
+ --directory=FILE Change to directory before operating
50
+ --encoding=WORD Character encoding to use
51
+ --exclude=PATTERN Exclude files or paths matching pattern
52
+ --follow Output appended data as file grows
53
+ --git Operate on git-tracked files
54
+ --header Display or include header line
55
+ --icase Ignore case distinctions in patterns or text
56
+ --include=PATTERN Include only files or paths matching pattern
57
+ -i --interactive Prompt before overwrite or action
58
+ --interval=DECIMAL Time to wait between repetitions
59
+ --jobs=INTEGER Number of concurrent jobs or tasks
60
+ --limit=INTEGER Limit the number of results or records
61
+ --linenumber Print line number with output lines
62
+ --logfile=FILE Path to log file
63
+ --maxdepth=INTEGER Descend at most INTEGER directory levels
64
+ --mode=MODE File permission mode (octal or symbolic)
65
+ --nocache Bypass cache and fetch fresh data
66
+ --output=FILE Write output to file
67
+ -p --parents Create intermediate parent directories as needed
68
+ --port=INTEGER Port number to connect or listen to
69
+ --preserve=ATTRS Preserve specified file attributes
70
+ --readable Print human readable output
71
+ -R --recursive Operate recursively on directories
72
+ --remote=URL Remote repository or server address
73
+ --reverse Reverse sorting order of results
74
+ --simulate Simulate execution without making changes
75
+ --sort=WORD Sort output by specified key or field
76
+ --status Display operational status or summary
77
+ --sync Synchronize data to storage before exiting
78
+ --tag=WORD Tag name or label to apply or filter by
79
+ --target=FILE Target file, directory, or architecture
80
+ --timeout=DECIMAL Maximum time to wait before timing out
81
+ --user=USER Run as or filter by user
82
+
83
+ Types:
84
+ WORD /\\A[\\w-]+\\z/
85
+ CSV /\\A[\\w-]+(,[\\w-]+)*\\z/
86
+ FILE /\\A(\\/?[\\w.][\\w.-]*)+\\/?\\z/
87
+ ATTRS /\\A[a-zA-Z]+(,[a-zA-Z]+)*\\z/
88
+ MODE /\\A[0-7]{3,4}\\z/
89
+ INTEGER /\\A\\d+\\z/
90
+ DECIMAL /\\A\\d+(\\.\\d+)?\\z/
91
+ PATTERN /\\A\\S+\\z/
92
+ USER /\\A([a-zA-Z_])[\\w-]*\\z/
93
+ WHEN /\\A(always|auto|never)\\z/
94
+ URL /\\A([a-zA-Z]+:\\/\\/\\S+|[\\w.-]+@\\S+)\\z/
95
+
96
+ ### Get started ################################
97
+ # wile # shows man page #
98
+ # wile list # list all tasks #
99
+ # wile help [<task>] # show help for task(s) #
100
+ # wile test # run the test suites #
101
+ ################################################
102
+ HELP
data/cache/.bin/pane ADDED
@@ -0,0 +1,99 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # wile: os `agy,clear,colora,git,ncal,rubocop,tmux,wile`
5
+
6
+ HELP = <<~HELP
7
+ ## pane ##
8
+ Per-pane dashboard and command runner for the Wile tmux workstation.
9
+ Clears the screen and displays the assigned task or executes a command.
10
+ Meant to be run by `panes` (`.bin/panes`).
11
+
12
+ Usage:
13
+ pane [<n>] [<cmd>]
14
+ pane [<cmd>]
15
+ pane [-h | --help]
16
+
17
+ Arguments:
18
+ <n> - Target pane index (0..10). If omitted, detects the current pane
19
+ from tmux.
20
+ <cmd> - Optional command to execute. If omitted, runs the assigned
21
+ preset dashboard for that pane.
22
+
23
+ Presets:
24
+ 0 # Git Diff: (colora) 6 wile todo
25
+ 1 # Git Status: 7 ncal -B 1 -A 1
26
+ 2 # Lexicon: 8 wile nvim --list
27
+ 3 # Dictionary: 9 # Git Log: (last 7 commits)
28
+ 4 # Rubocop: 10 agy -c
29
+ 5 (unassigned) other #<n> alone
30
+ HELP
31
+
32
+ if ARGV.any? { it.start_with?('-') }
33
+ puts HELP
34
+ exit(ARGV == ['-h'] || ARGV == ['--help'] ? 0 : 64)
35
+ end
36
+
37
+ pane = ARGV.first&.match?(/^\d+$/) ? ARGV.shift.to_i : nil
38
+ pane ||= `tmux display-message -p '#P'`.to_i
39
+
40
+ cmd = ARGV.join(' ')
41
+ cmd = nil if cmd.empty?
42
+
43
+ require 'colorize'
44
+ # wile: require 'colora'
45
+ # wile: require 'rubocop'
46
+
47
+ def blue(string)
48
+ puts string.blue
49
+ end
50
+
51
+ def clear
52
+ system('clear')
53
+ end
54
+
55
+ clear
56
+ if cmd
57
+ blue "# #{cmd}:"
58
+ system(cmd) # permit
59
+ else
60
+ case pane
61
+ when 0
62
+ blue '# Git Diff:'
63
+ # - colora: Terminal colorizer utility for diffs and logs
64
+ system('colora')
65
+ when 1
66
+ blue '# Git Status:'
67
+ system('git status')
68
+ when 2
69
+ blue '# Lexicon:'
70
+ system('wile lexicon --check')
71
+ when 3
72
+ blue '# Dictionary:'
73
+ system('wile dictionary --check')
74
+ when 4
75
+ blue '# Rubocop:'
76
+ system('rubocop bin lib')
77
+ when 6
78
+ system('wile todo')
79
+ when 7
80
+ system('ncal -B 1 -A 1')
81
+ when 8
82
+ system('wile nvim --list')
83
+ when 9
84
+ blue '# Git Log:'
85
+ n = -1
86
+ `git log --oneline --name-only --abbrev=7 -n 7`.each_line do |line|
87
+ if (mdt = /^([a-f0-9]{7})(.*)$/.match(line))
88
+ puts "#{n += 1}: ".bold + mdt[1].magenta + mdt[2].blue
89
+ else
90
+ puts line
91
+ end
92
+ end
93
+ when 10
94
+ # - agy: Antigravity AI coding assistant (-c continues active session)
95
+ system('agy -c')
96
+ else
97
+ blue "##{pane}"
98
+ end
99
+ end
data/cache/.bin/panes ADDED
@@ -0,0 +1,54 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # wile: os `tmux`
5
+
6
+ HELP = <<~HELP
7
+ ## panes ##
8
+ Broadcast controller for the Wile tmux workstation.
9
+ Sends a command to multiple tmux panes in the current window simultaneously.
10
+
11
+ Usage:
12
+ panes [<cmd>] [<pane>+]
13
+ panes [-h | --help]
14
+
15
+ Arguments:
16
+ <cmd> - The command string to broadcast. If omitted (or if arguments
17
+ are purely numeric pane indices), defaults to refreshing each
18
+ pane's assigned dashboard command (`pane <idx>`).
19
+ <pane>+ - Specific pane numbers to target (e.g. `panes 0 1`). If omitted,
20
+ all qualifying panes in the current window are targeted.
21
+
22
+ Safety Property:
23
+ To prevent interrupting active workflows (such as an open editor like
24
+ Neovim, a running test runner, or an interactive prompt), commands are
25
+ ONLY sent to panes currently idle at a fish shell (`running == 'fish'`).
26
+ Panes running any other command are skipped silently.
27
+ HELP
28
+
29
+ if ARGV.any? { it.start_with?('-') }
30
+ puts HELP
31
+ exit(ARGV == ['-h'] || ARGV == ['--help'] ? 0 : 64)
32
+ end
33
+
34
+ require 'shellwords'
35
+
36
+ cmd = ARGV.shift unless ARGV.first&.match?(/^\d+$/)
37
+ cmd = nil if cmd == ''
38
+ panes = ARGV
39
+
40
+ # Fetch idle fish panes in the current window in a single tmux query
41
+ idle_panes = `tmux list-panes -F '#P \#{pane_current_command}'`
42
+ .lines
43
+ .map(&:split)
44
+ .select { |_idx, running| running == 'fish' }
45
+ .map(&:first)
46
+
47
+ # Target specified panes that are idle, or all idle panes if none specified
48
+ targets = panes.empty? ? idle_panes : (idle_panes & panes)
49
+
50
+ # Dispatch command and Enter key directly to each target pane
51
+ targets.each do |idx|
52
+ action = cmd ? "pane #{idx} #{Shellwords.escape(cmd)}" : "pane #{idx}"
53
+ system('tmux', 'send-keys', '-t', ":.#{idx}", action, 'Enter')
54
+ end
@@ -0,0 +1,2 @@
1
+ set -gx fish_user_paths bin .bin
2
+ set -gx RUBYLIB lib
data/cache/.dictionary ADDED
File without changes
data/cache/.gemignore ADDED
@@ -0,0 +1,16 @@
1
+ ^(
2
+ (\.(?!version$)) | # Exclude all dot files except .version
3
+ (bin/bootstrap) | # Executables not to be packaged
4
+ (bin/maint) |
5
+ (examples/) | # Exclude Git page demos:
6
+ (img/) |
7
+ (\w+\.gemspec) | # Exclude development and repo maintance files:
8
+ (Gemfile) |
9
+ (History\.) |
10
+ (sig/) |
11
+ (test/) |
12
+ (tmp/) |
13
+ (TODO\.) |
14
+ (cucumber\.) | ## Cucumber files:
15
+ (features/)
16
+ )
data/cache/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /TODO.*
2
+ *.swp
3
+ /pkg/*.gem
4
+ /tags
5
+ tmp/*
6
+ !tmp/README.md
7
+ /.cache
8
+ /.config
9
+ /wiki
@@ -0,0 +1 @@
1
+ Welcome to <%=@project.title_case%>!
data/cache/.irbrc ADDED
@@ -0,0 +1,30 @@
1
+ # frozen_string_literal: true
2
+
3
+ # wile: require 'irbtools'
4
+
5
+ # Project-local .irbrc for template projects. Provides a zero-setup REPL by
6
+ # automatically requiring the gem and printing its version banner.
7
+ # Loaded by ~/.irbrc when executing irb from the project root:
8
+ # if not Dir.home == Dir.pwd and File.exist? '.irbrc'
9
+ # load '.irbrc'
10
+ # end
11
+
12
+ begin
13
+ project = File.basename __dir__
14
+ require project
15
+ klass = project.split('_').map { it.capitalize }.join
16
+ version = Object.const_get("#{klass}::VERSION")
17
+ message = "### #{klass}:#{version} Ruby:#{RUBY_VERSION} ###"
18
+ rescue StandardError, ScriptError => e
19
+ message = e.message
20
+ end
21
+
22
+ begin
23
+ require 'colorize'
24
+ require 'irbtools/configure'
25
+ msg = message.respond_to?(:blue) ? message.blue : message
26
+ Irbtools.welcome_message = msg
27
+ Irbtools.start
28
+ rescue LoadError
29
+ warn message if defined?(message)
30
+ end
data/cache/.lexicon ADDED
File without changes
data/cache/.prompt.erb ADDED
@@ -0,0 +1 @@
1
+ <%=@project.title_case%>>
@@ -0,0 +1 @@
1
+ ---
data/cache/.reek.yml ADDED
@@ -0,0 +1 @@
1
+ ---
@@ -0,0 +1,4 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ Layout/LineLength:
4
+ Max: 80
@@ -0,0 +1,4 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ Layout/LineLength:
4
+ Max: 80
@@ -0,0 +1 @@
1
+ 4.0.0
@@ -0,0 +1 @@
1
+ <%=RUBY_VERSION%>
@@ -0,0 +1,21 @@
1
+ ---
2
+ include:
3
+ - Rakefile
4
+ - Gemfile
5
+ - "*.gemspec"
6
+ - "**/*.rb"
7
+ exclude:
8
+ - spec/**/*
9
+ - test/**/*
10
+ - vendor/**/*
11
+ - ".bundle/**/*"
12
+ - cache/**/*
13
+ - tmp/**/*
14
+ - wiki/**/*
15
+ require: []
16
+ domains: []
17
+ reporters:
18
+ formatter:
19
+ require_paths: []
20
+ plugins: []
21
+ max_files: 5000
data/cache/.title.erb ADDED
@@ -0,0 +1 @@
1
+ <%=@project.title_case%>
data/cache/.version ADDED
@@ -0,0 +1 @@
1
+ 0.0.0