Commit Graph

318 Commits

Author SHA1 Message Date
Chip Senkbeil
c4d1011b14
Add session ext (#53)
* Add `SessionExt` trait for friendlier methods
* Create `Mailbox` and internal `PostOffice` to manage responses to requests
* Refactor `Session` to use a new `SessionChannel` underneath
* Refactor `Response` to always include an origin_id field instead of being optional
* Update `ProcStdout`, `ProcStderr`, and `ProcDone` to include origin id
* Replace `verbose` option with `log-level`
2021-09-18 20:06:57 -05:00
Chip Senkbeil
c45aea8fe7
Update readme to reflect current auth/encrypt logic 2021-09-14 13:09:57 -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
35fa1197da
Update remote process execution to automatically disabling logging to console; add sleep before checking file write/append results to account for delays from OS 2021-09-09 08:34:31 -05:00
Chip Senkbeil
4eb15bfe1e
Bump to 0.13.1 2021-09-09 00:25:21 -05:00
Chip Senkbeil
1fa0494e03
Provide more stable test for proc stdin 2021-09-08 23:22:49 -05:00
Chip Senkbeil
756b87a8ae
Fix json format for interactive proc run requests 2021-09-08 22:06:42 -05:00
Chip Senkbeil
9a7463fb03
Update cargo.lock 2021-09-05 20:38:54 -05:00
Chip Senkbeil
c5cbc90726
Fix failing CI (#39)
* Ignore proc_run tests that are failing due to WSL not using windows path

* Extend time for some shutdown task tests
2021-09-05 20:36:22 -05:00
Chip Senkbeil
cf95181418
Fix new clippy warnings, remove windows tests for cli as it does not support windows yet 2021-09-05 19:26:40 -05:00
Chip Senkbeil
dd5181d282
Fix clippy warning and add wsl configuration for windows 2021-09-05 18:34:41 -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
9db9814f2b
Add ci badge to readme 2021-09-05 16:02:18 -05:00
Chip Senkbeil
25a9081e23
Update ci workflow to use actions-rs 2021-09-05 15:59:30 -05:00
Chip Senkbeil
20f8b13f4d
Clean up warnings for distant-core, add distant-core readme, and initial Github action ci 2021-09-05 14:47:49 -05:00
Chip Senkbeil
ec4f635dbe
Clean up clippy warnings 2021-09-05 01:19:20 -05:00
Chip Senkbeil
9bd2112344
Refactor listener (#38)
* Finish implementing new listener logic

* Refactor cli tests to work with new format

* Implement tests for remote process

* Fix bugs in LSP stdout, stderr, and stdin

* Add tests for LSP remote process

* Update metadata request & response to support resolving the file type of symlinks
2021-09-03 23:49:37 -05:00
Chip Senkbeil
22829d9cc8
Implement remaining tests for server::handler, fix process cleanup in server state when terminates, fix symlink evaluation for metadata 2021-08-31 17:02:45 -05:00
Chip Senkbeil
7da28fecab
Add symlink to dir create tests in core 2021-08-31 10:56:55 -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
cf0193edc9
Add some extra logging and complete proc-run cli tests 2021-08-30 22:46:51 -05:00
Chip Senkbeil
b362ff5ab8
Fix process cleanup happening when only half of a tranport has closed 2021-08-30 12:07:10 -05:00
Chip Senkbeil
fc1c262f55
Fix some proc issues, but proc tests still not fully passing 2021-08-30 01:01:08 -05:00
Chip Senkbeil
f66a234873
Unfinished tests for proc-run cli 2021-08-29 21:04:09 -05:00
Chip Senkbeil
2e2dfa3a46
Add cli metadata tests 2021-08-29 19:39:37 -05:00
Chip Senkbeil
e3cfbd5968
Refactor exists to print true/false in shell format 2021-08-29 19:11:21 -05:00
Chip Senkbeil
cab0fe0875
Add tests for cli dir-read, dir-create, remove, and copy 2021-08-29 18:33:25 -05:00
Chip Senkbeil
32150f0956
Fix file-write and file-append not parsing input correctly 2021-08-29 16:47:00 -05:00
Chip Senkbeil
da08d2db4f
Refactor test folder structure for cli tests and add file_read_text tests 2021-08-29 13:17:41 -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
5d0a352414
Refactor tests to receive ctx ref instead of ctx (twice as slow, but check if that's the case when we have all tests) 2021-08-29 02:14:25 -05:00
Chip Senkbeil
aa2925d33a
Update to have context use threads 2021-08-29 02:00:39 -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
fcdd1ebd48
Add more test outlines for process & lsp process of core client 2021-08-28 15:57:35 -05:00
Chip Senkbeil
07cd434e98
Refactor DistantServer to support initialization using any listener 2021-08-28 15:35:35 -05:00
Chip Senkbeil
16af8b06e2
Fix shutdown immediately happening when time not provided 2021-08-28 15:14:31 -05:00
Chip Senkbeil
260cb0e99d
Refactor session to use mpsc instead of broadcast channel, add LSP command 2021-08-28 02:13:30 -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
1ca3cd7859
Big refactor that is not finished 2021-08-25 21:33:11 -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
69af44cb8e
Add lsp session mode w/ parser and tests 2021-08-19 00:34:54 -05:00
Chip Senkbeil
f12c3428eb
Move around some net structs and impls to their own modules, add some client tests 2021-08-18 03:57:42 -05:00
Chip Senkbeil
aded5fd16f
Merge branch 'master' of github.com:chipsenkbeil/distant 2021-08-18 02:37:38 -05:00
Chip Senkbeil
e857dabe43
Add tests for codec and transport; move net::client to dedicated file 2021-08-18 02:34:04 -05:00
Chip Senkbeil
160631bc7b
Add login shell support by defualt to run distant command on launch 2021-08-16 14:01:13 -05:00