Commit 8591f15
chore: prepare release 0.21.0 (#1053)
This PR was created by Knope. Merging it will create a new release
### Breaking Changes
#### Removed the `update` command
The `update` command is no more, you can (mostly) replace its usage with
some new flags on the `generate` command.
If you had a package named `my-api-client` in the current working
directory, the `update` command previously would update the
`my_api_client` module within it. You can now _almost_ perfectly
replicate this behavior using `openapi-python-client generate
--meta=none --output-path=my-api-client/my_api_client --overwrite`.
The only difference is that `my-api-client` would have run `post_hooks`
in the `my-api-client` directory,
but `generate` will run `post_hooks` in the `output-path` directory.
Alternatively, you can now also run `openapi-python-client generate
--meta=<your-meta-type> --overwrite` to regenerate
the entire client, if you don't care about keeping any changes you've
made to the generated client.
Please comment on [discussion
#824](#824)
(or a new discussion, as appropriate) to aid in designing future
features that fill any gaps this leaves for you.
### Features
#### Added an `--output-path` option to `generate`
Rather than changing directories before running `generate` you can now
specify an output directory with `--output-path`.
Note that the project name will _not_ be appended to the
`--output-path`, whatever path you specify is where the
generated code will be placed.
#### Added an `--overwrite` flag to `generate`
You can now tell `openapi-python-client` to overwrite an existing
directory, rather than deleting it yourself before
running `generate`.
Co-authored-by: GitHub <github-actions@github.com>1 parent 732b533 commit 8591f15
File tree
5 files changed
+33
-36
lines changed- .changeset
5 files changed
+33
-36
lines changedThis file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
16 | 48 | | |
17 | 49 | | |
18 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments