Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: WithSubsystem #224

Merged
merged 14 commits into from
Jan 22, 2024
Merged

feat: WithSubsystem #224

merged 14 commits into from
Jan 22, 2024

Conversation

caarlos0
Copy link
Member

@caarlos0 caarlos0 commented Jan 16, 2024

This allows for easy integration with github.com/pkg/sftp.

Also changed to examples/scp to provide both SCP and SFTP.

closes #40

This would allow users to more easily provide both SCP and SFTP servers
to their users.

closes #40

Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 added the enhancement New feature or request label Jan 16, 2024
@caarlos0 caarlos0 self-assigned this Jan 16, 2024
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Copy link

codecov bot commented Jan 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (1fbb5ec) 76.40% compared to head (4e6d1af) 76.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
+ Coverage   76.40%   76.58%   +0.18%     
==========================================
  Files          17       17              
  Lines         907      914       +7     
==========================================
+ Hits          693      700       +7     
  Misses        160      160              
  Partials       54       54              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@aymanbagabas aymanbagabas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, some cosmetic suggestions

examples/scp/main.go Outdated Show resolved Hide resolved
scp/scp.go Outdated Show resolved Hide resolved
scp/scp.go Outdated Show resolved Hide resolved
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
scp/filesystem.go Outdated Show resolved Hide resolved
@caarlos0 caarlos0 changed the title feat: better integration with pkg/sftp feat: WithSubsystem Jan 19, 2024
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
scp/filesystem.go Outdated Show resolved Hide resolved
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
@caarlos0 caarlos0 merged commit e5d20f5 into main Jan 22, 2024
14 checks passed
@caarlos0 caarlos0 deleted the sftp branch January 22, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scp example requires -O flag with openssh 9.0
2 participants