helpline 0.1.9 → 0.1.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Makefile +9 -0
- data/exe/helpline +14 -9
- data/lib/helpline/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f41d7b1a047c1c1a30dc83ac12164a61d36647c679cccb8060e118d9c99e36
|
4
|
+
data.tar.gz: be8a74829437318b7aad7fcef431c027821ce2fab8cbd52f8da4e6ad7711d054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9564dbd8ea2d3a4b7fff1a4a4e8da0f2ed4e75e9632d13a0acf2dec7e843f9a13a263b0b90416f7b6f48e3627a1102e371d16eaf51505de299571333fe0babdd
|
7
|
+
data.tar.gz: b2e914d31e8bffcaa1458831e13ef0d533fd9354602f6ae0e912e82763a387ebd59727326ee2a665ec38f3effdfcb5e460e6d4072ca336f9a72d04387eaab65b
|
data/Makefile
CHANGED
data/exe/helpline
CHANGED
@@ -144,32 +144,36 @@ class HelpLine
|
|
144
144
|
end
|
145
145
|
}
|
146
146
|
|
147
|
-
# puts "GENERATE #{params.split('|').join(' ')} "
|
148
|
-
|
149
147
|
res = g.generate " #{ARGV.join(' ').sub(/\[/,'').sub(/\]/,'')} "
|
150
148
|
|
149
|
+
File.open("/tmp/helpline.cmd","w"){ |f|
|
150
|
+
f.puts ARGV.join(' ')
|
151
|
+
}
|
151
152
|
if res[0].length == 0
|
152
153
|
puts "ヘルプがみつかりません"
|
153
|
-
File.open("/tmp/helpline.cmd","w"){ |f|
|
154
|
-
f.puts ARGV.join(' ')
|
155
|
-
}
|
156
154
|
exit
|
157
155
|
end
|
158
156
|
|
157
|
+
git_repository = File.exist?(".git")
|
159
158
|
listed = {}
|
160
159
|
list = res[0].find_all { |a| # 0 ambig
|
161
160
|
# a = ["現在の状況を表示する {56}", "git status {56}"], etc.
|
162
|
-
if
|
161
|
+
if a[0] =~ /voidvoidvoid/
|
162
|
+
false
|
163
|
+
elsif a[0] =~ /^git:/ && !git_repository
|
163
164
|
false
|
164
165
|
else
|
165
|
-
listed[a[1]]
|
166
|
+
if listed[a[1]]
|
167
|
+
false
|
168
|
+
else
|
169
|
+
listed[a[1]] = true
|
170
|
+
end
|
166
171
|
end
|
167
172
|
}
|
168
173
|
|
169
174
|
#
|
170
175
|
# HelpLineメニュー表示し、カーソル移動で選択
|
171
176
|
#
|
172
|
-
|
173
177
|
help_number = {}
|
174
178
|
list.each_with_index { |entry,ind|
|
175
179
|
entry[0].sub!(/\s*{(\d*)}$/,'')
|
@@ -223,9 +227,10 @@ class HelpLine
|
|
223
227
|
cmd = list[sel][1]
|
224
228
|
|
225
229
|
Curses.move(lines,0)
|
230
|
+
Curses.tol
|
231
|
+
|
226
232
|
#Curses.move(0,0)
|
227
233
|
##Curses.down
|
228
|
-
##Curses.tol
|
229
234
|
Curses.print_inverse("「#{desc}」を実行")
|
230
235
|
puts " (ソース: http://scrapbox.io/HelpLine/#{data['pages'][help_number[desc]]})"
|
231
236
|
File.open("/tmp/helpline.cmd","w"){ |f|
|
data/lib/helpline/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: helpline
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toshiyuki Masui
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|