Skip to content

Commit

Permalink
Update directives.md to fix some docs issue related to model-cmdlet
Browse files Browse the repository at this point in the history
  • Loading branch information
dolauli authored Sep 11, 2024
1 parent 413beb6 commit a317aa5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ directive:
```

### Model Cmdlet
To generate a cmdlet for a model facilitating users in constructing complex objects, you can choose the model using `model-name``. The default cmdlet name generated will be New-Az[subject-prefix][model-name]Object, and you can customize it using `cmdlet-name``. For example:
To generate a cmdlet for a model facilitating users in constructing complex objects, you can choose the model using `model-name`. The default cmdlet name generated will be New-Az[subject-prefix][model-name]Object, and you can customize it using `cmdlet-name`. For example:
```yaml $false
- model-cmdlet:
- model-name: Workspace
Expand All @@ -321,7 +321,7 @@ To generate a cmdlet for a model facilitating users in constructing complex obje
**Note: If you're working with autorest.powershell v3, the syntax differs, and the cmdlet name cannot be customized. For example:**
```yaml $false
- model-cmdlet
- model-name: Workspace
- Workspace
```

### Property Rename
Expand Down

0 comments on commit a317aa5

Please sign in to comment.