Chip Senkbeil
7da28fecab
Add symlink to dir create tests in core
3 years ago
Chip Senkbeil
d1f69cf024
Migrate distant-core tests from using tempfile to assert_fs crate
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
fc1c262f55
Fix some proc issues, but proc tests still not fully passing
3 years ago
Chip Senkbeil
f66a234873
Unfinished tests for proc-run cli
3 years ago
Chip Senkbeil
2e2dfa3a46
Add cli metadata tests
3 years ago
Chip Senkbeil
e3cfbd5968
Refactor exists to print true/false in shell format
3 years ago
Chip Senkbeil
cab0fe0875
Add tests for cli dir-read, dir-create, remove, and copy
3 years ago
Chip Senkbeil
32150f0956
Fix file-write and file-append not parsing input correctly
3 years ago
Chip Senkbeil
da08d2db4f
Refactor test folder structure for cli tests and add file_read_text tests
3 years ago
Chip Senkbeil
8cdc9f271d
Refactor distant binary to yield software exit code when oneoff operation fails
3 years ago
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)
3 years ago
Chip Senkbeil
aa2925d33a
Update to have context use threads
3 years ago
Chip Senkbeil
188b5f74e4
Add first example of an e2e test for distant cli
3 years ago
Chip Senkbeil
54a7f567a1
Bump Cargo.lock to fix cargo-audit callout, update gitignore to prevent Cargo.lock for library
3 years ago
Chip Senkbeil
df81894785
Split distant into distant-core and distant (bin)
3 years ago
Chip Senkbeil
156fe50423
Remove tokio-stream dependency
3 years ago
Chip Senkbeil
fcdd1ebd48
Add more test outlines for process & lsp process of core client
3 years ago
Chip Senkbeil
07cd434e98
Refactor DistantServer to support initialization using any listener
3 years ago
Chip Senkbeil
16af8b06e2
Fix shutdown immediately happening when time not provided
3 years ago
Chip Senkbeil
260cb0e99d
Refactor session to use mpsc instead of broadcast channel, add LSP command
3 years ago
Chip Senkbeil
ba6ebcfcb8
Refactor codebase to be more testable & add some initial tests
3 years ago
Chip Senkbeil
1ca3cd7859
Big refactor that is not finished
3 years ago
Chip Senkbeil
2b23cd379c
Rename mode -> format; bump to 0.13.0
3 years ago
Chip Senkbeil
33abcbb5fb
Update logger to properly shutdown when process exits
3 years ago
Chip Senkbeil
69af44cb8e
Add lsp session mode w/ parser and tests
3 years ago
Chip Senkbeil
f12c3428eb
Move around some net structs and impls to their own modules, add some client tests
3 years ago
Chip Senkbeil
aded5fd16f
Merge branch 'master' of github.com:chipsenkbeil/distant
3 years ago
Chip Senkbeil
e857dabe43
Add tests for codec and transport; move net::client to dedicated file
3 years ago
Chip Senkbeil
160631bc7b
Add login shell support by defualt to run distant command on launch
3 years ago
Chip Senkbeil
f6e9195503
Update error response to include kind, refactor kind to be from a defined set, support new exists request/response
3 years ago
Chip Senkbeil
e2fd3a9bae
Add proper exit codes mirroring sysexits from FreeBSD
3 years ago
Chip Senkbeil
86e4d7f2fc
Refactor to support a payload for request/response with multiple entries; bump to 0.10.0
3 years ago
Chip Senkbeil
5a5d7f6909
Add alpha software disclaimer
3 years ago
Chip Senkbeil
24d0c3b2ab
Bump to v0.9.5 and update couple of cli descriptions
3 years ago
Chip Senkbeil
fac7687f27
Remove excessive trace logging of send/recv at transport level as this isn't useful
3 years ago
Chip Senkbeil
1a1f219594
Update DirRead to sort returned paths by name
3 years ago
Chip Senkbeil
0ffbc8db2f
Change data compressed to data serialized as we aren't actually compressing data
3 years ago
Chip Senkbeil
809baaee85
Add extra aliases for different actions like creating a dir and running a process
3 years ago
Chip Senkbeil
f51b8420f3
Update metadata human printout to not include canonicalized_path if missing
3 years ago
Chip Senkbeil
9a67418227
Add option to metadata request to return the canonicalized path in the response; bump to 0.9.0
3 years ago
Chip Senkbeil
d3a1cad7b3
Fix bug where socket not cleared when fail flag disabled; fix shutdown timer logic
3 years ago
Chip Senkbeil
956f7e0119
Unfinished timing
3 years ago
Chip Senkbeil
df80f261bc
Add client timeout support, system info message, and support for including root path in retrieved dir entries
3 years ago
Chip Senkbeil
cbefdb69ec
Fix stdout/stderr not being detected in proc response when no newline was provided
3 years ago
Chip Senkbeil
b3a4d79507
Update stdin/stdout/stderr pipes to read into buffers instead of waiting for newlines
3 years ago
Chip Senkbeil
a15a707f1d
Fix processes lingering for unix socket proxy when a connection closes
3 years ago
Chip Senkbeil
638638f332
Refactor ProcStdin to send a string representing a line instead of a vec of bytes
3 years ago
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
3 years ago