PPCLI.PowerShell

所属分类:Windows编程
开发工具:PowerShell
文件大小:0KB
下载次数:0
上传日期:2023-11-26 02:00:33
上 传 者sh-1993
说明:  PPCLI。PowerShell。预测器
(PPCLI.PowerShell.Predictor)

文件列表:
assets/ (0, 2023-12-16)
assets/demo.gif (319187, 2023-12-16)
build.ps1 (449, 2023-12-16)
resources/ (0, 2023-12-16)
resources/Generate-Predictions.ps1 (1932, 2023-12-16)
resources/PowerPlatform.CLI.PowerShell.Suggestions.json (21153, 2023-12-16)
src/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PPCLI.PowerShell.Predictor.Module.pssproj (2178, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/Data/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/Data/PowerPlatform.CLI.PowerShell.Suggestions.json (7371, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/PPCLI.PowerShell.Predictor.dll (12800, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/PowerPlatform.CLI.PowerShell.Predictor.psd1 (8810, 2023-12-16)
src/PPCLI.PowerShell.Predictor.Module/PowerPlatform.CLI.PowerShell.Predictor/PowerPlatform.CLI.PowerShell.Predictor.psm1 (1772, 2023-12-16)
src/PPCLI.PowerShell.Predictor.sln (1707, 2023-12-16)
src/PPCLI.PowerShell.Predictor/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/Interfaces/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/Interfaces/IPPCLIPowerShellPredictorService.cs (278, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/Model/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/Model/Suggestion.cs (186, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Abstractions/Model/SuggestionsFile.cs (378, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Data/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Data/PowerPlatform.CLI.PowerShell.Suggestions.json (7371, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Init.cs (1015, 2023-12-16)
src/PPCLI.PowerShell.Predictor/PPCLI.PowerShell.Predictor.csproj (1063, 2023-12-16)
src/PPCLI.PowerShell.Predictor/PPCLIPowerShellPredictor.cs (4762, 2023-12-16)
src/PPCLI.PowerShell.Predictor/PPCLIPowerShellPredictorConstants.cs (462, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Services/ (0, 2023-12-16)
src/PPCLI.PowerShell.Predictor/Services/PPCLIPowerShellPredictorService.cs (3753, 2023-12-16)

# Power Platform CLI PowerShell Predictor module ## Overview [Power Platform CLI PowerShell Predictor](https://www.powershellgallery.com/packages/PowerPlatform.CLI.PowerShell.Predictor/) is a PowerShell module that helps you navigate the cmdlets and parameters of [Power Platform CLI](https://learn.microsoft.com/en-us/power-platform/developer/cli/introduction) in PowerShell. It provides suggestions for command completion when using Power Platform CLI cmdlets in PowerShell. Power Platform CLI PowerShell Predictor uses the [subsystem plugin model](/powershell/scripting/learn/experimental-features#pssubsystempluginmodel) available in PowerShell 7.2. This updated version requires [PSReadLine 2.2.2](https://www.powershellgallery.com/packages/PSReadLine/2.2.2) or higher to display suggestions. ![demo](./assets/demo.gif) ## Requirements Required configuration for SPO PowerShell Predictor: - [PowerShell 7.2](https://github.com/PowerShell/PowerShell/) or higher - [PSReadline 2.2.2](https://github.com/PowerShell/PSReadLine/) or higher Install the latest version of PSReadLine: ```powershell Install-Module -Name PSReadline ``` #### Set preferred source and view for suggestions Enable predictions from history and plugins ```powershell Set-PSReadLineOption -PredictionSource HistoryAndPlugin ``` Enable list view: ```powershell Set-PSReadLineOption -PredictionViewStyle ListView ``` ## Getting started ### Install Power Platform CLI PowerShell Predictor To install the PowerPlatform.CLI.PowerShell.Predictor PowerShell module run the following ```powershell Install-Module -Name PowerPlatform.CLI.PowerShell.Predictor ``` ### Import Power Platform CLI PowerShell Predictor To import the Power Platform CLI PowerShell Predictor PowerShell module in the current session run the following ```powershell Import-Module -Name PowerPlatform.CLI.PowerShell.Predictor ``` ### Use Power Platform CLI PowerShell Predictor Once imported, start typing Power Platform CLI cmdlet (e.g. `pac admin...`) and see the predictions loading. ## Uninstallation Once installed and enabled, Power Platform CLI PowerShell Predictor is loaded in the PowerShell profile. To uninstall the PowerPlatform.CLI.PowerShell.Predictor module: 1. Close **all** PowerShell sessions including VS Code. 1. Launch a PowerShell session with no profile. ```powershell pwsh -noprofile ``` 1. Uninstall Power Platform CLI PowerShell Predictor ```powershell Uninstall-Module -Name PowerPlatform.CLI.PowerShell.Predictor -Force ``` 1. Close PowerShell

近期下载者

相关文件


收藏者