Skip to content

Instantly share code, notes, and snippets.

@yasudacloud
Created April 7, 2023 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yasudacloud/a7da863e962bcfe5bf6f79b87d3cf152 to your computer and use it in GitHub Desktop.
Save yasudacloud/a7da863e962bcfe5bf6f79b87d3cf152 to your computer and use it in GitHub Desktop.
def on_restart():
command_path = 'openapi-generator-cli generate'
output_path = '~/Projects/react_app/src/http'
command = "{} -i http://127.0.0.1:8000/openapi.json -g typescript-axios -o {}".format(command_path, output_path)
print("generate before")
subprocess.run(command, shell=True)
print("generate after")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment