@@ -40,25 +40,57 @@ 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
46
```
47
-
48
- ### Process operations
47
+ Create file without any attributes:
49
48
``` shell
50
- php artisan operations:process // process all new operation files
49
+ php artisan operations:make < operation_name> -e| --essential
50
+ ```
51
51
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
52
+ ### Process operations
56
53
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
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:**
65
+ ` ` ` shell
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
+ ```
78
+
79
+ - **Force a specific queue for the job:**
80
+ ```shell
81
+ php artisan operations:process --queue=<name>
82
+ ```
83
+
84
+ - **Only process operations with a specific tag:**
85
+ ```shell
86
+ php artisan operations:process --tag=<tagname>
87
+ ```
88
+
89
+ - **Re-run one specific operation:**
90
+ ```shell
91
+ php artisan operations:process <operation_name>
92
+ ```
59
93
60
- php artisan operations:process < operation_name> // re-run one specific operation
61
- ```
62
94
63
95
### Show operations
64
96
```shell
0 commit comments