Lucas
bfb1354e51
test(cache): add tests for --ref flag in cache deletion
...
* Implemented test cases for handling the `--ref` flag in cache deletion commands.
* Added validation for using `--ref` with cache key and ID.
* Ensured proper error messages are returned for invalid usage of `--ref`.
2025-08-27 04:56:48 +02:00
Lucas
aff2bfaa5c
feat(cache): add support for --ref flag in cache deletion
...
- Introduced `--ref` flag to narrow down cache deletion to a specific branch or PR reference.
- Updated command examples to include usage of `--ref`.
- Added validation to ensure `--ref` cannot be used with `--all` and must accompany a cache key/ID.
2025-08-27 04:56:46 +02:00
Azeem Sajid
9389628323
Update tests
2025-02-19 10:31:20 +05:00
Azeem Sajid
db8e81009c
Merge branch '9897-gh-cache-delete-exit-code' of github.com:iamazeem/cli into 9897-gh-cache-delete-exit-code
2025-02-19 10:22:53 +05:00
Azeem Sajid
76efb5ac81
Fix non-TTY case
2025-02-19 10:22:31 +05:00
Azeem Sajid
17e7b57b3b
Use API without shorthand flag
2025-02-07 18:03:35 +05:00
Azeem Sajid
a29e74483a
Update tests
2025-02-07 17:56:52 +05:00
Azeem Sajid
09ec38e8d7
Update tests
2025-02-06 22:50:26 +05:00
Tyler McGoffin
2f0f387e11
Add test cases for succeed on no cache and api errors for --all ( #1 )
2025-02-06 22:47:01 +05:00
Azeem Sajid
9e13890c77
Remove short (abbreviated) flag support
2025-02-06 11:56:08 +05:00
Azeem Sajid
d6be4981be
Address PR review comments
2025-01-31 12:28:00 +05:00
Azeem Sajid
82ee9a2c75
[gh cache delete --all] Add --succeed-on-no-caches flag to return exit code 0
2025-01-29 14:53:09 +05:00
Kynan Ware
74f13a9b4f
Apply suggestions from code review
...
Co-authored-by: Andy Feller <andyfeller@github.com>
2024-11-21 13:55:35 -07:00
bagtoad
677ed2cdcf
Refactor command documentation to use heredoc
2024-11-21 13:23:03 -07:00
Viktor Szépe
6d9dd57774
Fix typos
2024-05-09 20:15:27 +00:00
Benoit Pierre
564d07ce00
cache/delete: percent-encode keys
2023-09-21 16:32:53 +02:00
Josh Kraft
1dc54f85fb
typo
2023-05-03 11:08:32 -06:00
Josh Kraft
213a59b8bd
create cache commands
2023-05-03 11:03:50 -06:00