add summary command
This commit is contained in:
6 files changed
+207
No files matched your search
@@ -38,6 +38,8 @@ Customize deploy behavior in `config/services.php`:
|
||||
'local_root' => env('FTP_DEPLOY_LOCAL_ROOT', base_path()),
|
||||
'state_path' => env('FTP_DEPLOY_STATE_PATH', 'storage/app/.ftp-deploy-sync-state.json'),
|
||||
'api_token' => env('FTP_DEPLOY_API_TOKEN'),
|
||||
'api_url' => env('FTP_DEPLOY_API_URL'),
|
||||
'api_timeout' => (int) env('FTP_DEPLOY_API_TIMEOUT', 30),
|
||||
'route' => [
|
||||
'enabled' => env('FTP_DEPLOY_ROUTE_ENABLED', true),
|
||||
'path' => env('FTP_DEPLOY_ROUTE_PATH', 'ftp/generate-sync-state'),
|
||||
@@ -65,6 +67,8 @@ FTP_DEPLOY_TIMEOUT=30
|
||||
FTP_DEPLOY_DISK=ftp_deploy
|
||||
FTP_DEPLOY_STATE_PATH=storage/app/.ftp-deploy-sync-state.json
|
||||
FTP_DEPLOY_API_TOKEN=
|
||||
FTP_DEPLOY_API_URL=
|
||||
FTP_DEPLOY_API_TIMEOUT=30
|
||||
```
|
||||
|
||||
## Commands
|
||||
@@ -87,6 +91,18 @@ Generate a sync-state file locally:
|
||||
php artisan ftp:generate-sync-state --output=storage/app/.ftp-deploy-sync-state.json
|
||||
```
|
||||
|
||||
Call the JSON API and print a summary:
|
||||
|
||||
```bash
|
||||
php artisan ftp:api-summary https://example.com/ftp/generate-sync-state --token=your-token
|
||||
```
|
||||
|
||||
If `FTP_DEPLOY_API_URL` and `FTP_DEPLOY_API_TOKEN` are configured, the command can be run without arguments:
|
||||
|
||||
```bash
|
||||
php artisan ftp:api-summary
|
||||
```
|
||||
|
||||
Extra excludes may be passed as repeated options or comma-separated values:
|
||||
|
||||
```bash
|
||||
|
||||
Reference in new issue
Block a user