@leohenon/opengh 0.0.0-beta.2 → 0.0.0-stage
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -68
- package/package.json +4 -43
- package/LICENSE +0 -21
- package/bin/opengh.cjs +0 -37
package/README.md
CHANGED
|
@@ -1,69 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
<picture>
|
|
3
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/logo-dark-jetbrains.png" />
|
|
4
|
-
<img src="docs/assets/logo-light-jetbrains.png" alt="opengh" width="360" />
|
|
5
|
-
</picture>
|
|
6
|
-
</p>
|
|
1
|
+
# Temporary Holding Version
|
|
7
2
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<picture>
|
|
11
|
-
<source media="(prefers-reduced-motion: reduce) and (prefers-color-scheme: dark)" srcset="docs/assets/screenshot-dark.png" />
|
|
12
|
-
<source media="(prefers-reduced-motion: reduce)" srcset="docs/assets/screenshot-light.png" />
|
|
13
|
-
<source media="(prefers-color-scheme: dark)" srcset="docs/assets/screenshot-dark-animated.svg" type="image/svg+xml" />
|
|
14
|
-
<source media="(prefers-color-scheme: light)" srcset="docs/assets/screenshot-light-animated.svg" type="image/svg+xml" />
|
|
15
|
-
<img src="docs/assets/screenshot-light.png" alt="opengh showing a split diff and inline review for OpenTUI PR #209" />
|
|
16
|
-
</picture>
|
|
17
|
-
|
|
18
|
-
- **Manage** repositories, issues, pull requests, and Actions.
|
|
19
|
-
- **Review** diffs, leave inline comments, and submit reviews.
|
|
20
|
-
- **Navigate** with your keyboard or mouse.
|
|
21
|
-
|
|
22
|
-
## Install
|
|
23
|
-
|
|
24
|
-
Available for macOS and Linux. Uses [GitHub CLI authentication](https://cli.github.com/manual/gh_auth).
|
|
25
|
-
|
|
26
|
-
```sh
|
|
27
|
-
# Homebrew
|
|
28
|
-
brew install leohenon/tap/opengh
|
|
29
|
-
|
|
30
|
-
# npm
|
|
31
|
-
npm install --global @leohenon/opengh
|
|
32
|
-
|
|
33
|
-
# Curl
|
|
34
|
-
curl -fsSL https://github.com/leohenon/opengh/releases/latest/download/install.sh | sh
|
|
35
|
-
|
|
36
|
-
# Nix
|
|
37
|
-
nix profile install github:leohenon/opengh#opengh nixpkgs#gh
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
## Open a repository
|
|
41
|
-
|
|
42
|
-
```sh
|
|
43
|
-
opengh . # Current directory's repository
|
|
44
|
-
opengh owner/repo # Any repository
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## Update
|
|
48
|
-
|
|
49
|
-
```sh
|
|
50
|
-
opengh update
|
|
51
|
-
```
|
|
52
|
-
|
|
53
|
-
## Documentation
|
|
54
|
-
|
|
55
|
-
[Configuration](https://github.com/leohenon/opengh/blob/main/docs/configuration.md) · [Keybindings](https://github.com/leohenon/opengh/blob/main/docs/keybindings.md) · [CLI](https://github.com/leohenon/opengh/blob/main/docs/cli.md) · [Development](https://github.com/leohenon/opengh/blob/main/docs/development.md)
|
|
56
|
-
|
|
57
|
-
See the [roadmap](https://github.com/leohenon/opengh/blob/main/ROADMAP.md) for what's planned.
|
|
58
|
-
|
|
59
|
-
---
|
|
60
|
-
|
|
61
|
-
<p align="center">
|
|
62
|
-
<sub>
|
|
63
|
-
<a href="https://github.com/leohenon/opengh/blob/main/LICENSE">MIT licensed</a> · Built with
|
|
64
|
-
<a href="https://bun.sh/">Bun</a>,
|
|
65
|
-
<a href="https://github.com/anomalyco/opentui">OpenTUI</a>,
|
|
66
|
-
<a href="https://www.solidjs.com/">SolidJS</a>, and
|
|
67
|
-
<a href="https://github.com/modem-dev/hunk">Hunk</a>.
|
|
68
|
-
</sub>
|
|
69
|
-
</p>
|
|
3
|
+
This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
|
package/package.json
CHANGED
|
@@ -1,45 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leohenon/opengh",
|
|
3
|
-
"version": "0.0.0-
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/leohenon/opengh.git"
|
|
10
|
-
},
|
|
11
|
-
"description": "A familiar terminal interface for GitHub.",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"github",
|
|
14
|
-
"terminal",
|
|
15
|
-
"tui",
|
|
16
|
-
"cli",
|
|
17
|
-
"pull-request",
|
|
18
|
-
"code-review"
|
|
19
|
-
],
|
|
20
|
-
"bin": {
|
|
21
|
-
"opengh": "bin/opengh.cjs"
|
|
22
|
-
},
|
|
23
|
-
"files": [
|
|
24
|
-
"bin"
|
|
25
|
-
],
|
|
26
|
-
"os": [
|
|
27
|
-
"darwin",
|
|
28
|
-
"linux"
|
|
29
|
-
],
|
|
30
|
-
"cpu": [
|
|
31
|
-
"arm64",
|
|
32
|
-
"x64"
|
|
33
|
-
],
|
|
34
|
-
"engines": {
|
|
35
|
-
"node": ">=18"
|
|
36
|
-
},
|
|
37
|
-
"optionalDependencies": {
|
|
38
|
-
"opengh-darwin-arm64": "0.0.0-beta.2",
|
|
39
|
-
"opengh-darwin-x64": "0.0.0-beta.2",
|
|
40
|
-
"opengh-linux-x64": "0.0.0-beta.2",
|
|
41
|
-
"opengh-linux-arm64": "0.0.0-beta.2",
|
|
42
|
-
"opengh-linux-x64-musl": "0.0.0-beta.2",
|
|
43
|
-
"opengh-linux-arm64-musl": "0.0.0-beta.2"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
3
|
+
"version": "0.0.0-stage",
|
|
4
|
+
"stub": true,
|
|
5
|
+
"description": "Temporary package placeholder for staged publishing"
|
|
6
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 leohenon
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/bin/opengh.cjs
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict"
|
|
3
|
-
|
|
4
|
-
// Published as the `opengh` command of the npm package. The executable itself comes from the
|
|
5
|
-
// optional dependency built for this platform; this file only finds and runs it.
|
|
6
|
-
const { spawnSync } = require("node:child_process")
|
|
7
|
-
const fs = require("node:fs")
|
|
8
|
-
|
|
9
|
-
function usesMusl() {
|
|
10
|
-
if (process.platform !== "linux") return false
|
|
11
|
-
try { return !process.report.getReport().header.glibcVersionRuntime }
|
|
12
|
-
catch { return fs.existsSync("/etc/alpine-release") }
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
// Package managers that ignore "libc" install both Linux variants, so the choice is made here.
|
|
16
|
-
const musl = usesMusl()
|
|
17
|
-
const name = `opengh-${process.platform}-${process.arch}${musl ? "-musl" : ""}`
|
|
18
|
-
let executable
|
|
19
|
-
try { executable = require.resolve(`${name}/bin/opengh`) }
|
|
20
|
-
catch {
|
|
21
|
-
console.error(`opengh: no executable is installed for ${process.platform} ${process.arch}${musl ? " (musl)" : ""}.
|
|
22
|
-
Reinstall without omitting optional dependencies (they provide ${name}),
|
|
23
|
-
or download a release from https://github.com/leohenon/opengh/releases.`)
|
|
24
|
-
process.exit(1)
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// Some package managers drop the executable bit when unpacking.
|
|
28
|
-
try { if (!(fs.statSync(executable).mode & 0o111)) fs.chmodSync(executable, 0o755) } catch {}
|
|
29
|
-
|
|
30
|
-
const result = spawnSync(executable, process.argv.slice(2), { stdio: "inherit" })
|
|
31
|
-
if (result.error) {
|
|
32
|
-
console.error(`opengh: ${result.error.message}`)
|
|
33
|
-
process.exit(1)
|
|
34
|
-
}
|
|
35
|
-
// End the way the application did, so that shells and scripts see the same outcome.
|
|
36
|
-
if (result.signal) process.kill(process.pid, result.signal)
|
|
37
|
-
process.exit(result.status ?? 1)
|