gh-manager-cli 1.11.1 → 1.13.0
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [1.13.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.12.0...v1.13.0) (2025-09-01)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* add Homebrew tap support and CLI flags ([#10](https://github.com/wiiiimm/gh-manager-cli/issues/10)) ([bba6c38](https://github.com/wiiiimm/gh-manager-cli/commit/bba6c38b5c1bd01b8a01d87b8e2910d3523dd776))
|
|
7
|
+
|
|
8
|
+
# [1.12.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.11.1...v1.12.0) (2025-09-01)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **homebrew:** packaging plan for submission to homebrew-core ([#9](https://github.com/wiiiimm/gh-manager-cli/issues/9)) ([f1d306a](https://github.com/wiiiimm/gh-manager-cli/commit/f1d306a321ba577cf8f3ea7c1a2090dbf8c8dfc4))
|
|
14
|
+
|
|
1
15
|
## [1.11.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.11.0...v1.11.1) (2025-09-01)
|
|
2
16
|
|
|
3
17
|
|
package/README.md
CHANGED
|
@@ -80,6 +80,13 @@ On first run, you'll be prompted for a GitHub Personal Access Token.
|
|
|
80
80
|
|
|
81
81
|
## Installation
|
|
82
82
|
|
|
83
|
+
### Homebrew (macOS/Linux)
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
brew tap wiiiimm/tap
|
|
87
|
+
brew install gh-manager-cli
|
|
88
|
+
```
|
|
89
|
+
|
|
83
90
|
### NPX (Recommended - No Installation Required)
|
|
84
91
|
|
|
85
92
|
Run instantly without installing:
|
|
@@ -1,8 +1,29 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
2
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
3
8
|
var __commonJS = (cb, mod) => function __require() {
|
|
4
9
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
5
10
|
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
6
27
|
|
|
7
28
|
// src/github.ts
|
|
8
29
|
import { graphql as makeGraphQL } from "@octokit/graphql";
|
|
@@ -835,6 +856,7 @@ async function inspectCacheStatus() {
|
|
|
835
856
|
|
|
836
857
|
export {
|
|
837
858
|
__commonJS,
|
|
859
|
+
__toESM,
|
|
838
860
|
makeClient,
|
|
839
861
|
getViewerLogin,
|
|
840
862
|
fetchViewerOrganizations,
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
__commonJS,
|
|
4
|
+
__toESM,
|
|
4
5
|
archiveRepositoryById,
|
|
5
6
|
deleteRepositoryRest,
|
|
6
7
|
fetchViewerOrganizations,
|
|
@@ -16,14 +17,14 @@ import {
|
|
|
16
17
|
updateCacheAfterArchive,
|
|
17
18
|
updateCacheAfterDelete,
|
|
18
19
|
updateCacheWithRepository
|
|
19
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-BOS4OCY4.js";
|
|
20
21
|
|
|
21
22
|
// package.json
|
|
22
23
|
var require_package = __commonJS({
|
|
23
24
|
"package.json"(exports, module) {
|
|
24
25
|
module.exports = {
|
|
25
26
|
name: "gh-manager-cli",
|
|
26
|
-
version: "1.
|
|
27
|
+
version: "1.13.0",
|
|
27
28
|
private: false,
|
|
28
29
|
description: "Interactive CLI to manage your GitHub repos (personal) with Ink",
|
|
29
30
|
license: "MIT",
|
|
@@ -57,7 +58,8 @@ var require_package = __commonJS({
|
|
|
57
58
|
prepublishOnly: "pnpm run build",
|
|
58
59
|
test: "vitest run",
|
|
59
60
|
"test:watch": "vitest",
|
|
60
|
-
"test:coverage": "vitest run --coverage"
|
|
61
|
+
"test:coverage": "vitest run --coverage",
|
|
62
|
+
"brew:sha": "bash scripts/brew-sha.sh"
|
|
61
63
|
},
|
|
62
64
|
engines: {
|
|
63
65
|
node: ">=18"
|
|
@@ -144,6 +146,7 @@ var require_package = __commonJS({
|
|
|
144
146
|
});
|
|
145
147
|
|
|
146
148
|
// src/index.tsx
|
|
149
|
+
var import_package = __toESM(require_package(), 1);
|
|
147
150
|
import { render, Box as Box14, Text as Text15 } from "ink";
|
|
148
151
|
import "dotenv/config";
|
|
149
152
|
|
|
@@ -284,7 +287,7 @@ function OrgSwitcher({ token, currentContext, onSelect, onClose }) {
|
|
|
284
287
|
const loadOrgs = async () => {
|
|
285
288
|
try {
|
|
286
289
|
setLoading(true);
|
|
287
|
-
const client = await import("./github-
|
|
290
|
+
const client = await import("./github-GO2ZQWZN.js").then((m) => m.makeClient(token));
|
|
288
291
|
const orgs = await fetchViewerOrganizations(client);
|
|
289
292
|
setOrganizations(orgs);
|
|
290
293
|
if (!isPersonalContext) {
|
|
@@ -2422,6 +2425,28 @@ function App() {
|
|
|
2422
2425
|
|
|
2423
2426
|
// src/index.tsx
|
|
2424
2427
|
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2428
|
+
var argv = process.argv.slice(2);
|
|
2429
|
+
if (argv.includes("--version") || argv.includes("-v")) {
|
|
2430
|
+
const version = import_package.default?.version || "0.0.0";
|
|
2431
|
+
process.stdout.write(`${version}
|
|
2432
|
+
`);
|
|
2433
|
+
process.exit(0);
|
|
2434
|
+
}
|
|
2435
|
+
if (argv.includes("--help") || argv.includes("-h")) {
|
|
2436
|
+
process.stdout.write(`
|
|
2437
|
+
gh-manager-cli \u2014 GitHub repo manager (Ink TUI)
|
|
2438
|
+
|
|
2439
|
+
Usage:
|
|
2440
|
+
gh-manager-cli Launch the TUI
|
|
2441
|
+
gh-manager-cli --version Print version
|
|
2442
|
+
gh-manager-cli --help Show help
|
|
2443
|
+
|
|
2444
|
+
Env:
|
|
2445
|
+
GITHUB_TOKEN / GH_TOKEN Personal Access Token
|
|
2446
|
+
REPOS_PER_FETCH Page size (1-50)
|
|
2447
|
+
`);
|
|
2448
|
+
process.exit(0);
|
|
2449
|
+
}
|
|
2425
2450
|
if (process.env.GH_MANAGER_DEBUG === "1") {
|
|
2426
2451
|
process.stderr.write("\u{1F41B} Debug mode enabled\n");
|
|
2427
2452
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gh-manager-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.13.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Interactive CLI to manage your GitHub repos (personal) with Ink",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"prepublishOnly": "pnpm run build",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"test:watch": "vitest",
|
|
37
|
-
"test:coverage": "vitest run --coverage"
|
|
37
|
+
"test:coverage": "vitest run --coverage",
|
|
38
|
+
"brew:sha": "bash scripts/brew-sha.sh"
|
|
38
39
|
},
|
|
39
40
|
"engines": {
|
|
40
41
|
"node": ">=18"
|