waveterm/pkg/util
Mike Sawka 4fd6d36d8e
conn updates 2 (#1660)
* use pwsh over powershell if installed (on windows) for default shell
* refactor blockcontroller.DoRunShellCommand into a "setup" and "manage" phase
* fix wshcmd-conn to also disconnect wsl connections
* new genconn interfaces to make a standardized environment to run SSH/WSL commands via `sh -c`.  also create better quoting functions that are composable
* replace html/template with text/template for shell command templating (avoids special chars getting turned into HTML entities, breaking the commands)
* do not reinstall wsh if the installed version has a higher version (prevents flip-flopping on shared systems)
* simplify clientOs/clientArch detection.  use `uname -sm`.  also validate the os/arch combo as compatible with our builds.
* replace CpHostToRemote with CpWshToRemote. hard codes wsh paths inside of the function instead of having them passed in (quoting restrictions)
* new SyncBuffer class to use with commands that properly synchronizes Writes/String output
* fix setTermSize to actually update DB with terminal size
2025-01-02 14:15:32 -08:00
..
colprint wsh getva, setvar, and file commands (#1317) 2024-11-19 17:20:47 -08:00
daystr Two extremely low-hanging fruit tests generated by GitHub Workspace (#1172) 2024-10-30 20:19:22 -07:00
dbutil Update copyright indicators on a bunch of files (#255) 2024-08-20 17:01:29 -07:00
ds Two extremely low-hanging fruit tests generated by GitHub Workspace (#1172) 2024-10-30 20:19:22 -07:00
envutil wsh getva, setvar, and file commands (#1317) 2024-11-19 17:20:47 -08:00
logview working on a buffered log viewer class (#1301) 2024-11-15 14:02:33 -08:00
migrateutil checkpoint on integratng wstore. moved to wails data structures, got immer working again, Window object, transitioned to generic DB ops, lots more 2024-05-24 15:08:24 -06:00
packetparser WSL Integration (#1031) 2024-10-23 22:43:17 -07:00
shellutil conn updates 2 (#1660) 2025-01-02 14:15:32 -08:00
syncbuf conn updates 2 (#1660) 2025-01-02 14:15:32 -08:00
utilfn Improved Shell Detection (#1658) 2024-12-30 22:18:56 -08:00