Commit 8ef51f0
authored
🩹 [Patch]: Sort the return for
## Description
This pull request focuses on improving the usability and consistency of
the GitHub context management PowerShell module. The main changes
include renaming parameter sets and internal logic for clarity, ensuring
output is sorted for better user experience, and updating the context
completer for more accurate and user-friendly suggestions.
- Fixes #503
**Parameter set and logic improvements:**
* Renamed parameter sets in `Get-GitHubContext.ps1` for clarity (e.g.,
`'NamedContext'` to `'Get a named context'`, `'ListAvailableContexts'`
to `'List all available contexts'`) and updated corresponding internal
logic and debug messages for consistency.
**Output and completion enhancements:**
* Sorted the output of contexts by name in `Get-GitHubContext.ps1` to
provide a more organized and predictable result.
* Moved `completers.ps1` from the private to public directory, and
updated the context completer to suppress debug output, sort and
deduplicate context names, and improve the accuracy of completion
suggestions.
## Type of change
<!-- Use the check-boxes [x] on the options that are relevant. -->
- [ ] 📖 [Docs]
- [ ] 🪲 [Fix]
- [x] 🩹 [Patch]
- [ ] Get-GitHubContext (#505)1 parent 4d83c75 commit 8ef51f0
File tree
3 files changed
+9
-9
lines changed- src/functions/public/Auth
- Context
3 files changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
49 | | - | |
| 48 | + | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
File renamed without changes.
0 commit comments