agen 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1 -1
- data/Gemfile.lock +1 -1
- data/README.md +2 -1
- data/lib/agen/cli.rb +7 -2
- data/lib/agen/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: 3fff6346fa930fe70a1f586b9bb6d0441f3cce432e799f11722eb61da51fc6a4
|
4
|
+
data.tar.gz: ccb5265d8550cfb15d152d8a1044aefee4596199571e218c6b9fa12117e3d8de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 607ad6a1cc1c7dd89bead3464dd0b0fa047c9eace831aaa26c0d4bc779b14973a26e45690636486885de4cdbdfc707a546ec7019a8ef927a3fa5860d8cf65fe7
|
7
|
+
data.tar.gz: 9c4bf033685b91a936892f3a761943b0584903e8306d545d7fd0ce3ad72d060255e2bd76c4de675456fbb30e0274431a7e0905d7fc7177cd7a8e70dd89321ba1
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -15,10 +15,11 @@ available options.
|
|
15
15
|
|
16
16
|
```
|
17
17
|
Usage: agen [options]
|
18
|
+
-v, --version Version
|
18
19
|
-n, --number=NUMBER Number of aliases to generate
|
19
20
|
-a, --auto Aliases will be generated and applied automatically
|
20
21
|
-r, --rcfile=RCFILE Path to shell rc file
|
21
|
-
-
|
22
|
+
-s, --shell-history=HISTFILE Path to shell history file
|
22
23
|
```
|
23
24
|
|
24
25
|
Right now, this will only work with `zsh` or `bash`, but you can specify unique shell config files using the `-r` and `-h` options (though there is no guarantee that your history file will be read properly). By default, agen reads from `.zsh_history` and
|
data/lib/agen/cli.rb
CHANGED
@@ -14,6 +14,11 @@ module Agen
|
|
14
14
|
OptionParser.new do |opts|
|
15
15
|
opts.banner = "Usage: agen [options]"
|
16
16
|
|
17
|
+
opts.on("-v", "--version", String, "Version") do |v|
|
18
|
+
puts Agen::VERSION
|
19
|
+
return false
|
20
|
+
end
|
21
|
+
|
17
22
|
opts.on("-nNUMBER", "--number=NUMBER", Integer, "Number of aliases to generate") do |n|
|
18
23
|
options[:number] = n
|
19
24
|
end
|
@@ -26,8 +31,8 @@ module Agen
|
|
26
31
|
options[:rcfile] = r
|
27
32
|
end
|
28
33
|
|
29
|
-
opts.on("-
|
30
|
-
options[:histfile] =
|
34
|
+
opts.on("-sHISTFILE", "--shell-history=HISTFILE", String, "Path to shell history file") do |s|
|
35
|
+
options[:histfile] = s
|
31
36
|
end
|
32
37
|
end.parse!
|
33
38
|
|
data/lib/agen/version.rb
CHANGED