Commit 3919ffd
committed
refactor: use hypeman-go SDK for cp operations
Refactor cp command to use the SDK's lib.CpToInstance and lib.CpFromInstance
instead of duplicating WebSocket handling logic.
Changes:
- Replace copyFileToInstance with SDK call
- Replace copyDirToInstance with SDK call
- Replace copyFromInstance with SDK call
- Remove unused createDirOnInstance function
- Remove unused syscall import
- Add replace directive for local hypeman-go (for development)
This reduces code duplication and ensures bug fixes and features
in the SDK are automatically available in the CLI.1 parent 1d565ea commit 3919ffd
3 files changed
+95
-318
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
109 | | - | |
110 | 108 | | |
111 | 109 | | |
112 | 110 | | |
| |||
0 commit comments