1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 14:47:47 +00:00

Completions for dotnet (#938)

Just forwarding the work to "dotnet complete" command,
which has a disadvantage of not including any comments
This commit is contained in:
Jakub Grabarczuk 2024-08-28 15:15:37 +02:00 committed by GitHub
parent 6abc543722
commit 102c7d884b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,14 @@
# .NET CLI completions
Completions for the .NET CLI (`dotnet`), which comes with .NET SDK.
.NET is, to quote the official documentation, an "open-source developer platform for building many different types of applications".
For more information, see
- [Installation instructions](https://learn.microsoft.com/en-us/dotnet/core/install/),
- [CLI documentation](https://learn.microsoft.com/en-us/dotnet/core/tools/),
- [General dotnet documentation](https://learn.microsoft.com/en-us/dotnet/fundamentals/).
This plugin uses built-in `dotnet complete` command, which unfortunately does not provide comments for the completions.
On the other hand, it is officially supported, and completions are always in sync with the installed .NET SDK.
For hand-crafted completions, see ones generated from Fish: (../auto-generate/completions/dotnet.nu).

View file

@ -0,0 +1,7 @@
def "nu-complete dotnet" [prefix: string] {
^dotnet complete $"($prefix)" | lines
}
export extern "dotnet" [
...command: string@"nu-complete dotnet"
]