Commit Graph
1397 Commits
Author SHA1 Message Date
Steve Lee 9ae18ab0d1 Change exec from alias to function to handle arbitrary arguments (#18567) 2022-11-17 12:14:27 -08:00
Dongbo Wang b3a9ae371c Remove gcloud from the legacy list because it's resolved to a .ps1 script (#18575) 2022-11-15 17:53:01 -08:00
Steve Lee 04de3045e4 Add gcloud and sqlcmd to list to use legacy argument passing (#18559) 2022-11-15 14:01:51 -08:00
Steve Lee c740a07e10 Change public API mention of monad to PowerShell (#18491)
* Change public API mention of `monad` to PowerShell

* looks like I forgot to save changes in some files
2022-11-14 12:45:23 -05:00
Ilya b84652745c Replace DllImport with LibraryImport in SMA 1 (#18520) 2022-11-12 16:48:27 +05:00
Steve Lee 9f459c05f6 Replace DllImport with LibraryImport in engine (#18496) 2022-11-10 08:24:11 +05:00
Patrick Meinecke 74aa257839 Skip cloud files marked as "not on disk" during command discovery (#18152) 2022-11-08 14:37:29 -08:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +05:00
MartinGC94 0a6de4672a Fix issue when completing the first command in a script with an empty array expression (#18355) 2022-11-07 17:14:49 -08:00
MartinGC94 b5ffd043c5 Improve type inference of hashtable keys (#17907) 2022-11-07 17:10:03 -08:00
Steve Lee 0ddf89e5a8 Fix Switch-Process to copy the current env to the new process (#18452) 2022-11-07 11:03:37 -08:00
xtqqczze 1688b0fc35 Replace UTF8Encoding(false) with Encoding.Default (#18356) 2022-11-07 10:07:36 -08:00
Steve Lee a2ee05400f Fix Switch-Process to set termios appropriate for child process (#18467) 2022-11-04 15:12:09 -07:00
Dongbo Wang db21524d23 Add missing XML doc elements for methods in RunspaceFactory (#18450) 2022-11-03 11:44:46 -07:00
Ikko Ashimine 455d29471c Fix typo in InitialSessionState.cs (#18435)
controling -> controlling
2022-11-03 11:01:13 +05:00
Steve Lee 52a62e9ef2 Fix Switch-Process error to include the command that is not found (#18443) 2022-11-03 07:54:11 +05:00
Berkan Diler c16521ac87 Use new LINQ Order() methods instead of OrderBy(static x => x) (#18395)
Less code, a bit faster, less allocations
2022-11-01 13:31:58 +05:00
Berkan Diler 8619d8432f Make use of StringSplitOptions.TrimEntries when possible (#18412) 2022-10-31 22:20:22 +05:00
Berkan Diler 9016adf1c2 Replace some string.Join(string) calls with string.Join(char) (#18411) 2022-10-31 09:56:15 -07:00
Ilya 8965af3d52 Remove some static constants from Utils.Separators (#18154) 2022-10-27 15:25:41 -07:00
xtqqczze dd884459c1 Use generic GetValues<T>, GetNames<T> enum methods (#18391) 2022-10-27 09:42:33 -07:00
Olivia eef7c4526e Add the function cd~ (#18308) 2022-10-24 21:58:54 -07:00
MartinGC94 ab7f206271 Fix type inference error for empty return statements (#18351) 2022-10-24 14:39:34 -07:00
Ilya ece26bcf11 Remove FusionAssemblyIdentity and GlobalAssemblyCache as they are not used (#18334) 2022-10-24 12:16:22 -07:00
Dongbo Wang 53c3690c2a Replace command-error suggestion with new implementation based on subsystem plugin (#18252) 2022-10-24 11:59:32 -07:00
xtqqczze c1e6b41f98 Use MemoryExtensions.IndexOfAny in PSv2CompletionCompleter` (#18245) 2022-10-19 14:18:09 -07:00
xtqqczze b7f61ca50c Use MemoryExtensions.IndexOfAny in WildcardPattern (#18242) 2022-10-19 10:07:09 +05:00
Dongbo Wang bc1f3691f2 Make the fuzzy searching flexible by passing in the fuzzy matcher (#18270) 2022-10-17 16:40:54 -07:00
Ikko Ashimine 1228ebc1f5 Fix typo in RemoteRunspacePoolInternal.cs (#18263) 2022-10-13 16:44:10 -07:00
Steve Lee 8a45d14fad Add -FuzzyMinimumDistance parameter to Get-Command (#18261) 2022-10-12 16:08:20 -07:00
Ilya dd3a6a10d4 Use source generator for PSVersionInfo to improve startup time (#15603) 2022-10-11 11:50:16 -07:00
Dongbo Wang 80d2fb7e47 Some more code cleanup related to the use of PSVersionInfo (#18231) 2022-10-11 10:24:31 -07:00
xtqqczze ed1f757728 Use MemoryExtensions.IndexOfAny in SessionStateInternal (#18244)
* Use `IndexOfAny<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)`.
* Avoid unnecessary static initialization of `s_charactersInvalidInDriveName` field.
* Refactored `do ...  while(false)` loop.

cc: @daxian-dbw, @iSazonov
2022-10-11 08:47:59 -07:00
Steve Lee 667e75559d On Unix, only explicitly terminate the native process if not in background (#18215) 2022-10-07 08:07:22 +05:00
Dongbo Wang 7073525059 Avoid using Regex when not necessary (#18210) 2022-10-06 15:26:22 -07:00
Dongbo Wang 0e4358cf93 Improve startup time by triggering initialization of additional types on background thread (#18195) 2022-10-04 10:17:09 -07:00
Steve Lee d5ed53eba2 Add CustomTableHeaderLabel formatting to differentiate table header labels that are not property names (#17346) 2022-10-03 15:05:11 -07:00
Ilya 8973b0c121 Use overload APIs that take char instead of string when it's possible (#18179) 2022-09-29 09:39:04 -07:00
xtqqczze fd67038ed8 Replace UTF8Encoding(false) with Encoding.Default (#18144) 2022-09-27 10:47:55 +05:00
Dongbo Wang 79b8140199 Make PowerShell class not affiliate with Runspace when declaring the NoRunspaceAffinity attribute (#18138) 2022-09-22 10:49:08 -07:00
Christoph Bergmeister d3d81c3e44 Display download progress in human readable format for Invoke-WebRequest (#14611) 2022-09-19 11:16:21 -07:00
Dongbo Wang 1a82574743 Treat [NullString]::Value as the string type when resolving methods (#18080) 2022-09-15 17:35:56 -07:00
Steve Lee 944ed5413d Revert "Add -StrictMode to Invoke-Command to allow specifying strict mode when invoking command locally" (#18040) 2022-09-12 11:41:57 -07:00
MartinGC94 fb9393e0cc Improve pseudo binding for dynamic parameters (#18030) 2022-09-12 11:34:15 -07:00
Steve Lee 61b5dceb60 Make experimental feature PSAnsiRenderingFileInfo stable (#18042) 2022-09-12 10:23:03 -07:00
Steve Lee 6744ffb826 Make experimental feature PSNativeCommandArgumentPassing stable (#18044) 2022-09-12 09:48:09 -07:00
Steve Lee ce746969ab Make experimental feature PSAMSIMethodInvocationLogging stable (#18041) 2022-09-12 09:20:20 -07:00
Dongbo Wang 3fbd90a4b0 Handle PSObject argument specially in method invocation logging (#18060) 2022-09-12 09:15:14 -07:00
Steve Lee 3bf6423a10 Make experimental feature PSRemotingSSHTransportErrorHandling stable (#18046) 2022-09-07 17:34:30 -07:00
Steve Lee 918bb8c952 Make experimental feature PSExec stable (#18045) 2022-09-07 10:28:17 -07:00