PowerShell / PowerShell/PowerShellEditorServices
Provide a way to enable auto-loading of editor command modules
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 767
- Forks
- 266
- Ø Merge
- 3 T. 16 Std.
- Gemergte PRs (30 T.)
- 1
Beschreibung
It would be nice if there was a way for the user to opt in to the auto-loading of any PowerShell Gallery modules they've installed which include editor commands written with the new extensibilty model. The user would add a cmdlet call to their chosen editor's profile which invokes this module auto-loading process. It might look something like this:
Import-EditorCommandModules [-Exclude <String[]> [-Repository <String[]>]`
The -Exclude parameter would take a list of module names which should be excluded from the auto-loading process. The -Repository parameter would restrict auto module loading to only the modules which were installed from the specified repositories.
When invoked, this command would use Get-InstalledModule to find all modules and then filter them down to the specified repositories. It'd then filter them down even further to only those with a conventional tag called EditorCommand. This would allow module authors to indicate that their module contains editor commands which can be auto-loaded.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginnen Sie mit dem vorgeschlagenen Einstiegspunkt Import-EditorCommandModules und dem Editorprofil, über das Benutzer ihn aufrufen würden. Prüfen Sie, wie Get-InstalledModule installierte Module und Repositorys verfügbar macht, und definieren Sie anschließend die Filterung für -Exclude, -Repository und das Tag EditorCommand. Erledigt ist die Aufgabe, wenn das Laden mit Opt-in nur geeignete Module findet und beide Filter berücksichtigt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- powershell
- Bereich
- tooling
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100