agen 0.3 → 0.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: edd821d0314f78d537a2228181e4f1dfd0ecaceddc8d8a67bb783499911e7ccb
4
- data.tar.gz: 721e0d0871630027ac23c0e08d7dd54e3e20ef26fda674fe755ebb02e0e4be48
3
+ metadata.gz: 3fff6346fa930fe70a1f586b9bb6d0441f3cce432e799f11722eb61da51fc6a4
4
+ data.tar.gz: ccb5265d8550cfb15d152d8a1044aefee4596199571e218c6b9fa12117e3d8de
5
5
  SHA512:
6
- metadata.gz: f2c802aa56ab03338dbe58638a5ab5cf525c13ffef6b0a6b11e5aff39b430d4645f3116d6d49e37425df1704029148ca8df3d8d5dc4af84d0b3dff8ff8263d1c
7
- data.tar.gz: d02a95bbee062a61ebe93160c03f773706e45264b09cd4cae9a2aab2c1a45c97078192b399466854e22e87d80266c6aa29e61167ce3f8b726b4a07180311a450
6
+ metadata.gz: 607ad6a1cc1c7dd89bead3464dd0b0fa047c9eace831aaa26c0d4bc779b14973a26e45690636486885de4cdbdfc707a546ec7019a8ef927a3fa5860d8cf65fe7
7
+ data.tar.gz: 9c4bf033685b91a936892f3a761943b0584903e8306d545d7fd0ce3ad72d060255e2bd76c4de675456fbb30e0274431a7e0905d7fc7177cd7a8e70dd89321ba1
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## [Released]
2
2
 
3
- ## [0.3] - 2021-06-17
3
+ ## [0.3.1] - 2021-06-17
4
4
  - Adds support for bash shell.
5
5
  - Adds ability to pass custom rcfile and histfile options.
6
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- agen (0.3)
4
+ agen (0.3.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
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
- -h, --histfile=HISTFILE Path to shell history file
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("-hHISTFILE", "--histfile=HISTFILE", String, "Path to shell history file") do |h|
30
- options[:histfile] = h
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Agen
4
- VERSION = "0.3"
4
+ VERSION = "0.3.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agen
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Thom