Skip to content

Commit 02194e1

Browse files
Alex HolmbergAlex793x
authored andcommitted
HOTFIX - hoping auto update becomes available
1 parent 700dfe3 commit 02194e1

6 files changed

Lines changed: 556 additions & 30 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,7 @@ $ sync-ctl analyze ./fastapi-service --json
247247
]
248248
}
249249
```
250+
250251
### Example: Security Analysis
251252

252253
```bash
@@ -294,6 +295,35 @@ max_file_size = 2097152 # 2MB
294295
format = "json" # or "yaml", "toml"
295296
```
296297

298+
## 🔄 Automatic Update Checks
299+
300+
Syncable CLI automatically checks for updates once per day when you run any command. When a new version is available, you'll see a notification:
301+
302+
```
303+
🔔 A new version of sync-ctl is available: 0.5.0 (current: 0.4.1)
304+
Run `cargo install syncable-cli` or download from https://github.com/syncable-dev/syncable-cli/releases/tag/v0.5.0
305+
```
306+
307+
### Troubleshooting Update Checks
308+
309+
If you're not seeing update notifications:
310+
311+
```bash
312+
# Force an update check by clearing the cache
313+
sync-ctl --clear-update-cache analyze .
314+
315+
# Enable debug logging to see what's happening
316+
SYNC_CTL_DEBUG=1 sync-ctl analyze .
317+
```
318+
319+
The update check:
320+
- Only runs once per day (cached in `~/.cache/syncable-cli/`)
321+
- Queries GitHub releases API to find the latest version
322+
- Works behind corporate proxies (uses system proxy settings)
323+
- Has a 5-second timeout to avoid slowing down commands
324+
325+
To disable update checks, you can set the `SYNC_CTL_NO_UPDATE_CHECK` environment variable (coming in next release).
326+
297327
## 🧪 Comprehensive Technology Support (260+ Technologies)
298328

299329
### 📊 Coverage by Language

examples/security_analysis.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,11 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
3737
".git".to_string(),
3838
"target".to_string(),
3939
],
40+
skip_gitignored_files: true,
41+
downgrade_gitignored_severity: false,
4042
};
4143

42-
let security_analyzer = SecurityAnalyzer::with_config(security_config)?;
44+
let mut security_analyzer = SecurityAnalyzer::with_config(security_config)?;
4345

4446
// Perform security analysis
4547
println!("\n🛡️ Running comprehensive security analysis...");

0 commit comments

Comments
 (0)