-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcli_examples.sh
More file actions
executable file
·35 lines (34 loc) · 1.3 KB
/
cli_examples.sh
File metadata and controls
executable file
·35 lines (34 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
# SyncZ Command Line Examples
# This file demonstrates the new CLI functionality
echo "🚀 SyncZ Command Line Interface Examples"
echo "========================================="
echo ""
echo "📖 Basic Usage:"
echo " syncz -c # Interactive sync (ask for each orphan)"
echo " syncz -cu # Auto-upload all orphaned files"
echo " syncz -cd # Auto-delete all orphaned files"
echo " syncz -p # Preview changes without syncing"
echo ""
echo "⚙️ Configuration:"
echo " syncz --config # Show/change configuration"
echo " syncz --server # Start server"
echo " syncz --push # Push mode (delete local orphans)"
echo " syncz --preview # Preview changes (same as -p)"
echo ""
echo "❌ Error cases:"
echo " syncz -cud # Error: Cannot use both upload and delete"
echo ""
echo "💡 Similar to YOLO commands:"
echo " Instead of: yolo detect predict.py"
echo " You have: syncz -cu (auto-upload)"
echo " syncz -cd (auto-delete)"
echo " syncz -p (preview)"
echo ""
echo "🔍 Preview Examples:"
echo " syncz -p # See what would be synced without doing it"
echo " syncz --preview # Same as above (long form)"
echo ""
echo "🔧 To create an alias, add this to your ~/.bashrc:"
echo " alias syncz='cd /path/to/syncZ && ./syncz'"
echo ""