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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/h +28 -4
  3. data/lib/hiiro/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a775d5adf72d8f85a83d33d56b1aa84aeb71848fab3b2188c7713bfca55ab52f
4
- data.tar.gz: '019e992dd66ca7928b305fa6cb46119dadf8901687c8f9949a516661f97c2093'
3
+ metadata.gz: a94b559f926e6063309e12ab18a22be9c452994768647e0af1252980909fa330
4
+ data.tar.gz: 9c88e2f283302dd57b96814a707c355a96f6506ca8cd05a5e4e0278ce4612af3
5
5
  SHA512:
6
- metadata.gz: 9f67f1653c20ac52025ea98d0db8eb730b75e96c6a01329035944b7a6e00bce97cbd24055a32e98806304a6a0b6759821a3a34333fdc6c7455f507dcfc7bfcc0
7
- data.tar.gz: 2d590bd813eca7c21cf192125aa134011d74b0085351a050d7bcdcaab74e8f0bd4519de88d620dd1f93f8634a6d751d7bfb1c9600917781a0053f86a84ad9571
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
- bin_files.each do |f|
82
- old_name = File.basename(f)
83
- new_name = old_name.sub(/^h-/, "#{prefix}-")
84
- puts " - #{new_name}"
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
@@ -1,3 +1,3 @@
1
1
  class Hiiro
2
- VERSION = "0.1.131"
2
+ VERSION = "0.1.132"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hiiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.131
4
+ version: 0.1.132
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Toyota