Running build.ps1 will build the module Aish, which will be published to out/<config>/module/Aish.
Importing Aish in PowerShell will automatically register the aish predictor. You can check by Get-PSSubsystem -Kind CommandPredictor.
Today the module exposes 3 commands: Invoke-Aish, Resolve-Error, and Start-Aish.
To try out the new features, follows these steps:
Run Import-Module <path-to-Aish-module>
Run Start-Aish -Path <path-to-aish.exe-built-from-this-branch>. This will start AISH in the sidecar.
The new command in AISH is /code post <n>, similarly to /copy copy <n>. It post the code to the connected PS session. For a list of one-liner commands (AzCLI response), the first command will be inserted to the prompt, and the rest will be available to user as prediction results. For other cases, all code will be inserted to the prompt.
The corresponding key bindings for /code post command is: Ctrl+d,Ctrl+d for /code post; Ctrl+d,n for /code post n.
In the connected PS session, you can try out the Invoke-Aish (alias: askai) and Resolve-Error (alias: fixit).
PR Summary
Shell integration for AISH.
build.ps1
will build the moduleAish
, which will be published toout/<config>/module/Aish
.Aish
in PowerShell will automatically register theaish
predictor. You can check byGet-PSSubsystem -Kind CommandPredictor
.Invoke-Aish
,Resolve-Error
, andStart-Aish
.Import-Module <path-to-Aish-module>
Start-Aish -Path <path-to-aish.exe-built-from-this-branch>
. This will start AISH in the sidecar./code post <n>
, similarly to/copy copy <n>
. It post the code to the connected PS session. For a list of one-liner commands (AzCLI response), the first command will be inserted to the prompt, and the rest will be available to user as prediction results. For other cases, all code will be inserted to the prompt./code post
command is: Ctrl+d,Ctrl+d for/code post
; Ctrl+d,n for/code post n
.Invoke-Aish
(alias:askai
) andResolve-Error
(alias:fixit
).