We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding the option to modify or create multiple scripts in a given project with a single prompt. It works as follows:
example/calculate.py from add import add def calculate(x,y): result = add(x,y)*add(x,y) return result
example/add.py def add(x,y): return x+y
Run sgpt with --multiscript-code option
sgpt --multiscript-code --project-path example/ "can you extract the multiplication in calculate as an import from an external script?"
example/calculate.py from add import add from multiply import multiply def calculate(x, y): result = multiply(add(x, y), add(x, y)) return result print(calculate(2, 3))
example/multiply.py def multiply(x, y): return x * y
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Adding the option to modify or create multiple scripts in a given project with a single prompt. It works as follows:
Existing scripts:
Run sgpt with --multiscript-code option
Resulting modified and created scripts:
The text was updated successfully, but these errors were encountered: