cli/pkg/cmd/gist
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
..
clone Remove IsTenancy and relevant tests from gists as they are unsupported 2024-10-15 12:41:23 -07:00
create Separate partitioning from globbing in cmdutil/args package and consumers (#3) 2025-03-04 07:05:23 +05:00
delete Merge pull request #10508 from iamazeem/10449-inconsistent-examples-format 2025-02-27 09:15:14 -05:00
edit Fix: accidental whitespace in gist edit 2025-01-16 11:44:46 -07:00
list Inconsistent format of examples in help text 2025-02-27 16:26:25 +05:00
rename Update usage to lower-kebab-case 2025-02-14 22:12:22 +05:00
shared drop description from prompts, fix tests 2025-01-11 01:35:12 -06:00
view Update test to be compatible with latest Glamour v0.8.0 2025-01-22 20:13:40 -08:00
gist.go Refactor filtering into existing gist list 2024-10-12 23:17:55 -07:00