hiiro 0.1.131 → 0.1.132
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/exe/h +28 -4
- 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: a94b559f926e6063309e12ab18a22be9c452994768647e0af1252980909fa330
|
|
4
|
+
data.tar.gz: 9c88e2f283302dd57b96814a707c355a96f6506ca8cd05a5e4e0278ce4612af3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3cfcd22992e39f48c4293f5a839e57831353e626d5930ca07f5ee093a782e36d43a241e45d0437a4b1fbd450537ae397abffdb37904af98288314c3809c6149b
|
|
7
|
+
data.tar.gz: a7f92cc931a2fee9cb6c10e8b7e7e3bbe3a695385309c1973bb07ab22b00e2f9d0dcf374b3e320ad3179fc16d4267ac59a6fb0340ad2713e3e1046dfd6d4337b
|
data/exe/h
CHANGED
|
@@ -68,6 +68,15 @@ Hiiro.run(*ARGV, cwd: Dir.pwd, tasks: true) do
|
|
|
68
68
|
puts
|
|
69
69
|
|
|
70
70
|
# Copy bin scripts, renaming from h-* to #{prefix}-*
|
|
71
|
+
bin_groups = {
|
|
72
|
+
'tmux' => %w[buffer pane session window],
|
|
73
|
+
'git' => %w[branch commit sha wtree],
|
|
74
|
+
'github' => %w[pr],
|
|
75
|
+
'claude' => %w[claude],
|
|
76
|
+
'hiiro' => %w[bin plugin],
|
|
77
|
+
'other' => %w[app config link misc project todo],
|
|
78
|
+
}
|
|
79
|
+
|
|
71
80
|
bin_files = Dir["#{source_bins}/h-*"]
|
|
72
81
|
if bin_files.any?
|
|
73
82
|
bin_files.each do |src|
|
|
@@ -77,11 +86,26 @@ Hiiro.run(*ARGV, cwd: Dir.pwd, tasks: true) do
|
|
|
77
86
|
FileUtils.cp(src, dest_path)
|
|
78
87
|
FileUtils.chmod(0755, dest_path)
|
|
79
88
|
end
|
|
89
|
+
|
|
80
90
|
puts "Installed #{bin_files.size} subcommands to #{dest_bin}"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
91
|
+
puts
|
|
92
|
+
|
|
93
|
+
bin_groups.each do |group, names|
|
|
94
|
+
matched = names.select { |n| bin_files.any? { |f| File.basename(f) == "h-#{n}" } }
|
|
95
|
+
next if matched.empty?
|
|
96
|
+
|
|
97
|
+
puts " #{group}:"
|
|
98
|
+
matched.each { |n| puts " #{prefix}-#{n}" }
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Any bins not in a group
|
|
102
|
+
grouped = bin_groups.values.flatten
|
|
103
|
+
ungrouped = bin_files
|
|
104
|
+
.map { |f| File.basename(f).sub(/^h-/, '') }
|
|
105
|
+
.reject { |n| grouped.include?(n) }
|
|
106
|
+
if ungrouped.any?
|
|
107
|
+
puts " uncategorized:"
|
|
108
|
+
ungrouped.each { |n| puts " #{prefix}-#{n}" }
|
|
85
109
|
end
|
|
86
110
|
else
|
|
87
111
|
puts "No subcmds found in #{source_bins}"
|
data/lib/hiiro/version.rb
CHANGED