From d1fc53206c5f7ed80bbdee024b5b85aaa3147b9d Mon Sep 17 00:00:00 2001 From: rhpidfyre Date: Sun, 23 Feb 2025 23:20:35 -0500 Subject: [PATCH] fs.ts -> core.ts, fn.ts -> library.ts --- src/rt/elements/prompt.ts | 2 +- src/rt/shell/command/builtin/cd.ts | 2 +- src/rt/shell/command/builtin/ls.ts | 4 ++-- src/rt/shell/command/builtin/pwd.ts | 2 +- src/rt/shell/fs/{fs.ts => core.ts} | 0 src/rt/shell/fs/{fn.ts => library.ts} | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename src/rt/shell/fs/{fs.ts => core.ts} (100%) rename src/rt/shell/fs/{fn.ts => library.ts} (99%) diff --git a/src/rt/elements/prompt.ts b/src/rt/elements/prompt.ts index 09de7e5..828879d 100644 --- a/src/rt/elements/prompt.ts +++ b/src/rt/elements/prompt.ts @@ -1,5 +1,5 @@ import { cyan, green } from "../shell/color" -import { get_working_dir_name } from "../shell/fs/fn" +import { get_working_dir_name } from "../shell/fs/library" import create from "./create" diff --git a/src/rt/shell/command/builtin/cd.ts b/src/rt/shell/command/builtin/cd.ts index e05a547..362291b 100644 --- a/src/rt/shell/command/builtin/cd.ts +++ b/src/rt/shell/command/builtin/cd.ts @@ -1,4 +1,4 @@ -import { set_working_dir, SetDirStatus } from "../../fs/fn" +import { set_working_dir, SetDirStatus } from "../../fs/library" import type { Args, Term } from "../list" import stdout from "../../../elements/stdout" diff --git a/src/rt/shell/command/builtin/ls.ts b/src/rt/shell/command/builtin/ls.ts index fe3d531..b2438f6 100644 --- a/src/rt/shell/command/builtin/ls.ts +++ b/src/rt/shell/command/builtin/ls.ts @@ -1,7 +1,7 @@ import type { Args, Term } from "../list"; import { blue } from "../../color"; -import { get_working_dir_entries } from "../../fs/fn"; -import { EntryType, FsEntry } from "../../fs/fs"; +import { get_working_dir_entries } from "../../fs/library"; +import { EntryType, FsEntry } from "../../fs/core"; import stdout, { stdout_horizontal_elements } from "../../../elements/stdout"; import create from "../../../elements/create"; diff --git a/src/rt/shell/command/builtin/pwd.ts b/src/rt/shell/command/builtin/pwd.ts index 7e611e2..b686d1e 100644 --- a/src/rt/shell/command/builtin/pwd.ts +++ b/src/rt/shell/command/builtin/pwd.ts @@ -1,4 +1,4 @@ -import { get_working_dir_name_full } from "../../fs/fn"; +import { get_working_dir_name_full } from "../../fs/library"; import type { Args, Term } from "../list"; import stdout from "../../../elements/stdout"; diff --git a/src/rt/shell/fs/fs.ts b/src/rt/shell/fs/core.ts similarity index 100% rename from src/rt/shell/fs/fs.ts rename to src/rt/shell/fs/core.ts diff --git a/src/rt/shell/fs/fn.ts b/src/rt/shell/fs/library.ts similarity index 99% rename from src/rt/shell/fs/fn.ts rename to src/rt/shell/fs/library.ts index bcee1c3..4e69ea1 100644 --- a/src/rt/shell/fs/fn.ts +++ b/src/rt/shell/fs/library.ts @@ -1,4 +1,4 @@ -import { EntryType, fs, type FsDirectory, type FsEntry } from "./fs" +import { EntryType, fs, type FsDirectory, type FsEntry } from "./core" let working_dir = ["/", "home", "user"]