This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove os variation; use ssh/terminal for necessary terminal calls
- The golang/crypto/ssh/terminal package properly makes terminals raw on bsd, linux, and windows. There is no need to make the syscalls ourselves now for terminal handling. - The ReadFile syscall on Windows is just the underlying implementation for *File.Read(); using the higher level calls allows all OSs to share an implementation. The same goes for the *nix system calls. File reading can be done centrally as well. - Confirmed tests pass on OSX and Windows manually. - Moved terminal handling into the getPasswd method now that it is not OS dependend to remove unnecessary calls. - Fixes an issue where gopass would fail to pipe input properly due to inability to make raw. Now tests check that os.Stdin is a terminal before trying to make raw. - Adds tests to ensure proper pipe behavior - Modifies travis to test on linux and osx
- Loading branch information
1 parent
c89a328
commit e7699d3
Showing
6 changed files
with
120 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
language: go | ||
|
||
os: | ||
- linux | ||
- osx | ||
|
||
go: | ||
- 1.3 | ||
- 1.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters