refactor: change package names

This commit is contained in:
Julian Tölle 2024-05-02 21:42:36 +02:00
parent 62578ad5c5
commit 4b77b81689
24 changed files with 167 additions and 155 deletions

View file

@ -1,12 +0,0 @@
package sshsession
import "golang.org/x/crypto/ssh"
func Run(client *ssh.Client, cmd string) ([]byte, error) {
sess, err := client.NewSession()
if err != nil {
return nil, err
}
defer sess.Close()
return sess.CombinedOutput(cmd)
}