gh-copilot
gh-copilot copied to clipboard
[FEAT]: Omit deprecated flags.
Describe the need
It would be great if the recommendations it gives are more up to date and not from deprecated commands.
I know it is still in beta and the recommendation would still work, but again it would be nice if it omits deprecated flags.
Version
gh repo list --source --public
Relevant terminal output
$ gh copilot explain "list public source repos using gh cli"
Welcome to GitHub Copilot in the CLI!
version 0.5.4-beta (2024-01-04)
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
Explanation:
• gh is the GitHub CLI.
• gh repo list lists the repositories under the user's GitHub account.
• --source filters the list to show only source repositories, excluding forks.
• Repositories are determined as source if they are created directly under the user's account.
• Forked repositories are not considered source repositories.
• --public filters the list to show only public repositories.
• Public repositories are accessible to anyone.
• So, the command gh repo list --source --public will list public source repositories under the user's GitHub account using the gh CLI.
$ gh repo list --source --public
Flag --public has been deprecated, use `--visibility=public` instead
@Chambras : Thank you for opening this issue up! ❤️
💯 absolutely agree! All I can say is that we are exploring various avenues to improve quality and recency of suggestions.