@@ -40,36 +40,84 @@ Now you're all set!
40
40
## Commands
41
41
42
42
### Create operation files
43
+ Create new operation file:
43
44
``` shell
44
- php artisan operations:make < operation_name> // create new operation file
45
- php artisan operations:make < operation_name> -e| --essential // create file without any attributes
45
+ php artisan operations:make < operation_name>
46
+ ```
47
+ Create file without any attributes:
48
+ ``` shell
49
+ php artisan operations:make < operation_name> -e| --essential
46
50
```
47
51
48
52
### Process operations
53
+
54
+ Process all new operation files:
55
+ ``` shell
56
+ php artisan operations:process
57
+ ```
58
+
59
+ Force synchronous execution:
60
+ ``` shell
61
+ php artisan operations:process --sync
62
+ ```
63
+
64
+ Force asynchronous execution:
49
65
``` shell
50
- php artisan operations:process // process all new operation files
66
+ php artisan operations:process --async
67
+ ```
68
+
69
+ Test mode (don't flag operations as processed):
70
+ ``` shell
71
+ php artisan operations:process --test
72
+ ```
73
+
74
+ Run command isolated:
75
+ ``` shell
76
+ php artisan operations:process --isolated
77
+ ```
51
78
52
- php artisan operations:process --sync // force synchronous execution
53
- php artisan operations:process --async // force asynchronous execution
54
- php artisan operations:process --test // dont flag operations as processed
55
- php artisan operations:process --isolated // run command isolated
79
+ Force a specific queue for the job:
80
+ ``` shell
81
+ php artisan operations:process --queue= < name >
82
+ ```
56
83
57
- php artisan operations:process --queue=< name> // force queue, that the job will be dispatched to
58
- php artisan operations:process --tag=< tagname> // only process operations, that have the given tag
84
+ Only process operations with a specific tag:
85
+ ``` shell
86
+ php artisan operations:process --tag=< tagname>
87
+ ```
59
88
60
- php artisan operations:process < operation_name> // re-run one specific operation
89
+ Re-run one specific operation:
90
+ ``` shell
91
+ php artisan operations:process < operation_name>
61
92
```
62
93
63
94
### Show operations
95
+
96
+ Show all operations:
97
+ ``` shell
98
+ php artisan operations:show
99
+ ```
100
+
101
+ Show pending operations:
64
102
``` shell
65
- php artisan operations:show // show all operations
66
- php artisan operations:show pending // show pending operations
67
- php artisan operations:show processed // show processed operations
68
- php artisan operations:show disposed // show disposed operations
103
+ php artisan operations:show pending
104
+ ```
69
105
70
- php artisan operations:show pending processed disposed // use multiple filters
106
+ Show processed operations:
107
+ ``` shell
108
+ php artisan operations:show processed
109
+ ```
110
+
111
+ Show disposed operations:
112
+ ``` shell
113
+ php artisan operations:show disposed
71
114
```
72
-
115
+
116
+ Use multiple filters to show operations:
117
+ ``` shell
118
+ php artisan operations:show pending processed disposed
119
+ ```
120
+
73
121
## Tutorials
74
122
75
123
### CI/CD & Deployment-Process
0 commit comments