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
{{ message }}
Repository navigation
GetKeyHandlers needs to be added to ValidateSet attribute #51
Set-PSReadlineKeyHandler : Cannot validate argument on parameter 'Function'. The argument "GetKeyHandlers" does not
belong to the set "AcceptLine,AddLine,BackwardChar,BackwardDeleteChar,BackwardDeleteLine,BackwardKillLine,BackwardWord,
BeginningOfHistory,BeginningOfLine,CancelLine,Complete,DeleteChar,DisableDemoMode,EmacsBackwardWord,EmacsForwardWord,En
ableDemoMode,EndOfHistory,EndOfLine,ExchangePointAndMark,ForwardChar,ForwardDeleteLine,ForwardWord,HistorySearchBackwar
d,HistorySearchForward,KillBackwardWord,KillLine,KillWord,NextHistory,Paste,PossibleCompletions,PreviousHistory,Redo,Re
vertLine,SetKeyHandler,SetMark,TabCompleteNext,TabCompletePrevious,Undo,Yank,YankPop" specified by the ValidateSet
attribute. Supply an argument that is in the set and then try the command again.
At C:\Users\hillr\Documents\WindowsPowerShell\profile.ps1:25 char:63
Activity
lzybkr commentedon Oct 25, 2013
GetKeyHandlers doesn't have any side effects so it would be useless to support it as a simple function.
I think the only reason I made some of configuration methods public was to make it easier to write unit tests w/o needing to call PowerShell cmdlets.