mirror of
https://github.com/apricote/hcloud-upload-image.git
synced 2026-02-07 10:17:03 +00:00
refactor: change package names
This commit is contained in:
parent
62578ad5c5
commit
4b77b81689
24 changed files with 167 additions and 155 deletions
|
|
@ -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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue