hiiro 0.1.275 → 0.1.276
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/bin/h-app +49 -0
- data/lib/hiiro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dbb35ade8607567d50414b9afd843402eb78317a3c3c2354a3361e582050850d
|
|
4
|
+
data.tar.gz: d2f02c76fc3121282ab489c7e997b3b54e60ab8f8103e7a1f7fb69ccdd65313b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69a8cf3d7cdf9cac920e4c9c7ab671931918f58e6b83bf431eeff7548729cda101466b00d8e04eb2697ce9048511e9af48580ab5983eccf5b953547e308868aa
|
|
7
|
+
data.tar.gz: c8a03d151fdd60e32325f00f5a93b3cca71297eb215cd22f059db913325cbfef9fde163b368bfc0fd7f7e109a929ff2752c8a82653192c07f7fc965741a9b5b6
|
data/CHANGELOG.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Done. CHANGELOG.md updated with v0.1.
|
|
1
|
+
Done. CHANGELOG.md updated with v0.1.276 entry at the top.
|
data/bin/h-app
CHANGED
|
@@ -43,6 +43,7 @@ def send_cd(path)
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
|
|
46
47
|
Hiiro.run(*ARGV) {
|
|
47
48
|
add_subcmd(:config) {
|
|
48
49
|
edit_files(APPS_FILE)
|
|
@@ -202,6 +203,54 @@ Hiiro.run(*ARGV) {
|
|
|
202
203
|
puts "Removed app '#{app_name}' (was: #{removed_path})"
|
|
203
204
|
}
|
|
204
205
|
|
|
206
|
+
add_subcmd(:fd) { |app_name=nil, *args|
|
|
207
|
+
root = git.root || task_root
|
|
208
|
+
unless root
|
|
209
|
+
puts "Not in a git repo or task - cannot resolve path"
|
|
210
|
+
next
|
|
211
|
+
end
|
|
212
|
+
result = environment.app_matcher.find(app_name.to_s)
|
|
213
|
+
unless result.match?
|
|
214
|
+
puts "App '#{app_name}' not found"
|
|
215
|
+
next
|
|
216
|
+
end
|
|
217
|
+
app_path = File.join(root, result.first.item.relative_path)
|
|
218
|
+
Dir.chdir(app_path)
|
|
219
|
+
exec('fd', *args)
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
add_subcmd(:rg) { |app_name=nil, *args|
|
|
223
|
+
root = git.root || task_root
|
|
224
|
+
unless root
|
|
225
|
+
puts "Not in a git repo or task - cannot resolve path"
|
|
226
|
+
next
|
|
227
|
+
end
|
|
228
|
+
result = environment.app_matcher.find(app_name.to_s)
|
|
229
|
+
unless result.match?
|
|
230
|
+
puts "App '#{app_name}' not found"
|
|
231
|
+
next
|
|
232
|
+
end
|
|
233
|
+
app_path = File.join(root, result.first.item.relative_path)
|
|
234
|
+
Dir.chdir(app_path)
|
|
235
|
+
exec('rg', *args)
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
add_subcmd(:vim) { |app_name=nil, *args|
|
|
239
|
+
root = git.root || task_root
|
|
240
|
+
unless root
|
|
241
|
+
puts "Not in a git repo or task - cannot resolve path"
|
|
242
|
+
next
|
|
243
|
+
end
|
|
244
|
+
result = environment.app_matcher.find(app_name.to_s)
|
|
245
|
+
unless result.match?
|
|
246
|
+
puts "App '#{app_name}' not found"
|
|
247
|
+
next
|
|
248
|
+
end
|
|
249
|
+
app_path = File.join(root, result.first.item.relative_path)
|
|
250
|
+
Dir.chdir(app_path)
|
|
251
|
+
exec('vim', *args)
|
|
252
|
+
}
|
|
253
|
+
|
|
205
254
|
add_subcmd(:service) do |*svc_args|
|
|
206
255
|
sm = Hiiro::ServiceManager.new
|
|
207
256
|
Hiiro::ServiceManager.build_hiiro(this, sm).run
|
data/lib/hiiro/version.rb
CHANGED