Skip to content

[FEAT]: Support non-interactive mode with standard shell output redirect #145

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

Open
bpkroth opened this issue May 1, 2025 · 0 comments
Open
Labels
enhancement New feature or request needs-triage needs to be reviewed

Comments

@bpkroth
Copy link

bpkroth commented May 1, 2025

Thanks for taking the time to fill out this out! 🙇
By submitting this issue, you agree to follow our Code of Conduct.

Describe the need

I want to be able to use gh copilot suggest in a promptless manner using standard shell output capture and redirects.

Version

gh copilot --version
version 1.1.0 (2025-02-10)

Relevant terminal output

bpkroth@localhost: ~/src/env 130 (master) $ command=$(ghcs print "Suggest a git commit command and message for these changes: $(git diff --cached)")

✗ Error: failed to copy to clipboard: failed to copy to clipboard: No clipboard utilities available. Please install xsel, xclip, wl-clipboard or Termux:API add-on for termux-clipboard-get/set.

bpkroth@localhost: ~/src/env 1 (master) $ echo "$command"

Welcome to GitHub Copilot in the CLI!
version 1.1.0 (2025-02-10)

I'm powered by AI, so surprises and mistakes are possible. Make sure to verify any generated code or suggestions, and share feedback so that we can learn and improve. For more information, see https://gh.io/gh-copilot-transparency


  # Suggestion:

    git commit -m "Add 'gh' to installation scripts for Linux, macOS, and Windows"


? Select an option
> Copy command to clipboard

this should only capture and print

git commit -m "Add 'gh' to installation scripts for Linux, macOS, and Windows"
@bpkroth bpkroth added enhancement New feature or request needs-triage needs to be reviewed labels May 1, 2025
@bpkroth bpkroth changed the title [FEAT]: [FEAT]: Support non-interactive mode with standard shell output redirect May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request needs-triage needs to be reviewed
Projects
None yet
Development

No branches or pull requests

1 participant