- Remove 12 lines of code related to proxy configuration
- Remove 5 lines of code related to cipher configuration
- Add 18 lines of code related to proxy configuration
- Add a command timeout flag with a default value of 10 minutes
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Add a test for a target folder with spaces in the name
- Fix a bug in the `buildUnTarArgs` function that caused it to fail when receiving a target with spaces
- Remove unused code in the `TestRemoveDestFile` function
ref https://github.com/appleboy/scp-action/issues/85
- Upgrade Go version from `1.20` to `1.18`
- Update dependencies:
- `github.com/appleboy/com` from `v0.1.7` to `v0.1.6`
- `github.com/appleboy/easyssh-proxy` from `v1.3.10` to `v1.3.9`
- `github.com/fatih/color` from `v1.15.0` to `v1.9.0`
- `github.com/joho/godotenv` from `v1.5.1` to `v1.4.0`
- `github.com/stretchr/testify` from `v1.8.2` to `v1.7.0`
- `github.com/urfave/cli/v2` from `v2.25.1` to `v2.8.1`
- `golang.org/x/crypto` from `v0.8.0` to `v0.0.0-20220525230936-793ad666bf5e`
- `github.com/ScaleFT/sshkeys` from `v1.2.0` to `v0.0.0-20200327173127-6142f742bca5`
- `github.com/cpuguy83/go-md2man/v2` from `v2.0.2
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Remove `uname` check for system type from `removeAllDestFile` function.
- Add `ver` check for SSH command in `Exec` function.
- Remove `uname` check for system type from `Exec` function.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Update the version of `github.com/appleboy/easyssh-proxy` from `v1.3.9` to `v1.3.10` in `go.mod` file.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
- Remove error message for setting password and key at the same time
- Replace `errMissingHost` error check with a panic statement
ref: https://github.com/appleboy/scp-action/issues/86
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Replace the iteration over `p.Config.Host` with `trimValues(p.Config.Host)`
- Replace `len(p.Config.Host)` with `len(hosts)`
- Replace iteration over `p.Config.Host` with `for _, host := range hosts`
- Add `trimValues` function to trim spaces and empty values of a string slice
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Update the container to `golang:1.20-alpine`
- Add a new file `.goreleaser.yaml`
- Modify `.goreleaser.yaml` to include additional builds and flags for cross-compiling and building the binary
- Add a new checksum file to the release archives
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
- Change the `rmcmd` and `mkdircmd` functions to accept an OS parameter
- Remove `command_windows.go` file
- Modify `removeDestFile` and `Exec` functions to use the OS parameter
- Add OS detection logic to `removeAllDestFile` and `Exec` functions
- Modify `TestRemoveDestFile` function to use the OS parameter
fix https://github.com/appleboy/drone-scp/pull/119
- Delete `.github/workflows/binary.yml` file.
- Upgrade `github.com/appleboy/com` from `v0.1.6` to `v0.1.7` in `go.mod`.
- Upgrade `github.com/fatih/color` from `v1.14.1` to `v1.15.0` in `go.mod`.
- Upgrade `github.com/urfave/cli/v2` from `v2.24.4` to `v2.25.1` in `go.mod`.
- Upgrade `golang.org/x/crypto` from `v0.6.0` to `v0.8.0` in `go.mod`.
- Upgrade `github.com/mattn/go-isatty` from `v0.0.17` to `v0.0.18` in `go.mod`.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>