Skip to content
New issue

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

Non-interactive mode for --shell and integration changes #455

Merged
merged 1 commit into from
Jan 28, 2024

Conversation

TheR1D
Copy link
Owner

@TheR1D TheR1D commented Jan 28, 2024

  • Added --interaction that works with --shell option, e.g. sgpt --shell --no-interaction will output suggested command to stdout without asking user for any input.
  • Changed shell integrations to use new --no-interaction option to get suggested shell command output from sgpt.
  • Moved shell integrations into dedicated file integration.py.
  • Changed --install-integration logic so sgpt can install integrations without downloading sh scripts.
  • Removed validation for PROMPT argument, now will be empty string by default.
  • Fixing an issue when sgpt is being called from non-interactive shell environments such us cron tab.
  • Fixed and optimised Dockerfile.
  • README.md improvements, and new feature examples.

@TheR1D TheR1D added bug Something isn't working enhancement New feature or request development Changes related to development (utilities, tests, CI/CD) labels Jan 28, 2024
@TheR1D TheR1D self-assigned this Jan 28, 2024
@TheR1D TheR1D force-pushed the non-interactive-mode-and-integrations branch 7 times, most recently from a2d2b85 to 9a3c1a9 Compare January 28, 2024 02:43
@TheR1D TheR1D linked an issue Jan 28, 2024 that may be closed by this pull request
@TheR1D TheR1D force-pushed the non-interactive-mode-and-integrations branch from 9a3c1a9 to efb9dbe Compare January 28, 2024 03:56
@TheR1D TheR1D force-pushed the non-interactive-mode-and-integrations branch from efb9dbe to d65e8f3 Compare January 28, 2024 03:57
@TheR1D TheR1D merged commit c48926a into main Jan 28, 2024
3 checks passed
@TheR1D TheR1D deleted the non-interactive-mode-and-integrations branch January 28, 2024 04:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working development Changes related to development (utilities, tests, CI/CD) enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ZSH integration broken
1 participant