Add mpw-ssh
This commit is contained in:
parent
54fd0659d7
commit
417506d693
4 changed files with 59 additions and 0 deletions
22
mpw-ssh
Executable file
22
mpw-ssh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/ruby
|
||||
# author: nishiki
|
||||
# mail: nishiki@yaegashi.fr
|
||||
# info: a simple script who manage your passwords
|
||||
|
||||
require 'rubygems'
|
||||
require 'pathname'
|
||||
|
||||
APP_ROOT = File.dirname(Pathname.new(__FILE__).realpath)
|
||||
require "#{APP_ROOT}/CliSSH.rb"
|
||||
|
||||
if ARGV.length != 1
|
||||
puts "Usage: mpw-ssh search"
|
||||
exit 2
|
||||
end
|
||||
|
||||
search = ARGV[0]
|
||||
|
||||
cli = CliSSH.new()
|
||||
cli.ssh(search)
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue