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

[FEAT]: Omit deprecated flags. #27

Open
Chambras opened this issue Jan 4, 2024 · 1 comment
Open

[FEAT]: Omit deprecated flags. #27

Chambras opened this issue Jan 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Chambras
Copy link

Chambras commented Jan 4, 2024

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 Chambras added enhancement New feature or request needs-triage needs to be reviewed labels Jan 4, 2024
@andyfeller
Copy link
Contributor

@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.

@andyfeller andyfeller removed the needs-triage needs to be reviewed label Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants