my_help 1.2.3 → 1.2.4p1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardoc/checksums +1 -1
- data/.yardoc/objects/root.dat +0 -0
- data/Gemfile.lock +10 -11
- data/README.org +117 -84
- data/README_e.org +110 -0
- data/development_memo.org +5 -0
- data/doc/MyHelp/CLI.html +751 -0
- data/doc/MyHelp/Config.html +693 -0
- data/doc/MyHelp/Error.html +124 -0
- data/doc/MyHelp/GetConfig.html +196 -0
- data/doc/MyHelp/Git.html +291 -0
- data/doc/MyHelp/Init.html +449 -0
- data/doc/MyHelp/List.html +581 -0
- data/doc/MyHelp/Md2Hash.html +632 -0
- data/doc/MyHelp/Modify.html +393 -0
- data/doc/MyHelp/Org2Hash.html +544 -0
- data/doc/MyHelp.html +135 -0
- data/doc/Org2Yaml.html +497 -0
- data/doc/_index.html +230 -0
- data/doc/class_list.html +51 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +58 -0
- data/doc/css/style.css +497 -0
- data/doc/file.README.html +181 -0
- data/doc/file_list.html +56 -0
- data/doc/frames.html +22 -0
- data/doc/index.html +181 -0
- data/doc/js/app.js +314 -0
- data/doc/js/full_list.js +216 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +451 -0
- data/doc/top-level-namespace.html +112 -0
- data/lib/my_help/cli.rb +28 -2
- data/lib/my_help/org2hash.rb +2 -1
- data/lib/my_help/version.rb +1 -1
- data/lib/templates/emacs.org +2 -1
- data/lib/templates/emacs_j.org +76 -0
- data/lib/templates/example.org +3 -2
- data/lib/templates/my_help_j.org +24 -0
- data/lib/templates/org_j.org +25 -0
- data/my_help_install.org +33 -0
- metadata +34 -5
- data/README_j.org +0 -143
- data/tmp.txt +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57dd2017348f4f767f150ed04a72e315727f12ed631e8659ea53f23331fcd0a7
|
4
|
+
data.tar.gz: d107a0dbe00c1a982e09120baeb54987b41bd81fd225f4024d225c01857d9f0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b289228ae5c9813e240624f729dbb02587ea289c02c3964281ce430f0d61ac300343e163a4353333ccdd1e8d4a0a0e035eada749703de3d68ac460bce8989899
|
7
|
+
data.tar.gz: c768e59554b37376df9e3307d212cabdd30518c7bd6af215b4f8ea555a6b01ac68f0ea05c2d940d57011f82fe404a9343d03ff2b859e96811a74388beb1051cc
|
data/.yardoc/checksums
CHANGED
@@ -8,4 +8,4 @@ lib/my_help/git_cli.rb bb04396f0b9d54ecb13100fe5cde029f7dbb0ea7
|
|
8
8
|
lib/my_help/md2hash.rb 35ebd32d3f545b40cd9ebb1972dc60d53b58b22a
|
9
9
|
lib/my_help/org2yml.rb 334d0a7b648dc75b1d9504ec6d68937c70e96343
|
10
10
|
lib/my_help/version.rb 618ac9ac5ac451afc28fc6bae7bd657fc71a915a
|
11
|
-
lib/my_help/org2hash.rb
|
11
|
+
lib/my_help/org2hash.rb a6e90f0a910b16f54765d06c1fbb034ded267720
|
data/.yardoc/objects/root.dat
CHANGED
Binary file
|
data/Gemfile.lock
CHANGED
@@ -18,9 +18,9 @@ GEM
|
|
18
18
|
thor (~> 1.0)
|
19
19
|
builder (3.2.4)
|
20
20
|
childprocess (4.1.0)
|
21
|
-
colorize (0.
|
21
|
+
colorize (1.0.1)
|
22
22
|
command_line (2.0.1)
|
23
|
-
contracts (0.
|
23
|
+
contracts (0.17)
|
24
24
|
cucumber (8.0.0)
|
25
25
|
builder (~> 3.2, >= 3.2.4)
|
26
26
|
cucumber-ci-environment (~> 9.0, >= 9.0.4)
|
@@ -33,7 +33,7 @@ GEM
|
|
33
33
|
mime-types (~> 3.4, >= 3.4.1)
|
34
34
|
multi_test (~> 1.1, >= 1.1.0)
|
35
35
|
sys-uname (~> 1.2, >= 1.2.2)
|
36
|
-
cucumber-ci-environment (9.
|
36
|
+
cucumber-ci-environment (9.2.0)
|
37
37
|
cucumber-core (11.0.0)
|
38
38
|
cucumber-gherkin (~> 23.0, >= 23.0.1)
|
39
39
|
cucumber-messages (~> 18.0, >= 18.0.0)
|
@@ -49,29 +49,28 @@ GEM
|
|
49
49
|
ffi (1.15.5)
|
50
50
|
mime-types (3.4.1)
|
51
51
|
mime-types-data (~> 3.2015)
|
52
|
-
mime-types-data (3.
|
52
|
+
mime-types-data (3.2023.0218.1)
|
53
53
|
multi_test (1.1.0)
|
54
54
|
rake (13.0.6)
|
55
55
|
rspec (3.12.0)
|
56
56
|
rspec-core (~> 3.12.0)
|
57
57
|
rspec-expectations (~> 3.12.0)
|
58
58
|
rspec-mocks (~> 3.12.0)
|
59
|
-
rspec-core (3.12.
|
59
|
+
rspec-core (3.12.2)
|
60
60
|
rspec-support (~> 3.12.0)
|
61
|
-
rspec-expectations (3.12.
|
61
|
+
rspec-expectations (3.12.3)
|
62
62
|
diff-lcs (>= 1.2.0, < 2.0)
|
63
63
|
rspec-support (~> 3.12.0)
|
64
|
-
rspec-mocks (3.12.
|
64
|
+
rspec-mocks (3.12.5)
|
65
65
|
diff-lcs (>= 1.2.0, < 2.0)
|
66
66
|
rspec-support (~> 3.12.0)
|
67
67
|
rspec-support (3.12.0)
|
68
|
-
sys-uname (1.2.
|
68
|
+
sys-uname (1.2.3)
|
69
69
|
ffi (~> 1.1)
|
70
|
-
thor (1.2.
|
70
|
+
thor (1.2.2)
|
71
71
|
|
72
72
|
PLATFORMS
|
73
73
|
arm64-darwin-20
|
74
|
-
x86_64-linux
|
75
74
|
|
76
75
|
DEPENDENCIES
|
77
76
|
aruba (~> 2.1.0)
|
@@ -80,4 +79,4 @@ DEPENDENCIES
|
|
80
79
|
rspec (~> 3.0)
|
81
80
|
|
82
81
|
BUNDLED WITH
|
83
|
-
2.
|
82
|
+
2.4.14
|
data/README.org
CHANGED
@@ -1,80 +1,96 @@
|
|
1
|
-
|
1
|
+
# my_help
|
2
|
+
#+AUTHOR: Shigeto R. Nishitani
|
3
|
+
#+EMAIL: (concat "nishitani@kwansei.ac.jp")
|
4
|
+
#+LANGUAGE: jp
|
5
|
+
#+OPTIONS: H:4 toc:t num:2
|
6
|
+
#+SETUPFILE: /Users/bob/.emacs.d/org-mode/theme-readtheorg.setup
|
7
|
+
#+STARTUP: indent nolineimages
|
2
8
|
#+OPTIONS: ^:{}
|
3
|
-
* Name
|
4
|
-
- my_help :: manual like help for each user
|
5
|
-
|
6
|
-
* Summary
|
7
|
-
This gem makes and supplies user specific helps, emulating CUI(CLI) help
|
8
|
-
usage.
|
9
|
-
|
10
|
-
* Target
|
11
|
-
A very novice of learning a specific operation,
|
12
|
-
such as CUI, shell, or emacs,
|
13
|
-
has a difficulty in remembering commands and grammers.
|
14
|
-
Some simple `key' reminds all, but no key brings nothing.
|
15
|
-
Especially a non-English-native has a strong difficulty
|
16
|
-
on the key remembering.
|
17
|
-
The problems are,
|
18
|
-
- a man(ual) is in English
|
19
|
-
- a man is heavily documented
|
20
|
-
- On web, searching the same key word,
|
21
|
-
- and reading the same URI repeatedly
|
22
|
-
- but a memo goes away somewhere...
|
23
|
-
|
24
|
-
* Specs
|
25
|
-
This gem aims to supply own help by gem environment.
|
26
|
-
Specs are,
|
27
|
-
- user makes his own help
|
28
|
-
- supplies a template
|
29
|
-
- a same format, looks, operation, and hierarchy
|
30
|
-
- easily see, read
|
31
|
-
- supplies editing and install commands.
|
32
|
-
|
33
|
-
Wiki targets the whole engineer, my_help targets a specific person.
|
34
|
-
Half of the wiki aim should be covered by my_help.
|
35
|
-
Making own manual is one of the best practices for remembering operations.
|
36
|
-
Memo applications are good, if you remember the key word.
|
37
|
-
my_help supplies the key for remembering the word.
|
38
|
-
|
39
|
-
* Usage
|
40
|
-
** Install
|
41
|
-
|
42
|
-
: $ gem install my_help
|
43
|
-
|
44
|
-
** Simple Usage
|
45
|
-
At first, you can see the commands supplied by my_help.
|
46
|
-
#+begin_example
|
47
|
-
> my_help
|
48
|
-
NAME
|
49
|
-
my_help - make own help and list.
|
50
|
-
|
51
|
-
SYNOPSIS
|
52
|
-
my_help [global options] command [command options] [arguments...]
|
53
|
-
|
54
|
-
VERSION
|
55
|
-
0.7.0
|
56
|
-
|
57
|
-
GLOBAL OPTIONS
|
58
|
-
--help - Show this message
|
59
|
-
--version - Display the program version
|
60
|
-
|
61
|
-
COMMANDS
|
62
|
-
delete - delete HELP_NAME help
|
63
|
-
edit - edit HELP_NAME help
|
64
|
-
help - Shows a list of commands or help for one command
|
65
|
-
list - list all helps, specific HELP, or item
|
66
|
-
new - make new HELP_NAME
|
67
|
-
#+end_example
|
68
|
-
|
69
|
-
When you add HELP_NAME and item (-o)wo'
|
70
|
-
|
71
|
-
: my_help list
|
72
|
-
: my_help list emacs_help
|
73
|
-
: my_help list emacs_help -f
|
74
|
-
: my_help list emacs_help file
|
75
9
|
|
76
|
-
|
77
|
-
|
10
|
+
* 概要
|
11
|
+
:PROPERTIES:
|
12
|
+
:CUSTOM_ID: 概要
|
13
|
+
:END:
|
14
|
+
|
15
|
+
CUI(CLA)ヘルプのUsage出力を真似て,user独自のhelpを作成・提供するgem.
|
16
|
+
|
17
|
+
|
18
|
+
* (my_helpで解決しようとする)問題点
|
19
|
+
:PROPERTIES:
|
20
|
+
:CUSTOM_ID: my_helpで解決しようとする問題点
|
21
|
+
:END:
|
22
|
+
|
23
|
+
CUIやshell, 何かのプログラミング言語などを習得しようとする初心者は,
|
24
|
+
commandや文法を覚えるのに苦労します.
|
25
|
+
少しのkey(とっかかり)があると思い出すんですが,
|
26
|
+
うろ覚えでは間違えて路頭に迷います.
|
27
|
+
問題点は,
|
28
|
+
+ manは基本的に英語
|
29
|
+
+ manualでは重たい
|
30
|
+
+ いつもおなじことをwebで検索して
|
31
|
+
+ 同じとこ見ている
|
32
|
+
+ memoしても,どこへ置いたか忘れる
|
33
|
+
などです.
|
34
|
+
|
35
|
+
* 特徴
|
36
|
+
:PROPERTIES:
|
37
|
+
:CUSTOM_ID: 特徴
|
38
|
+
:END:
|
39
|
+
|
40
|
+
これらをCLAとして提供しようというのが,このgemの目的です.
|
41
|
+
仕様としては,
|
42
|
+
- userが自分にあったmanを作成
|
43
|
+
- 雛形を提供
|
44
|
+
- おなじformat, looks, 操作, 階層構造
|
45
|
+
- すぐに手が届く
|
46
|
+
- それらを追加・修正・削除できる
|
47
|
+
|
48
|
+
memoソフトでは,検索が必要となりますが,my_helpは
|
49
|
+
key(記憶のとっかかり)を提供することが目的です.
|
50
|
+
RPGでレベル上げとかアイテムを貯めるようにして,
|
51
|
+
プログラミングでスキルを発展させてください.
|
52
|
+
|
53
|
+
VSCodeやGithub Copilotではcodeの候補を挙げてくれますが,
|
54
|
+
物覚えの悪い作者は,人の名前をitem分けして,こそっと使っています.
|
55
|
+
|
56
|
+
* 使用法
|
57
|
+
:PROPERTIES:
|
58
|
+
:CUSTOM_ID: 使用法
|
59
|
+
:END:
|
60
|
+
** インストール
|
61
|
+
|
62
|
+
: > gem install my_help
|
63
|
+
です.
|
64
|
+
|
65
|
+
** 簡単な使用法
|
66
|
+
:PROPERTIES:
|
67
|
+
:CUSTOM_ID: 簡単な使用法
|
68
|
+
:END:
|
69
|
+
|
70
|
+
まずは,
|
71
|
+
#+begin_src bash
|
72
|
+
> my_help
|
73
|
+
Commands:
|
74
|
+
my_help delete HELP # delete HELP
|
75
|
+
my_help edit HELP # edit HELP
|
76
|
+
my_help help [COMMAND] # Describe available commands or one specific command
|
77
|
+
my_help list [HELP] [ITEM] # list all helps, specific HELP, or ITEM
|
78
|
+
my_help new HELP # make new HELP
|
79
|
+
my_help set_editor EDITOR_NAME # set editor to EDITOR_NAME
|
80
|
+
my_help setup # set up the test database
|
81
|
+
my_help version # show version
|
82
|
+
#+end_src
|
83
|
+
としてください.このlistにNAMEやITEMを加えて行くとわかると思います.
|
84
|
+
|
85
|
+
#+begin_src bash
|
86
|
+
> my_help list
|
87
|
+
> my_help list emacs
|
88
|
+
> my_help list emacs -f
|
89
|
+
> my_help list emacs file
|
90
|
+
#+end_src
|
91
|
+
として動かしてみてください.
|
92
|
+
|
93
|
+
#+begin_src bash
|
78
94
|
- emacsのキーバインド
|
79
95
|
-
|
80
96
|
特殊キー操作
|
@@ -95,16 +111,33 @@ When you add HELP_NAME and item (-o)wo'
|
|
95
111
|
, query_replace : query_replace
|
96
112
|
-r, ruby-mode : ruby-mode
|
97
113
|
-d, dired : ファイラとして使う
|
98
|
-
#+
|
114
|
+
#+end_src
|
115
|
+
|
116
|
+
** my_helpがやっていること
|
117
|
+
my_helpの個々のヘルプファイルは'~/.my_help'に置かれています.
|
118
|
+
ヘルプファイルのフォーマットはEmacsのorg-modeです.
|
119
|
+
これをEditorで叩いて編集したり,
|
120
|
+
そこから情報を取り出したりしています.
|
121
|
+
単にファイル操作を集約しているだけなのですが,
|
122
|
+
これが面倒で...
|
123
|
+
|
124
|
+
|
125
|
+
** 独自のhelpを作る方法
|
126
|
+
独自のhelpを作る方法です.まずは,
|
127
|
+
|
128
|
+
: $ my_help new new_help
|
99
129
|
|
100
|
-
|
101
|
-
|
102
|
-
|
130
|
+
で,new_helpというtemplateが用意されます.
|
131
|
+
: $ my_help edit new_help
|
132
|
+
で編集してください. Emacs org形式で,格納されています.
|
103
133
|
|
104
|
-
|
105
|
-
: my_help edit new_help
|
106
|
-
The file is stored in emacs org mode.
|
134
|
+
: $ my_help delete new_help
|
107
135
|
|
108
|
-
|
109
|
-
|
136
|
+
すると消されます.
|
137
|
+
** editorの変更
|
138
|
+
: $ my_help set_editor vim
|
139
|
+
でeditorを変更できます.codeとかは確認していますが,
|
140
|
+
それ以外で動いたり,動かなかったりを報告してください.
|
110
141
|
|
142
|
+
OS Xで'emacs'とした時にGUI版が立ち上がって嫌だという場合は,
|
143
|
+
'emacs -nw'として下さい.
|
data/README_e.org
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
#+STARTUP: indent nolineimages content
|
2
|
+
#+OPTIONS: ^:{}
|
3
|
+
* Name
|
4
|
+
- my_help :: manual like help for each user
|
5
|
+
|
6
|
+
* Summary
|
7
|
+
This gem makes and supplies user specific helps, emulating CUI(CLI) help
|
8
|
+
usage.
|
9
|
+
|
10
|
+
* Target
|
11
|
+
A very novice of learning a specific operation,
|
12
|
+
such as CUI, shell, or emacs,
|
13
|
+
has a difficulty in remembering commands and grammers.
|
14
|
+
Some simple `key' reminds all, but no key brings nothing.
|
15
|
+
Especially a non-English-native has a strong difficulty
|
16
|
+
on the key remembering.
|
17
|
+
The problems are,
|
18
|
+
- a man(ual) is in English
|
19
|
+
- a man is heavily documented
|
20
|
+
- On web, searching the same key word,
|
21
|
+
- and reading the same URI repeatedly
|
22
|
+
- but a memo goes away somewhere...
|
23
|
+
|
24
|
+
* Specs
|
25
|
+
This gem aims to supply own help by gem environment.
|
26
|
+
Specs are,
|
27
|
+
- user makes his own help
|
28
|
+
- supplies a template
|
29
|
+
- a same format, looks, operation, and hierarchy
|
30
|
+
- easily see, read
|
31
|
+
- supplies editing and install commands.
|
32
|
+
|
33
|
+
Wiki targets the whole engineer, my_help targets a specific person.
|
34
|
+
Half of the wiki aim should be covered by my_help.
|
35
|
+
Making own manual is one of the best practices for remembering operations.
|
36
|
+
Memo applications are good, if you remember the key word.
|
37
|
+
my_help supplies the key for remembering the word.
|
38
|
+
|
39
|
+
* Usage
|
40
|
+
** Install
|
41
|
+
|
42
|
+
: $ gem install my_help
|
43
|
+
|
44
|
+
** Simple Usage
|
45
|
+
At first, you can see the commands supplied by my_help.
|
46
|
+
#+begin_example
|
47
|
+
> my_help
|
48
|
+
NAME
|
49
|
+
my_help - make own help and list.
|
50
|
+
|
51
|
+
SYNOPSIS
|
52
|
+
my_help [global options] command [command options] [arguments...]
|
53
|
+
|
54
|
+
VERSION
|
55
|
+
0.7.0
|
56
|
+
|
57
|
+
GLOBAL OPTIONS
|
58
|
+
--help - Show this message
|
59
|
+
--version - Display the program version
|
60
|
+
|
61
|
+
COMMANDS
|
62
|
+
delete - delete HELP_NAME help
|
63
|
+
edit - edit HELP_NAME help
|
64
|
+
help - Shows a list of commands or help for one command
|
65
|
+
list - list all helps, specific HELP, or item
|
66
|
+
new - make new HELP_NAME
|
67
|
+
#+end_example
|
68
|
+
|
69
|
+
When you add HELP_NAME and item (-o)wo'
|
70
|
+
|
71
|
+
: my_help list
|
72
|
+
: my_help list emacs_help
|
73
|
+
: my_help list emacs_help -f
|
74
|
+
: my_help list emacs_help file
|
75
|
+
|
76
|
+
|
77
|
+
#+BEGIN_EXAMPLE
|
78
|
+
- emacsのキーバインド
|
79
|
+
-
|
80
|
+
特殊キー操作
|
81
|
+
- C-f, controlキーを押しながら 'f'
|
82
|
+
- M-f, escキーを押した後一度離して'f'
|
83
|
+
- 操作の中断C-g, 操作の取り消し(Undo) C-x u
|
84
|
+
, head : head
|
85
|
+
, license : license
|
86
|
+
-c, cursor : cursor
|
87
|
+
-e, edit : edit
|
88
|
+
-s, short_cut : short_cut
|
89
|
+
-f, file : file
|
90
|
+
-q, quit : quit
|
91
|
+
-p, page : page
|
92
|
+
-w, window : window
|
93
|
+
-b, buffer : buffer
|
94
|
+
-m, mode : mode
|
95
|
+
, query_replace : query_replace
|
96
|
+
-r, ruby-mode : ruby-mode
|
97
|
+
-d, dired : ファイラとして使う
|
98
|
+
#+END_EXAMPLE
|
99
|
+
|
100
|
+
** Make your own help
|
101
|
+
For making your new help, you can do tha as follows:
|
102
|
+
: my_help new new_help
|
103
|
+
|
104
|
+
A templeate is compied, then you can edit as
|
105
|
+
: my_help edit new_help
|
106
|
+
The file is stored in emacs org mode.
|
107
|
+
|
108
|
+
You can delete if as follows:
|
109
|
+
: my_help delete new_help
|
110
|
+
|
data/development_memo.org
CHANGED
@@ -12,6 +12,11 @@
|
|
12
12
|
#+TWITTER: off
|
13
13
|
#+SETUPFILE: https://fniessen.github.io/org-html-themes/org/theme-readtheorg.setup
|
14
14
|
|
15
|
+
* new development <2024-09-26 Thu>
|
16
|
+
- test作ろう
|
17
|
+
- '* ' 問題の解決
|
18
|
+
- Japanese版の用意
|
19
|
+
|
15
20
|
* <2023-01-07 Sat> Thor
|
16
21
|
いくつかのaliasをThorで実現したい
|
17
22
|
- my_help -v
|