Commit Graph

57 Commits

Author SHA1 Message Date
Chip Senkbeil
89d1cf0e5a
Remove MacOS universal and ARM Lua libs due to https://github.com/khvzak/mlua/issues/82 2021-10-08 18:49:40 -05:00
Chip Senkbeil
0dca0c9aa6
Bump to 0.15.0-alpha.7 w/ new release.yml 2021-10-07 15:40:07 -05:00
Chip Senkbeil
16bed4690b
Add lua lib & support compiling distant cli on windows (#59)
* Update distant-ssh2 with new changes to wezterm-ssh
* Implement lua module (distant-lua)
* Implement tests for lua module (distant-lua-tests)
* Add untested windows daemon support
* distant binary now compiles on windows
* Split up Github actions for Windows, MacOS, and Linux into individual yaml files
2021-10-06 23:17:07 -05:00
Chip Senkbeil
b27f0a4109
Bump to 0.15.0-alpha.6 2021-09-29 12:03:42 -05:00
Chip Senkbeil
43ffd7ae58
Update Ssh2AuthHandler to take a lifetime 2021-09-29 12:00:41 -05:00
Chip Senkbeil
fb747a3455
Add extra option as fallback for ssh options 2021-09-29 11:20:26 -05:00
Chip Senkbeil
97536c7b2b
Refactor Metadata and SystemInfo response data types to support subtypes as singular parameters 2021-09-29 10:54:37 -05:00
Chip Senkbeil
fd2a5a985c
Update Metadata to be cloneable, debuggable, serializable, and deserializable; remove unused ssh2 feature deps from core 2021-09-29 00:05:03 -05:00
Chip Senkbeil
e586891463
Update to 0.15.0-alpha.2
* Rename SessionExt -> SessionChannelExt
* Rename SessionExtError -> SessionChannelExtError
* Update SessionChannel to implement SessionChannelExt
* Update Session to not implement SessionChannelExt as it gets this for
  free through Deref/DerefMut targeting SessionChannel
2021-09-28 11:49:26 -05:00
Chip Senkbeil
88efcb2e5e
Mark version as pre-release 0.15.0-alpha.1 2021-09-28 10:45:53 -05:00
Chip Senkbeil
0a11ec65a2
Add native ssh (#57)
* Bump to 0.15.0
* Add new distant-ssh2 subcrate to provide an alternate session as an ssh client
* Add rpassword & wezterm-ssh dependencies
* Rename core -> distant-core in project directory structure and move ssh2 feature into distant-ssh2 crate
* Upgrade tokio to 1.12,
* Update github actions to detect changes and apply testing for only those changes
* Add method parameter to support distant & ssh methods for action and lsp subcommands
* Add ssh-host, ssh-port, and ssh-user parameters to specify information for ssh method
2021-09-28 00:04:26 -05:00
Chip Senkbeil
f4eae0a467
Export SessionExt and related components 2021-09-19 00:10:56 -05:00
Chip Senkbeil
3c15a90886
Fix log suppression to occur when running remote process and not logging to a file 2021-09-18 21:25:24 -05:00
Chip Senkbeil
cad8ed5ac9
Bump next version to 0.15.0 and update README to reflect new version 2021-09-18 20:49:12 -05:00
Chip Senkbeil
e4273a1be9
Refactor codec (#47)
* Remove DistantCodec
* Add Codec trait to support encode & decode
* Add XChaCha20Poly1305 dependency in place of orion
* Add XChaCha20Poly1305Codec that encrypts/signs using XChaCha20Poly1305
* Add PlainCodec that does no encrypting/signing
* Refactor Transport to take generic Codec
* Rewrite to no longer use blake256
* Remove k256 dependency
* Remove Transport::from_handshake as no longer doing EDCH key exchange
* Fix stdout/stderr being sent before proc_start by adding post_hook support to handler such that proc_run tasks are not spawned until proc_start is sent as response
* Remove unneeded else if condition when checking join error type
2021-09-14 12:54:45 -05:00
Chip Senkbeil
9180f4d207
Bump to 0.14.0 2021-09-09 08:38:44 -05:00
Chip Senkbeil
4eb15bfe1e
Bump to 0.13.1 2021-09-09 00:25:21 -05:00
Chip Senkbeil
9a7463fb03
Update cargo.lock 2021-09-05 20:38:54 -05:00
Chip Senkbeil
34d6b574c1
Fix clippy warnings, fix rustfmt, refactor proc-run tests to use generated scripts instead of script files 2021-09-05 17:20:47 -05:00
Chip Senkbeil
d1f69cf024
Migrate distant-core tests from using tempfile to assert_fs crate 2021-08-30 23:24:42 -05:00
Chip Senkbeil
8cdc9f271d
Refactor distant binary to yield software exit code when oneoff operation fails 2021-08-29 13:04:49 -05:00
Chip Senkbeil
188b5f74e4
Add first example of an e2e test for distant cli 2021-08-29 01:03:18 -05:00
Chip Senkbeil
54a7f567a1
Bump Cargo.lock to fix cargo-audit callout, update gitignore to prevent Cargo.lock for library 2021-08-28 18:42:28 -05:00
Chip Senkbeil
df81894785
Split distant into distant-core and distant (bin) 2021-08-28 18:15:00 -05:00
Chip Senkbeil
156fe50423
Remove tokio-stream dependency 2021-08-28 16:03:41 -05:00
Chip Senkbeil
ba6ebcfcb8
Refactor codebase to be more testable & add some initial tests 2021-08-25 21:33:27 -05:00
Chip Senkbeil
2b23cd379c
Rename mode -> format; bump to 0.13.0 2021-08-25 21:33:06 -05:00
Chip Senkbeil
33abcbb5fb
Update logger to properly shutdown when process exits 2021-08-19 00:35:07 -05:00
Chip Senkbeil
f6e9195503
Update error response to include kind, refactor kind to be from a defined set, support new exists request/response 2021-08-15 16:18:55 -05:00
Chip Senkbeil
e2fd3a9bae
Add proper exit codes mirroring sysexits from FreeBSD 2021-08-14 01:27:35 -05:00
Chip Senkbeil
86e4d7f2fc
Refactor to support a payload for request/response with multiple entries; bump to 0.10.0 2021-08-10 12:42:14 -05:00
Chip Senkbeil
24d0c3b2ab
Bump to v0.9.5 and update couple of cli descriptions 2021-08-08 13:14:55 -05:00
Chip Senkbeil
fac7687f27
Remove excessive trace logging of send/recv at transport level as this isn't useful 2021-08-07 14:29:40 -05:00
Chip Senkbeil
1a1f219594
Update DirRead to sort returned paths by name 2021-08-07 00:39:28 -05:00
Chip Senkbeil
809baaee85
Add extra aliases for different actions like creating a dir and running a process 2021-08-06 13:10:07 -05:00
Chip Senkbeil
f51b8420f3
Update metadata human printout to not include canonicalized_path if missing 2021-08-06 12:52:20 -05:00
Chip Senkbeil
9a67418227
Add option to metadata request to return the canonicalized path in the response; bump to 0.9.0 2021-08-06 12:27:59 -05:00
Chip Senkbeil
df80f261bc
Add client timeout support, system info message, and support for including root path in retrieved dir entries 2021-08-05 19:46:46 -05:00
Chip Senkbeil
b3a4d79507
Update stdin/stdout/stderr pipes to read into buffers instead of waiting for newlines 2021-08-05 09:39:22 -05:00
Chip Senkbeil
4edf8021cc
Add features and fixes for upcoming 0.6.0
1. Capture errors when listing directory contents and report them
   as part of the response instead of exiting on first error
2. Refactor DirRead request to support providing a depth (instead
   of the "all" flag), canonicalizing the paths, and have the choice
   of returning absolute paths instead of relative
3. Fix forked process for launch not connecting over TCP to
   server due to tokio runtime being inherited from parent
4. Fix leftover launch process caused by forking w/ the old runtime
5. Fix stdout/stderr of running processes not being reported
   (when process looping and not returning) by wrapping stdout/stderr
   in `BufReader` and sending back one line at a time for each
6. Refactor ProcStdout and ProcStderr responses to send back a line
   field that is a string instead of a data field that is a byte vec
   as we are now reading and sending back whole lines, which makes
   more sense and aligns with output flushing and common stdout/stderr
   processing by other programs
2021-08-04 20:43:02 -05:00
Chip Senkbeil
d4775477aa
Refactor codebase into cli and core modules, add unix socket support, bump to 0.5.0 2021-08-03 21:41:51 -05:00
Chip Senkbeil
a7dd0eb435
Refactor codebase with breaking changes
1. Add --session argument to launch and action
   subcommands that accepts file or pipe for
   launch and environment, file, or pipe for action
2. Unify session string as "DISTANT DATA <host> <port> <auth key>"
3. Rename utils to session
4. Split out Session file functionality to SessionFile
5. Remove SessionError in favor of io::Error
6. Bump version to 0.4.0 in preparation for that release
2021-08-02 19:57:38 -05:00
Chip Senkbeil
d1e342f04f
Fix bug where writing file did not work from cli, add text options for write and append, bump to 0.3.2 2021-08-01 19:40:44 -05:00
Chip Senkbeil
3c68bb3377
Add metadata request & response; bump to 0.3.1 2021-08-01 17:34:34 -05:00
Chip Senkbeil
f24bb6067d
Rename send -> action and bump to 0.3.0 2021-08-01 14:48:24 -05:00
Chip Senkbeil
3cbdfb19d9
Add extra session commands 2021-08-01 03:55:28 -05:00
Chip Senkbeil
7563855217
Bump version to 0.2.2 2021-08-01 00:16:32 -05:00
Chip Senkbeil
8fd4047b57
Bump version to 0.2.1 2021-07-31 20:32:29 -05:00
Chip Senkbeil
9c5b723511
Bump version 2021-07-31 00:33:47 -05:00
Chip Senkbeil
f59ae7f6ed
Fix dropped messages on client side and lockup of transport when trying to read and write concurrently 2021-07-28 15:51:42 -05:00