-
Notifications
You must be signed in to change notification settings - Fork 4
🩹 [Patch]: Enable Context Sharing Across PowerShell Processes and Runspaces #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e06c076
Initial plan for issue
Copilot 6c8a680
Implement disk-based context operations for cross-process sharing
Copilot 71fc57e
Update argument completers to use disk-based context enumeration
Copilot 310c6a8
Update argument completer to use Get-ContextInfo for better consistency
Copilot f9dc277
Refactor argument completer to use dynamic command names and improve …
MariusStorhaug 358c623
Remove Contexts.ps1 file and its concurrent dictionary implementation…
MariusStorhaug b17494e
Downgrade Sodium module version to 2.1.2 in context functions for com…
MariusStorhaug 3942461
Update Sodium module version to 2.2.0 in context functions for compat…
MariusStorhaug a033a2f
Add blank line at the beginning of README.md for improved readability
MariusStorhaug a9e03a2
Remove unnecessary blank line at the beginning of README.md for impro…
MariusStorhaug e8d2a6a
Add blank line at the beginning of README.md for improved readability
MariusStorhaug d94239e
Remove unnecessary blank line at the beginning of README.md for impro…
MariusStorhaug 4237d12
Add blank line at the beginning of README.md for improved readability
MariusStorhaug 040e709
Remove unnecessary blank line at the beginning of README.md for impro…
MariusStorhaug a9a8b6f
Add blank line at the beginning of README.md for improved readability
MariusStorhaug 0515f23
Remove unnecessary blank line at the beginning of README.md for impro…
MariusStorhaug File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| Register-ArgumentCompleter -CommandName 'Get-Context', 'Set-Context', 'Remove-Context', 'Rename-Context' -ParameterName 'ID' -ScriptBlock { | ||
| Register-ArgumentCompleter -CommandName ($script:PSModuleInfo.FunctionsToExport) -ParameterName 'ID' -ScriptBlock { | ||
| param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter) | ||
| $null = $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameter | ||
|
|
||
| $script:Contexts.Values.ID | Where-Object { $_ -like "$wordToComplete*" } | | ||
| ForEach-Object { | ||
| [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_) | ||
| } | ||
| $contextInfos = Get-ContextInfo -ErrorAction SilentlyContinue -Verbose:$false -Debug:$false | ||
| $contextInfos | Where-Object { $_.ID -like "$wordToComplete*" } | ForEach-Object { | ||
| [System.Management.Automation.CompletionResult]::new($_.ID, $_.ID, 'ParameterValue', $_.ID) | ||
| } | ||
| } |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| $script:Config = [pscustomobject]@{ | ||
| Initialized = $false # Has the vault been initialized? | ||
| VaultPath = Join-Path -Path $HOME -ChildPath '.contextvault' # Vault directory path | ||
| SeedShardPath = 'vault.shard' # Seed shard path (relative to VaultPath) | ||
| SeedShardPath = 'vault.shard' # Seed shard path (relative to VaultPath) | ||
| PrivateKey = $null # Private key (populated on init) | ||
| PublicKey = $null # Public key (populated on init) | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.