Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CONTEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The managed type in namespace `GitHub` whose `ResolvePath` returns the Payload's
_Avoid_: Gh, Ghx, GitHubCli, ResolveBinaryPath

**gh** (tool package):
The passthrough .NET tool. Package id `gh` so `dnx`/`ndnx gh`. `ToolCommandName` is `dotnet-gh`, so a locally/globally installed tool is `dotnet gh` and does not steal the `gh` command from GitHub's native CLI.
The passthrough .NET tool. Package id `gh` so `dnx`/`ndx gh`. `ToolCommandName` is `dotnet-gh`, so a locally/globally installed tool is `dotnet gh` and does not steal the `gh` command from GitHub's native CLI.
_Avoid_: installing a command named `gh`; wrapping with its own GitHub verbs

**Execute**:
Expand Down
2 changes: 1 addition & 1 deletion docs/adr/0002-nupkg-version-is-upstream.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Nupkg version is Upstream

`gh.cli` and the `gh` tool use the GitHub CLI version (`2.98.0`) so `ndnx gh@2.98.0` is that CLI. The pin is `github-cli.version`. CI dogfood stays `42.42.*`. Packaging-only republishes of the same CLI use a SemVer label, not a different major.
`gh.cli` and the `gh` tool use the GitHub CLI version (`2.98.0`) so `ndx gh@2.98.0` is that CLI. The pin is `github-cli.version`. CI dogfood stays `42.42.*`. Packaging-only republishes of the same CLI use a SemVer label, not a different major.
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,19 @@ OSMF tier. A single fee covers all of [Devlooped packages](https://www.nuget.org

<!-- https://github.com/devlooped/.github/raw/main/osmf.md -->
<!-- #content -->
Packs the [GitHub CLI](https://github.com/cli/cli) for install-less, portable execution via `ndnx`/`dnx`.
Packs the [GitHub CLI](https://github.com/cli/cli) for install-less, portable execution via `ndx`/`dnx`.

## Usage

```bash
ndnx gh repo list
ndx gh repo list
dnx gh repo list

# installed
dotnet tool install gh && dotnet gh --version
```

`dnx`/`ndnx` use the package id `gh`. An installed tool is `dotnet gh` (`ToolCommandName` `dotnet-gh`) so it does not replace GitHub's native `gh` on PATH.
`dnx`/`ndx` use the package id `gh`. An installed tool is `dotnet gh` (`ToolCommandName` `dotnet-gh`) so it does not replace GitHub's native `gh` on PATH.

`PackageReference` `gh.cli` and pack/publish for your RID to copy `gh/` next to the app. `GitHub.Cli.ResolvePath()` is the Payload `gh` executable.

Expand Down
2 changes: 1 addition & 1 deletion src/gh/gh.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageId>gh</PackageId>
<RootNamespace>gh</RootNamespace>
<AssemblyName>dotnet-gh</AssemblyName>
<Description>Execute the bundled GitHub CLI. ndnx gh / dnx gh / dotnet gh.</Description>
<Description>Execute the bundled GitHub CLI. ndx gh / dnx gh / dotnet gh.</Description>
<PackAsTool>true</PackAsTool>
<PublishAot>true</PublishAot>
<ToolCommandName>dotnet-gh</ToolCommandName>
Expand Down
Loading