Commit Graph

17 Commits (0a11ec65a2511daa7b783ac55e7269656ec9e450)

Author SHA1 Message Date
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
3 years ago
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`
3 years ago
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
3 years ago
Chip Senkbeil 756b87a8ae
Fix json format for interactive proc run requests 3 years ago
Chip Senkbeil cf95181418
Fix new clippy warnings, remove windows tests for cli as it does not support windows yet 3 years ago
Chip Senkbeil cf0193edc9
Add some extra logging and complete proc-run cli tests 3 years ago
Chip Senkbeil b362ff5ab8
Fix process cleanup happening when only half of a tranport has closed 3 years ago
Chip Senkbeil f66a234873
Unfinished tests for proc-run cli 3 years ago
Chip Senkbeil 8cdc9f271d
Refactor distant binary to yield software exit code when oneoff operation fails 3 years ago
Chip Senkbeil df81894785
Split distant into distant-core and distant (bin) 3 years ago
Chip Senkbeil bb7829e3f0
Add support for launch to be interactive 3 years ago
Chip Senkbeil d9c2b9942a
Consolidate session production to just the session struct 3 years ago
Chip Senkbeil de69b419a4
Fix CPU pegging when stdin stream has closed 3 years ago
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
3 years ago
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 3 years ago
Chip Senkbeil 3c68bb3377
Add metadata request & response; bump to 0.3.1 3 years ago
Chip Senkbeil f24bb6067d
Rename send -> action and bump to 0.3.0 3 years ago