You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove update, add --overwrite and --output-path (#1052)
* Removes `update`
* Adds `--output-path` to `generate`
* Adds `--overwrite` to `generate`
Also removing Safety from CI because it's currently failing in CI, and
the current command is about to be removed and instead require an
account.
---------
Co-authored-by: Dylan Anthony <dbanty@users.noreply.github.com>
The `update` command is no more, you can (mostly) replace its usage with some new flags on the `generate` command.
8
+
9
+
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`.
10
+
11
+
The only difference is that `my-api-client` would have run `post_hooks` in the `my-api-client` directory,
12
+
but `generate` will run `post_hooks` in the `output-path` directory.
13
+
14
+
Alternatively, you can now also run `openapi-python-client generate --meta=<your-meta-type> --overwrite` to regenerate
15
+
the entire client, if you don't care about keeping any changes you've made to the generated client.
16
+
17
+
Please comment on [discussion #824](https://github.com/openapi-generators/openapi-python-client/discussions/824)
18
+
(or a new discussion, as appropriate) to aid in designing future features that fill any gaps this leaves for you.
0 commit comments