Skip to content

Commit ab028c4

Browse files
authored
Merge pull request #1 from vicajilau/feature/dartssh3-reimplementation
dartssh3 reimplementation
2 parents fbc3945 + 8eea422 commit ab028c4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+252
-257
lines changed

.github/workflows/dart.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
11
name: Dart
22

3-
on:
4-
push:
5-
branches: [master]
6-
pull_request:
7-
branches: [master]
3+
on: push
84

95
jobs:
106
test:
@@ -13,11 +9,10 @@ jobs:
139
strategy:
1410
matrix:
1511
os: [ubuntu-latest]
16-
# sdk: [stable, beta, dev, 2.10.3, 2.12.0-29.10.beta]
17-
sdk: [stable, dev]
12+
sdk: [stable]
1813

1914
steps:
20-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
2116
- uses: dart-lang/setup-dart@v1
2217
with:
2318
sdk: ${{ matrix.sdk }}
@@ -43,4 +38,11 @@ jobs:
4338
run: dart pub global run coverage:test_with_coverage
4439

4540
- name: Upload coverage
46-
uses: codecov/codecov-action@v3
41+
uses: codecov/codecov-action@v4
42+
with:
43+
fail_ci_if_error: true # optional (default = false)
44+
files: ./coverage1.xml,./coverage2.xml # optional
45+
flags: unittests # optional
46+
name: codecov-umbrella # optional
47+
token: ${{ secrets.CODECOV_TOKEN }} # required
48+
verbose: true # optional (default = false)

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [3.0.0] - 2024-08-23
2+
- Reimplemented as dartssh3.
3+
- DCM updated.
4+
- Fixed warnings related with new DCM version.
5+
- Dependencies updated.
6+
- Fixed Flutter 3.24 issue.
7+
18
## [2.9.1-pre] - 2023-04-02
29
- Make the type of `SSHForwardChannel.sink` to `StreamSink<List<int>>` to match
310
its super class.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 xuty
3+
Copyright (c) 2024 Victor Carreras
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
11
<!-- Title-->
22
<p align="center">
3-
<h1 align="center">DartSSH 2</h1>
3+
<h1 align="center">DartSSH 3</h1>
44
</p>
55

66
<!-- Badges-->
77
<p align="center">
8-
<a href="https://pub.dartlang.org/packages/dartssh2">
9-
<img src="https://img.shields.io/pub/v/dartssh2.svg">
8+
<a href="https://pub.dartlang.org/packages/dartssh3">
9+
<img src="https://img.shields.io/pub/v/dartssh3.svg">
1010
</a>
11-
<a href="https://pub.dev/packages/dartssh2">
12-
<img src="https://img.shields.io/pub/popularity/dartssh2?logo=dart">
11+
<a href="https://pub.dev/packages/dartssh3">
12+
<img src="https://img.shields.io/pub/popularity/dartssh3?logo=dart">
1313
</a>
14-
<a href="https://www.dartdocs.org/documentation/dartssh2/latest/">
15-
<img src="https://img.shields.io/badge/Docs-dartssh2-blue.svg">
14+
<a href="https://www.dartdocs.org/documentation/dartssh3/latest/">
15+
<img src="https://img.shields.io/badge/Docs-dartssh3-blue.svg">
1616
</a>
17-
<a href="https://github.com/TerminalStudio/dartssh2/actions/workflows/dart.yml">
18-
<img src="https://github.com/TerminalStudio/dartssh2/actions/workflows/dart.yml/badge.svg">
17+
<a href="https://github.com/vicajilau/dartssh3/actions/workflows/dart.yml">
18+
<img src="https://github.com/vicajilau/dartssh3/actions/workflows/dart.yml/badge.svg">
1919
</a>
20+
2021
<a href="https://ko-fi.com/F1F61K6BL">
2122
<img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-F16061?style=flat&logo=buy-me-a-coffee&logoColor=white&labelColor=555555">
2223
</a>
@@ -26,7 +27,7 @@
2627
SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as easy to use.
2728
</p>
2829

29-
> **dartssh2** is now a complete rewrite of [dartssh].
30+
> **dartssh3** is a fork of [dartssh3] with a fresh start.
3031
3132
## ✨ Features
3233

@@ -36,7 +37,7 @@ SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as e
3637
- **Forwarding**: Supports local forwarding and remote forwarding.
3738
- **SFTP**: Supports all operations defined in [SFTPv3 protocol](https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-02) including upload, download, list, link, remove, rename, etc.
3839

39-
## 🧬 Built with dartssh2
40+
## 🧬 Built with dartssh3
4041

4142
<table>
4243
<tr>
@@ -53,8 +54,8 @@ SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as e
5354
<tr>
5455
<!-- ServerBox -->
5556
<td>
56-
<img src="https://raw.githubusercontent.com/TerminalStudio/dartssh2/master/media/showcase-1-serverbox.1.jpg" width="150px">
57-
<img src="https://raw.githubusercontent.com/TerminalStudio/dartssh2/master/media/showcase-1-serverbox.2.png" width="150px">
57+
<img src="https://raw.githubusercontent.com/vicajilau/dartssh3/master/media/showcase-1-serverbox.1.jpg" width="150px">
58+
<img src="https://raw.githubusercontent.com/vicajilau/dartssh3/master/media/showcase-1-serverbox.2.png" width="150px">
5859
</td>
5960
<!-- Ssh! No Ports -->
6061
<td>
@@ -72,7 +73,7 @@ SSH and SFTP client written in pure Dart, aiming to be feature-rich as well as e
7273

7374
```sh
7475
# Install the `dartssh` command.
75-
dart pub global activate dartssh2_cli
76+
dart pub global activate dartssh3_cli
7677

7778
# Then use `dartssh` as regular `ssh` command.
7879
dartssh user@example.com
@@ -344,20 +345,20 @@ print('free: ${statvfs.blockSize * statvfs.freeBlocks}');
344345

345346
### SSH client:
346347

347-
- [example/example.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/example.dart)
348-
- [example/execute.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/execute.dart)
349-
- [example/forward_local.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/forward_local.dart)
350-
- [example/forward_remote.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/forward_remote.dart)
351-
- [example/pubkey.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/pubkey.dart)
352-
- [example/shell.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/shell.dart)
353-
- [example/ssh_jump.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/ssh_jump.dart)
348+
- [example/example.dart](https://github.com/vicajilau/dartssh3/blob/master/example/example.dart)
349+
- [example/execute.dart](https://github.com/vicajilau/dartssh3/blob/master/example/execute.dart)
350+
- [example/forward_local.dart](https://github.com/vicajilau/dartssh3/blob/master/example/forward_local.dart)
351+
- [example/forward_remote.dart](https://github.com/vicajilau/dartssh3/blob/master/example/forward_remote.dart)
352+
- [example/pubkey.dart](https://github.com/vicajilau/dartssh3/blob/master/example/pubkey.dart)
353+
- [example/shell.dart](https://github.com/vicajilau/dartssh3/blob/master/example/shell.dart)
354+
- [example/ssh_jump.dart](https://github.com/vicajilau/dartssh3/blob/master/example/ssh_jump.dart)
354355

355356
### SFTP:
356-
- [example/sftp_read.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/sftp_read.dart)
357-
- [example/sftp_list.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/sftp_list.dart)
358-
- [example/sftp_stat.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/sftp_stat.dart)
359-
- [example/sftp_upload.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/sftp_upload.dart)
360-
- [example/sftp_filetype.dart](https://github.com/TerminalStudio/dartssh2/blob/master/example/sftp_filetype.dart)
357+
- [example/sftp_read.dart](https://github.com/vicajilau/dartssh3/blob/master/example/sftp_read.dart)
358+
- [example/sftp_list.dart](https://github.com/vicajilau/dartssh3/blob/master/example/sftp_list.dart)
359+
- [example/sftp_stat.dart](https://github.com/vicajilau/dartssh3/blob/master/example/sftp_stat.dart)
360+
- [example/sftp_upload.dart](https://github.com/vicajilau/dartssh3/blob/master/example/sftp_upload.dart)
361+
- [example/sftp_filetype.dart](https://github.com/vicajilau/dartssh3/blob/master/example/sftp_filetype.dart)
361362

362363

363364

@@ -430,4 +431,4 @@ https://github.com/GreenAppers/dartssh by GreenAppers
430431

431432
dartssh is released under the terms of the MIT license. See [LICENSE](LICENSE).
432433

433-
[dartssh]: https://github.com/GreenAppers/dartssh
434+
[dartssh3]: https://github.com/vicajilau/dartssh3

analysis_options.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,9 @@ linter:
66

77
analyzer:
88
plugins:
9-
- dart_code_metrics
9+
- dart_code_metrics_presets
1010

1111
dart_code_metrics:
12-
anti-patterns:
13-
# - long-method
14-
# - long-parameter-list
1512
metrics:
1613
cyclomatic-complexity: 20
1714
maximum-nesting-level: 5

example/example.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:convert';
22
import 'dart:io';
33

4-
import 'package:dartssh2/dartssh2.dart';
4+
import 'package:dartssh3/dartssh3.dart';
55

66
void main(List<String> args) async {
77
final socket = await SSHSocket.connect('localhost', 22);

example/execute.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:io';
22
import 'dart:typed_data';
33

4-
import 'package:dartssh2/dartssh2.dart';
4+
import 'package:dartssh3/dartssh3.dart';
55

66
void main(List<String> args) async {
77
final client = SSHClient(

example/forward_local.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'dart:io';
22

3-
import 'package:dartssh2/dartssh2.dart';
3+
import 'package:dartssh3/dartssh3.dart';
44

55
void main(List<String> args) async {
66
final socket = await SSHSocket.connect('localhost', 22);

example/forward_remote.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import 'dart:io';
22

3-
import 'package:dartssh2/dartssh2.dart';
3+
import 'package:dartssh3/dartssh3.dart';
44

55
void main(List<String> args) async {
66
final socket = await SSHSocket.connect('localhost', 22);

example/pubkey.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import 'dart:convert';
22
import 'dart:io';
33

4-
import 'package:dartssh2/dartssh2.dart';
4+
import 'package:dartssh3/dartssh3.dart';
55

66
void main(List<String> args) async {
77
final socket = await SSHSocket.connect('localhost', 22);

0 commit comments

Comments
 (0)