You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- am use -e always enables (no-op if already active)
- am use -d always disables (no-op if already inactive)
- am use without flags retains toggle behavior (unchanged)
- Extract ProfileUse struct to share args between am use and am profile use
- Add tests for enable/disable idempotency and error cases
- Update shell completions for all supported shells
Copy file name to clipboardExpand all lines: completions/fish/am.fish
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,8 @@ complete -c am -n "__fish_am_using_subcommand profile; and not __fish_seen_subco
70
70
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from add"-s h -lhelp-d'Print help'
71
71
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from add"-s V -l version -d'Print version'
72
72
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s n -l priority -d'Activate at specific priority position (1-based). Repositions if already active'-r
73
+
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s e -l enable -d'Enable given profile(s), does not toggle'
74
+
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s d -l disable -d'Disable given profile(s), does not toggle'
73
75
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s i -l inverse -d'Reverse the processing order (first listed = highest priority)'
74
76
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s h -lhelp-d'Print help'
75
77
complete-c am -n"__fish_am_using_subcommand profile; and __fish_seen_subcommand_from use"-s V -l version -d'Print version'
@@ -90,6 +92,8 @@ complete -c am -n "__fish_am_using_subcommand init" -s V -l version -d 'Print ve
90
92
complete-c am -n"__fish_am_using_subcommand setup"-s h -lhelp-d'Print help'
91
93
complete-c am -n"__fish_am_using_subcommand setup"-s V -l version -d'Print version'
92
94
complete-c am -n"__fish_am_using_subcommand use"-s n -l priority -d'Activate at specific priority position (1-based). Repositions if already active'-r
95
+
complete-c am -n"__fish_am_using_subcommand use"-s e -l enable -d'Enable given profile(s), does not toggle'
96
+
complete-c am -n"__fish_am_using_subcommand use"-s d -l disable -d'Disable given profile(s), does not toggle'
93
97
complete-c am -n"__fish_am_using_subcommand use"-s i -l inverse -d'Reverse the processing order (first listed = highest priority)'
94
98
complete-c am -n"__fish_am_using_subcommand use"-s h -lhelp-d'Print help'
95
99
complete-c am -n"__fish_am_using_subcommand use"-s V -l version -d'Print version'
[CompletionResult]::new('-n','-n', [CompletionResultType]::ParameterName,'Activate at specific priority position (1-based). Repositions if already active')
112
112
[CompletionResult]::new('--priority','--priority', [CompletionResultType]::ParameterName,'Activate at specific priority position (1-based). Repositions if already active')
113
+
[CompletionResult]::new('-e','-e', [CompletionResultType]::ParameterName,'Enable given profile(s), does not toggle')
114
+
[CompletionResult]::new('--enable','--enable', [CompletionResultType]::ParameterName,'Enable given profile(s), does not toggle')
115
+
[CompletionResult]::new('-d','-d', [CompletionResultType]::ParameterName,'Disable given profile(s), does not toggle')
116
+
[CompletionResult]::new('--disable','--disable', [CompletionResultType]::ParameterName,'Disable given profile(s), does not toggle')
113
117
[CompletionResult]::new('-i','-i', [CompletionResultType]::ParameterName,'Reverse the processing order (first listed = highest priority)')
114
118
[CompletionResult]::new('--inverse','--inverse', [CompletionResultType]::ParameterName,'Reverse the processing order (first listed = highest priority)')
[CompletionResult]::new('-n','-n', [CompletionResultType]::ParameterName,'Activate at specific priority position (1-based). Repositions if already active')
180
184
[CompletionResult]::new('--priority','--priority', [CompletionResultType]::ParameterName,'Activate at specific priority position (1-based). Repositions if already active')
185
+
[CompletionResult]::new('-e','-e', [CompletionResultType]::ParameterName,'Enable given profile(s), does not toggle')
186
+
[CompletionResult]::new('--enable','--enable', [CompletionResultType]::ParameterName,'Enable given profile(s), does not toggle')
187
+
[CompletionResult]::new('-d','-d', [CompletionResultType]::ParameterName,'Disable given profile(s), does not toggle')
188
+
[CompletionResult]::new('--disable','--disable', [CompletionResultType]::ParameterName,'Disable given profile(s), does not toggle')
181
189
[CompletionResult]::new('-i','-i', [CompletionResultType]::ParameterName,'Reverse the processing order (first listed = highest priority)')
182
190
[CompletionResult]::new('--inverse','--inverse', [CompletionResultType]::ParameterName,'Reverse the processing order (first listed = highest priority)')
0 commit comments