Move packages out of src/

This commit is contained in:
2024-08-08 16:35:03 -04:00
parent 57d7cdf8f9
commit ba4f7f2340
25 changed files with 0 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
package sync
import (
"fmt"
"golang.org/x/crypto/ssh/terminal"
"os"
)
// inputKeyFilePassphrase prompts the user for a passphrase for an SSH key file
// TODO support non-CLI implementations
func inputKeyFilePassphrase() []byte {
fmt.Print("\nEnter passphrase for your SSH keyfile: ")
passphrase, _ := terminal.ReadPassword(int(os.Stdin.Fd()))
fmt.Println()
return passphrase
}