Skip to content

Commit

Permalink
docs(migration): mention change of output behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
jmattheis committed Oct 23, 2023
1 parent 0094e1e commit 7630894
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions docs/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

### Removed goverter:mapExtend

`goverter:mapExtend FIELD METHOD` can be migrated to `goverter:map . FIELD | METHOD`

`goverter:mapExtend FIELD METHOD` can be migrated to
`goverter:map . FIELD | METHOD`

### Removed goverter:mapIdentity

Expand Down Expand Up @@ -40,3 +40,8 @@ $ goverter gen -g wrapErrors -g ignoreUnexported github.com/jmattheis/goverter/e
| `-packageName NAME` | `-g 'output:package :NAME'` (NOT RECOMMENDED) See [output](config/output.md) |
| `-packagePath PATH` | `-g 'output:package PATH'` (NOT RECOMMENDED) See [output](config/output.md) |
| `-packagePath PATH -packageName NAME` | `-g 'output:package PATH:NAME'` (NOT RECOMMENDED) See [output](config/output.md) |

The handling of `output` was changed, it is now _relative_ to the converter
interface. If you want to create the file relative to the current working
directory use @cwd/ at the start of the output path. See
[output](config/output.md).

0 comments on commit 7630894

Please sign in to comment.