gh-manager-cli 1.15.0 → 1.16.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.16.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.15.1...v1.16.0) (2025-09-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * add Ctrl+L logout option to error state ([#14](https://github.com/wiiiimm/gh-manager-cli/issues/14)) ([1a15028](https://github.com/wiiiimm/gh-manager-cli/commit/1a15028cc8f1a2bf39054f65b09d0ade7be1de0f))
7
+
8
+ ## [1.15.1](https://github.com/wiiiimm/gh-manager-cli/compare/v1.15.0...v1.15.1) (2025-09-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * standardise keyboard shortcut capitalisation in error messages ([44d7998](https://github.com/wiiiimm/gh-manager-cli/commit/44d7998f3bad752a18c2a54c0adef18b69f9ecca))
14
+
1
15
  # [1.15.0](https://github.com/wiiiimm/gh-manager-cli/compare/v1.14.0...v1.15.0) (2025-09-02)
2
16
 
3
17
 
package/dist/index.js CHANGED
@@ -27,7 +27,7 @@ var require_package = __commonJS({
27
27
  "package.json"(exports, module) {
28
28
  module.exports = {
29
29
  name: "gh-manager-cli",
30
- version: "1.15.0",
30
+ version: "1.16.0",
31
31
  private: false,
32
32
  description: "Interactive CLI to manage your GitHub repos (personal) with Ink",
33
33
  license: "MIT",
@@ -1727,6 +1727,39 @@ function RepoList({ token, maxVisibleRows, onLogout, viewerLogin, onOrgContextCh
1727
1727
  }
1728
1728
  }, [viewerLogin]);
1729
1729
  useInput10((input, key) => {
1730
+ if (error) {
1731
+ if (input && input.toUpperCase() === "Q") {
1732
+ try {
1733
+ const seq = "\x1B[2J\x1B[3J\x1B[H";
1734
+ if (stdout && typeof stdout.write === "function") stdout.write(seq);
1735
+ else if (typeof process.stdout.write === "function") process.stdout.write(seq);
1736
+ } catch {
1737
+ }
1738
+ exit();
1739
+ return;
1740
+ }
1741
+ if (input && input.toUpperCase() === "R") {
1742
+ setCursor(0);
1743
+ setRefreshing(true);
1744
+ setSortingLoading(true);
1745
+ ;
1746
+ (async () => {
1747
+ try {
1748
+ await purgeApolloCacheFiles();
1749
+ } catch {
1750
+ }
1751
+ fetchPage(null, true, true, void 0, "network-only");
1752
+ })();
1753
+ return;
1754
+ }
1755
+ if (key.ctrl && (input === "l" || input === "L")) {
1756
+ if (onLogout) {
1757
+ onLogout();
1758
+ }
1759
+ return;
1760
+ }
1761
+ return;
1762
+ }
1730
1763
  if (orgSwitcherOpen) {
1731
1764
  return;
1732
1765
  }
@@ -2179,9 +2212,9 @@ function RepoList({ token, maxVisibleRows, onLogout, viewerLogin, onOrgContextCh
2179
2212
  ] }) }),
2180
2213
  /* @__PURE__ */ jsx14(Box13, { borderStyle: "single", borderColor: "red", paddingX: 1, paddingY: 1, marginX: 1, height: contentHeight + containerPadding + 2, flexDirection: "column", children: /* @__PURE__ */ jsx14(Box13, { height: contentHeight, justifyContent: "center", alignItems: "center", children: /* @__PURE__ */ jsxs13(Box13, { flexDirection: "column", alignItems: "center", children: [
2181
2214
  /* @__PURE__ */ jsx14(Text14, { color: "red", children: error }),
2182
- /* @__PURE__ */ jsx14(Box13, { marginTop: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", dimColor: true, children: "Press 'r' to retry or 'q' to quit" }) })
2215
+ /* @__PURE__ */ jsx14(Box13, { marginTop: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", dimColor: true, children: "Press R to retry \u2022 Ctrl+L to logout \u2022 Q to quit" }) })
2183
2216
  ] }) }) }),
2184
- /* @__PURE__ */ jsx14(Box13, { marginTop: 1, paddingX: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", children: "Press 'r' to retry \u2022 'q' to quit" }) })
2217
+ /* @__PURE__ */ jsx14(Box13, { marginTop: 1, paddingX: 1, children: /* @__PURE__ */ jsx14(Text14, { color: "gray", children: "Press R to retry \u2022 Ctrl+L to logout \u2022 Q to quit" }) })
2185
2218
  ] });
2186
2219
  }
2187
2220
  if (loading && items.length === 0 || sortingLoading) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gh-manager-cli",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "private": false,
5
5
  "description": "Interactive CLI to manage your GitHub repos (personal) with Ink",
6
6
  "license": "MIT",