waveterm/waveshell
Evan Simkowitz e7725e0e11
Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183)
* Fix unvalidated path warning in cirfile.go

* Adding test

* move dir path vars into global scope, set wave home in test if not set already

* separate validation code into own testable func

* do removal of cir file in cleanup

* rename test file names

* flock should return err if waiting without done fn

* update comment

* use timeout context

* remove redundant validation

* add more error messages

* use filepath.join instead

* validate when creating cirfile too

* support .ptyout.cf, etc.

* remove validation as cirfile is "trusted", since it only accepts pre-validated input

* revert to passing nil context for flock in the Create file case
2023-12-22 18:07:58 -08:00
..
pkg Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183) 2023-12-22 18:07:58 -08:00
go.mod update go.mod and import paths for waveshell 2023-10-16 13:25:53 -07:00
go.sum move apishell code to subdirectory to prepare for move to main repo 2023-10-16 13:04:18 -07:00
main-waveshell.go Packetparser Ignore Spurious Invalid Input at Beginning of Stream (#140) 2023-12-18 12:42:40 -08:00