ssh-config 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/CHANGES +11 -0
  2. data/bin/ssh-config +4 -3
  3. metadata +7 -5
data/CHANGES ADDED
@@ -0,0 +1,11 @@
1
+ CHANGES
2
+ ----------------------------------------------------------------------
3
+
4
+ 2010-03-29:
5
+ -----------
6
+
7
+ - Version 0.1.1
8
+
9
+ - Search strings are highlighted
10
+ - Fixed usage/comments to say 'search' instead of 'find'
11
+
@@ -8,7 +8,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'ssh-con
8
8
  # ssh-config dump
9
9
  # ssh-config list
10
10
  # ssh-config show <host-nickname>
11
- # ssh-config find <regex>
11
+ # ssh-config search <regex>
12
12
  # ssh-config set <host-nickname> <setting> <value> [<setting> <value> [...]]
13
13
  # Note: "<setting> -" deletes a setting
14
14
  # ssh-config rm <host-nickname> # delete config settings for that host
@@ -30,7 +30,7 @@ Commands:
30
30
  dump - parse and dump the config file
31
31
  list - list configured hosts
32
32
  show <host> - display the settings for host
33
- find <pattern> - find all hosts with any detail matching pattern
33
+ search <pattern> - search all hosts with any detail matching pattern
34
34
  set <host> <setting> <value> [<setting> <value> [...]] - set a value
35
35
  NOTE: If host does not exist, it will be created
36
36
  NOTE: If value is -, setting will be deleted, e.g. set User -
@@ -51,7 +51,8 @@ when 'list'
51
51
  when 'show'
52
52
  puts config.show(argv.shift)
53
53
  when 'search'
54
- puts config.search(argv.shift)
54
+ search = argv.shift
55
+ puts config.search(search).gsub(search, "\033[43m#{search}\033[0m")
55
56
  when 'cp', 'copy'
56
57
  config.copy! argv.shift, argv.shift
57
58
  when 'unset'
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - David Brady
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-26 00:00:00 -06:00
17
+ date: 2010-03-29 00:00:00 -06:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -27,13 +27,15 @@ extensions: []
27
27
  extra_rdoc_files:
28
28
  - README.rdoc
29
29
  - MIT-LICENSE
30
+ - CHANGES
30
31
  files:
32
+ - CHANGES
33
+ - MIT-LICENSE
34
+ - README.rdoc
31
35
  - bin/ssh-config
32
36
  - lib/config_file.rb
33
37
  - lib/config_section.rb
34
38
  - lib/ssh-config.rb
35
- - README.rdoc
36
- - MIT-LICENSE
37
39
  has_rdoc: true
38
40
  homepage: http://github.com/dbrady/ssh-config/
39
41
  licenses: []