Skip to content

Conversation

@okineadev
Copy link
Member

@okineadev okineadev commented Nov 19, 2024

Add --about flag to filter tips based on a specified keyword.

  • Add a new case for the --about flag in the command-line options parsing section in cli-tips.sh to handle the --about flag and extract the keyword.
  • Filter the tips array to include only those tips that contain the specified keyword.
  • If no tips contain the specified keyword, do not print any tip.
  • Update the show_help function in cli-tips.sh to include information about the --about flag.
  • Add a section in README.md explaining how to use the --about flag.

For more details, open the Copilot Workspace session.

okineadev and others added 2 commits November 19, 2024 07:02
Add `--about` flag to filter tips based on a specified keyword.

* Add a new case for the `--about` flag in the command-line options parsing section in `cli-tips.sh` to handle the `--about` flag and extract the keyword.
* Filter the `tips` array to include only those tips that contain the specified keyword.
* If no tips contain the specified keyword, do not print any tip.
* Update the `show_help` function in `cli-tips.sh` to include information about the `--about` flag.
* Add a section in `README.md` explaining how to use the `--about` flag.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/cli-stuff/cli-tips?shareId=XXXX-XXXX-XXXX-XXXX).
@okineadev
Copy link
Member Author

LGTM

@okineadev okineadev changed the title Add --about flag to cli-tips feat: add --about flag to cli-tips Nov 19, 2024
@okineadev okineadev merged commit 28cc28a into main Nov 19, 2024
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.

2 participants