Commit Graph

140 Commits

Author SHA1 Message Date
Chip Senkbeil
349c5382eb
Include neovim example 2021-10-07 00:00:34 -05:00
Chip Senkbeil
cb3f808a6c
Revise distant-lua readme example 2021-10-06 23:58:34 -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
5d28b69596
Bump to 0.15.0-alpha.5 2021-09-29 11:21:18 -05:00
Chip Senkbeil
fb747a3455
Add extra option as fallback for ssh options 2021-09-29 11:20:26 -05:00
Chip Senkbeil
6381006edd
Bump to 0.15.0-alpha.4 2021-09-29 10:57:58 -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
4a4a06ef80
Bump to 0.15.0-alpha.3 2021-09-29 00:05:32 -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
e136686b58
Add release script 2021-09-28 10:33:33 -05:00
Chip Senkbeil
6c1073a8ae
Add missing spawn_lsp method to SessionExt 2021-09-28 01:32:06 -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
32639166bc
Refactor codebase to support Minimum Supported Rust Version (MSRV) of 1.51.0 (#55) 2021-09-19 13:18:17 -05:00
Chip Senkbeil
f4eae0a467
Export SessionExt and related components 2021-09-19 00:10:56 -05:00
Chip Senkbeil
8c9a35025b
Update core readme with badges 2021-09-19 00:05:23 -05:00
Chip Senkbeil
2277f9634d
Replace DISTANT_AUTH_KEY with DISTANT_KEY for environment variable parsing 2021-09-18 21:49:21 -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
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