cli/pkg/cmd/release
Tyler McGoffin 0bb92c5980
Separate partitioning from globbing in cmdutil/args package and consumers (#3)
* Separate partitioning from globbing in cmdutil/args package and consumers

In the previous commit, GlobPaths was overloaded, containing logic
specific to command use-cases. This commit removes that functionality from
GlobPaths and back into the commands that have the special use-cases.

To do this, I've introduced a new Partition util in cmdutil/args.go that
will separate a slice into two slices given a predicate. This functionality
is leveraged by both the special use-cases described above to separate the
command-specific syntax from the globable filepaths.

* Add test to validate that the order of '-' in gh gist create args doesn't matter
2025-03-04 07:05:23 +05:00
..
create Merge branch 'trunk' into 5099-gh-release-create-upload-expand-glob-patterns-on-windows 2025-02-27 19:20:44 +05:00
delete Delete local tag when running gh release delete --cleanup-tag (#7884) 2023-09-07 12:04:15 +00:00
delete-asset Add --verify-tag to release edit command (#7646) 2023-07-07 14:23:39 +00:00
download Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
edit Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
list fixed linting 2024-01-26 16:12:55 -05:00
shared Separate partitioning from globbing in cmdutil/args package and consumers (#3) 2025-03-04 07:05:23 +05:00
upload Fix the description of gh release upload 2024-03-18 11:19:20 +00:00
view Remove trailing whitespace 2025-02-13 11:06:27 +05:00
release.go Group PR, release, and repo subcommands 2022-12-21 14:47:59 +01:00