mirror of
https://github.com/nishiki/manage-password.git
synced 2025-02-22 10:50:10 +00:00
12 lines
251 B
Ruby
12 lines
251 B
Ruby
|
require 'open3'
|
||
|
|
||
|
Open3.popen3("./bin/mpw config --init test@test.com") do |stdin, stdout, stderr, thread|
|
||
|
stdin.puts 'test'
|
||
|
stdin.puts 'test'
|
||
|
end
|
||
|
|
||
|
Open3.popen3("./bin/mpw list") do |stdin, stdout, stderr, thread|
|
||
|
stdin.puts 'test'
|
||
|
puts stdout
|
||
|
end
|