Skip to content

Commit 1c31764

Browse files
authored
docs: replace --sync with --upload . in sync-files example (#1366)
The --sync flag was never implemented. The correct flag is --upload with a path argument. Updated examples and workflow snippet to reflect the actual CLI interface. Fixes #1339 Signed-off-by: Mesut Oezdil <versusfinem@gmail.com>
1 parent f855c3d commit 1c31764

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

examples/sync-files.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,19 @@ openshell sandbox download my-sandbox /sandbox/results
3939

4040
## Sync on create
4141

42-
Push all git-tracked files into a new sandbox automatically:
42+
Push all files in the current directory into a new sandbox automatically:
4343

4444
```bash
45-
openshell sandbox create --sync -- python main.py
45+
openshell sandbox create --upload . -- python main.py
4646
```
4747

48-
This collects tracked and untracked (non-ignored) files via
49-
`git ls-files` and streams them into `/sandbox` before the command runs.
48+
This uploads the current directory into `/sandbox` before the command runs.
5049

5150
## Workflow: iterate on code in a sandbox
5251

5352
```bash
54-
# Create a sandbox and sync your repo
55-
openshell sandbox create --name dev --sync
53+
# Create a sandbox and upload your repo
54+
openshell sandbox create --name dev --upload .
5655

5756
# Make local changes, then push them
5857
openshell sandbox upload dev ./src /sandbox/src

0 commit comments

Comments
 (0)