Skip to content

Conversation

@ytkg
Copy link
Contributor

@ytkg ytkg commented May 6, 2023

I didn't get the expected behavior.

$ gh annotations ytkg/takagi-dev
Repository  Workflow  Event  Job  JobStartedAt  JobCompletedAt  Conclusion  AnnotationLevel  Message

Because, I forgot to include the '-repo' option.

$ gh annotations -repo ytkg/takagi-dev
Repository       Workflow  Event  Job     JobStartedAt          JobCompletedAt        Conclusion  AnnotationLevel  Message
ytkg/takagi-dev  Deploy    push   Deploy  2023-05-06T14:49:24Z  2023-05-06T14:51:11Z  success     warning          Node.js 12 actions are deprecate...

So I tried to make it possible to notice the mistakenly entered argument.
I'm not proficient in the Go language. Please let me know if there is a better way to do it.

$ gh annotations ytkg/takagi-dev
Did you mean this?
        gh annotations -repo ytkg/takagi-dev

@ytkg ytkg changed the title Print a helpful suggestion for wrong argument [proposal] Print a helpful suggestion for wrong argument May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant