mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-28 03:42:50 +01:00
Adds the S3 `fileshare` implementation This also updates `wsh file cp` so it behaves more like `cp` for things like copying directories and directory entries. It's not meant to align with `cp` on everything, though. Our `wsh cp` will be recursive and will create intermediate directories by default. This also adds new aliases for `wsh view`: `wsh preview` and `wsh open` --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: sawka <mike@commandline.dev> Co-authored-by: Sylvia Crowe <software@oneirocosm.com>
17 lines
282 B
Bash
Executable File
17 lines
282 B
Bash
Executable File
# copy the current directory into a non-existing directory
|
|
# ensure the copy succeeds and the output exists
|
|
|
|
set -e
|
|
cd "$HOME/testcp"
|
|
mkdir foo
|
|
touch foo/bar.txt
|
|
cd foo
|
|
|
|
wsh file copy . ../baz
|
|
cd ..
|
|
|
|
if [ ! -f baz/bar.txt ]; then
|
|
echo "baz/bar.txt does not exist"
|
|
exit 1
|
|
fi
|