Skip to content

Commit 6362d14

Browse files
Update README.md
1 parent 148fd0a commit 6362d14

File tree

1 file changed

+45
-13
lines changed

1 file changed

+45
-13
lines changed

README.md

Lines changed: 45 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,57 @@ Now you're all set!
4040
## Commands
4141

4242
### Create operation files
43+
Create new operation file:
4344
```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>
4646
```
47-
48-
### Process operations
47+
Create file without any attributes:
4948
```shell
50-
php artisan operations:process // process all new operation files
49+
php artisan operations:make <operation_name> -e|--essential
50+
```
5151

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
5653

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+
```
5993
60-
php artisan operations:process <operation_name> // re-run one specific operation
61-
```
6294
6395
### Show operations
6496
```shell

0 commit comments

Comments
 (0)