Skip to content

Commit 4523734

Browse files
committed
feat: Remove flowpipe:make-condition command and related documentation
1 parent 866d769 commit 4523734

File tree

1 file changed

+0
-50
lines changed

1 file changed

+0
-50
lines changed

docs/commands.md

Lines changed: 0 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -150,56 +150,6 @@ class ValidateInputStep implements FlowStep
150150
}
151151
```
152152

153-
### 4. `flowpipe:make-condition`
154-
155-
Creates a new condition class for conditional steps.
156-
157-
```bash
158-
php artisan flowpipe:make-condition {name}
159-
```
160-
161-
#### Arguments
162-
163-
- `name` : The name of the condition class to create
164-
165-
#### Options
166-
167-
- `--namespace=App\Flowpipe\Conditions` : Custom namespace for the condition class
168-
- `--force` : Overwrite existing condition class if it exists
169-
170-
#### Examples
171-
172-
```bash
173-
# Create a basic condition
174-
php artisan flowpipe:make-condition HasInventoryCondition
175-
176-
# Create a condition with custom namespace
177-
php artisan flowpipe:make-condition PaymentValidCondition --namespace=App\Services\Payment\Conditions
178-
179-
# Force overwrite existing condition
180-
php artisan flowpipe:make-condition HasInventoryCondition --force
181-
```
182-
183-
#### Generated Condition Class
184-
185-
```php
186-
<?php
187-
188-
namespace App\Flowpipe\Conditions;
189-
190-
use Grazulex\LaravelFlowpipe\Contracts\Condition;
191-
use Grazulex\LaravelFlowpipe\FlowContext;
192-
193-
class HasInventoryCondition implements Condition
194-
{
195-
public function evaluate(FlowContext $context): bool
196-
{
197-
// Your condition logic here
198-
199-
return true;
200-
}
201-
}
202-
```
203153

204154
### 5. `flowpipe:export`
205155

0 commit comments

Comments
 (0)