waveterm/waveshell/pkg/cirfile
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
..
cirfile_test.go Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183) 2023-12-22 18:07:58 -08:00
cirfile.go Clean up cirfile and cirfile_tests, ensure we are using contexts with cancellation signals (#183) 2023-12-22 18:07:58 -08:00