Skip to content
This repository was archived by the owner on Jun 12, 2022. It is now read-only.

Commit 0ef2c69

Browse files
committed
update to 0.0.3 — add hide option
1 parent 1e9f3a5 commit 0ef2c69

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

bin/ssh-bookmarks

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class Application
66
require 'highline/import'
77

8-
# Core methods
8+
# core methods
99
class Foundation
1010
# SSH methods
1111
module SSH
@@ -19,7 +19,7 @@ class Application
1919
PATH = "#{ENV['HOME']}/.ssh/config"
2020
OPTIONS = %w(hidden)
2121

22-
# prepare config
22+
# parse configuration file
2323
def initialize
2424
# load ssh config
2525
new = File.readlines(PATH).map(&:split)
@@ -45,7 +45,7 @@ class Application
4545
def options(raw, index)
4646
@prev_index = 0 unless defined? @prev_index
4747
options = {}
48-
index = index-1
48+
index += 1 if index > 0
4949
# catch options between range
5050
raw[@prev_index..index].each do |opt|
5151
if comment?(opt) && option?(opt)

config/spring.rb

Whitespace-only changes.

lib/ssh-bookmarks/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module SshBookmarks
2-
VERSION = "0.0.2"
2+
VERSION = "0.0.3"
33
end

0 commit comments

Comments
 (0)