Commit Graph

31 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 2277f9634d
Replace DISTANT_AUTH_KEY with DISTANT_KEY for environment variable parsing 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 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 3 years ago
Chip Senkbeil 34d6b574c1
Fix clippy warnings, fix rustfmt, refactor proc-run tests to use generated scripts instead of script files 3 years ago
Chip Senkbeil df81894785
Split distant into distant-core and distant (bin) 3 years ago
Chip Senkbeil d4775477aa
Refactor codebase into cli and core modules, add unix socket support, bump to 0.5.0 3 years ago
Chip Senkbeil bb7829e3f0
Add support for launch to be interactive 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 f24bb6067d
Rename send -> action and bump to 0.3.0 3 years ago
Chip Senkbeil 3cbdfb19d9
Add extra session commands 3 years ago
Chip Senkbeil b4706e88bc
Add interactive loop for shell and json modes; fix some minor discrepancies 3 years ago
Chip Senkbeil c7b8db517c
Rename format to mode; remove unsupported --detach option on proc-run 3 years ago
Chip Senkbeil b9cec3399b
Rename ADDRESS to HOST for positional host argument of launch command 3 years ago
Chip Senkbeil bada62c7da
Remove unused --use-ipv6 option on launch command 3 years ago
Chip Senkbeil c7c9c237d7
Merge human and shell format types 3 years ago
Chip Senkbeil 676a89427b
Add support for changing cwd of server, which starts at / by default when launched over ssh 3 years ago
Chip Senkbeil 6ef55d6e38
Rename format type shell -> human and program -> shell 3 years ago
Chip Senkbeil f090aa8fc3
Refactor clear-session into session clear 3 years ago
Chip Senkbeil b48a5c1a2b
Fix program not being option -- still seeing dropped frames (testing with zsh repeat) 3 years ago
Chip Senkbeil 24a8cf8401
Refactored listener code into a handler module, wrote support to split transport into read and write halves, implemented most of backend although process run is not working yet 3 years ago
Chip Senkbeil f2cce4aa34
Refactor code to have request/response format w/ client wrapper for easier processing 3 years ago
Chip Senkbeil f6fa3e606e
Fix CPU pegging of server (unnecessary transport loop), add extra server args option, and adjust default port settings to be TCP friendly 3 years ago
Chip Senkbeil e4bdde8aae
Update with proper logging; fix bad host parsing 3 years ago
Chip Senkbeil 3c7561bef8
Implemented broken framed logic 3 years ago
Chip Senkbeil 9d7be8b4d7
Refactor operations to be both cli and request data 3 years ago
Chip Senkbeil f09cca80f1
Minor cosmetics 3 years ago
Chip Senkbeil ccd23a2fdc
Support port range binding 3 years ago
Chip Senkbeil 273e55fa0b
Refactor to create tokio runtimes within commands instead of at main 3 years ago
Chip Senkbeil 1b7d017c14
Implement some of the session setup code 3 years ago
Chip Senkbeil b506943607
Initial commit 3 years ago