From 31ca9b28a258abcaa35de746a049d2dd5495f916 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Sat, 7 Oct 2023 18:58:10 -0700 Subject: [PATCH] refactor: rename command main ui components to be 'ui-.tsx' Signed-off-by: Chapman Pendery --- src/commands/root.ts | 2 +- src/ui/{ui.tsx => ui-root.tsx} | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) rename src/ui/{ui.tsx => ui-root.tsx} (97%) diff --git a/src/commands/root.ts b/src/commands/root.ts index a95f9dc..9675b82 100644 --- a/src/commands/root.ts +++ b/src/commands/root.ts @@ -1,4 +1,4 @@ -import { render } from "../ui/ui.js"; +import { render } from "../ui/ui-root.js"; import { executeShellCommandTTY } from "../runtime/utils.js"; const shells = ["bash", "powershell", "pwsh"]; diff --git a/src/ui/ui.tsx b/src/ui/ui-root.tsx similarity index 97% rename from src/ui/ui.tsx rename to src/ui/ui-root.tsx index fa4ec85..1627953 100644 --- a/src/ui/ui.tsx +++ b/src/ui/ui-root.tsx @@ -6,7 +6,6 @@ import { getSuggestions } from "../runtime/runtime.js"; import { Suggestion } from "../runtime/model.js"; import Suggestions from "./suggestions.js"; import Input from "./input.js"; -import { executeShellCommandTTY } from "../runtime/utils.js"; const Prompt = "> "; let uiResult = "";