Skip to content

Commit

Permalink
add rsync and scp middlewares
Browse files Browse the repository at this point in the history
  • Loading branch information
pomdtr committed Feb 7, 2025
1 parent 7a3fdc1 commit a7d1dd9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion cmd/up.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ import (
"github.com/picosh/pobj"
"github.com/pomdtr/smallweb/storage"

"github.com/picosh/send/protocols/rsync"
"github.com/picosh/send/protocols/scp"
"github.com/picosh/send/protocols/sftp"
"github.com/pomdtr/smallweb/app"
"github.com/pomdtr/smallweb/watcher"
Expand Down Expand Up @@ -289,7 +291,10 @@ func NewCmdUp() *cobra.Command {
return
}
}
}),
},
rsync.Middleware(handler),
scp.Middleware(handler),
),
)

if err != nil {
Expand Down

0 comments on commit a7d1dd9

Please sign in to comment.