diff --git a/_tools/check_docs.ts b/_tools/check_docs.ts index 840132e06b04..88b3d60ab1bc 100644 --- a/_tools/check_docs.ts +++ b/_tools/check_docs.ts @@ -35,6 +35,7 @@ const ENTRY_POINTS = [ "../bytes/mod.ts", "../cache/mod.ts", "../cli/mod.ts", + "../cli/unstable_spinner.ts", "../crypto/mod.ts", "../collections/mod.ts", "../csv/mod.ts", diff --git a/cli/deno.json b/cli/deno.json index 9abe9e8f17e4..50ba35d90680 100644 --- a/cli/deno.json +++ b/cli/deno.json @@ -5,7 +5,7 @@ ".": "./mod.ts", "./parse-args": "./parse_args.ts", "./prompt-secret": "./prompt_secret.ts", - "./spinner": "./spinner.ts", + "./unstable-spinner": "./unstable_spinner.ts", "./unicode-width": "./unicode_width.ts" } } diff --git a/cli/mod.ts b/cli/mod.ts index 6530e9113794..ac169a5415c9 100644 --- a/cli/mod.ts +++ b/cli/mod.ts @@ -17,5 +17,4 @@ export * from "./parse_args.ts"; export * from "./prompt_secret.ts"; -export * from "./spinner.ts"; export * from "./unicode_width.ts"; diff --git a/cli/testdata/spinner_cases/change_message.ts b/cli/testdata/spinner_cases/change_message.ts index 49f971855691..854439cb0fd8 100644 --- a/cli/testdata/spinner_cases/change_message.ts +++ b/cli/testdata/spinner_cases/change_message.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner(); diff --git a/cli/testdata/spinner_cases/custom_color_black.ts b/cli/testdata/spinner_cases/custom_color_black.ts index 0566c71b5311..d9c540091f24 100644 --- a/cli/testdata/spinner_cases/custom_color_black.ts +++ b/cli/testdata/spinner_cases/custom_color_black.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "black" }); diff --git a/cli/testdata/spinner_cases/custom_color_blue.ts b/cli/testdata/spinner_cases/custom_color_blue.ts index 2b68b501af0c..4451762e60a2 100644 --- a/cli/testdata/spinner_cases/custom_color_blue.ts +++ b/cli/testdata/spinner_cases/custom_color_blue.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "blue" }); diff --git a/cli/testdata/spinner_cases/custom_color_cyan.ts b/cli/testdata/spinner_cases/custom_color_cyan.ts index 4c9f882d8655..12d17cd292f3 100644 --- a/cli/testdata/spinner_cases/custom_color_cyan.ts +++ b/cli/testdata/spinner_cases/custom_color_cyan.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "cyan" }); diff --git a/cli/testdata/spinner_cases/custom_color_gray.ts b/cli/testdata/spinner_cases/custom_color_gray.ts index 9b3a4e4d5e78..dbc9cbcce3f8 100644 --- a/cli/testdata/spinner_cases/custom_color_gray.ts +++ b/cli/testdata/spinner_cases/custom_color_gray.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "gray" }); diff --git a/cli/testdata/spinner_cases/custom_color_green.ts b/cli/testdata/spinner_cases/custom_color_green.ts index 0b6d84c6b269..b60f802780e0 100644 --- a/cli/testdata/spinner_cases/custom_color_green.ts +++ b/cli/testdata/spinner_cases/custom_color_green.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "green" }); diff --git a/cli/testdata/spinner_cases/custom_color_magenta.ts b/cli/testdata/spinner_cases/custom_color_magenta.ts index 8d828a22204f..9ae05d4be618 100644 --- a/cli/testdata/spinner_cases/custom_color_magenta.ts +++ b/cli/testdata/spinner_cases/custom_color_magenta.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "magenta" }); diff --git a/cli/testdata/spinner_cases/custom_color_red.ts b/cli/testdata/spinner_cases/custom_color_red.ts index 1fbcecb6bc28..d246b031ba9a 100644 --- a/cli/testdata/spinner_cases/custom_color_red.ts +++ b/cli/testdata/spinner_cases/custom_color_red.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "red" }); diff --git a/cli/testdata/spinner_cases/custom_color_white.ts b/cli/testdata/spinner_cases/custom_color_white.ts index ae07bf91bfc1..34f169334e62 100644 --- a/cli/testdata/spinner_cases/custom_color_white.ts +++ b/cli/testdata/spinner_cases/custom_color_white.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "white" }); diff --git a/cli/testdata/spinner_cases/custom_color_yellow.ts b/cli/testdata/spinner_cases/custom_color_yellow.ts index eae20d583a28..140081fc1cae 100644 --- a/cli/testdata/spinner_cases/custom_color_yellow.ts +++ b/cli/testdata/spinner_cases/custom_color_yellow.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ color: "yellow" }); diff --git a/cli/testdata/spinner_cases/custom_interval_10.ts b/cli/testdata/spinner_cases/custom_interval_10.ts index f44948613f15..992efe3808c5 100644 --- a/cli/testdata/spinner_cases/custom_interval_10.ts +++ b/cli/testdata/spinner_cases/custom_interval_10.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ interval: 10 }); diff --git a/cli/testdata/spinner_cases/custom_interval_750.ts b/cli/testdata/spinner_cases/custom_interval_750.ts index 5e4b8d7b9a8f..e7d043d3084b 100644 --- a/cli/testdata/spinner_cases/custom_interval_750.ts +++ b/cli/testdata/spinner_cases/custom_interval_750.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ interval: 750 }); diff --git a/cli/testdata/spinner_cases/custom_message.ts b/cli/testdata/spinner_cases/custom_message.ts index 62943b38be3a..4925f4dd82dc 100644 --- a/cli/testdata/spinner_cases/custom_message.ts +++ b/cli/testdata/spinner_cases/custom_message.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ message: "Spinning with Deno 🦕" }); diff --git a/cli/testdata/spinner_cases/custom_spinner.ts b/cli/testdata/spinner_cases/custom_spinner.ts index b316abcb098e..bea6473ab89a 100644 --- a/cli/testdata/spinner_cases/custom_spinner.ts +++ b/cli/testdata/spinner_cases/custom_spinner.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner({ spinner: ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"], diff --git a/cli/testdata/spinner_cases/set_color.ts b/cli/testdata/spinner_cases/set_color.ts index 864f9110138e..36d873b339c1 100644 --- a/cli/testdata/spinner_cases/set_color.ts +++ b/cli/testdata/spinner_cases/set_color.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner(); diff --git a/cli/testdata/spinner_cases/start.ts b/cli/testdata/spinner_cases/start.ts index 2e538b40cae0..f6ad29d2feb3 100644 --- a/cli/testdata/spinner_cases/start.ts +++ b/cli/testdata/spinner_cases/start.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner(); diff --git a/cli/testdata/spinner_cases/stop.ts b/cli/testdata/spinner_cases/stop.ts index e0bc8ea4ab5e..24e1542291c2 100644 --- a/cli/testdata/spinner_cases/stop.ts +++ b/cli/testdata/spinner_cases/stop.ts @@ -1,4 +1,4 @@ -import { Spinner } from "../../spinner.ts"; +import { Spinner } from "../../unstable_spinner.ts"; const spinner = new Spinner(); diff --git a/cli/spinner.ts b/cli/unstable_spinner.ts similarity index 94% rename from cli/spinner.ts rename to cli/unstable_spinner.ts index d674acd89973..f4768cb161a4 100644 --- a/cli/spinner.ts +++ b/cli/unstable_spinner.ts @@ -84,7 +84,7 @@ export interface SpinnerOptions { * * @example Usage * ```ts no-eval - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Loading...", color: "yellow" }); * spinner.start(); @@ -104,7 +104,7 @@ export class Spinner { * * @example Usage * ```ts no-eval - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Working..." }); * spinner.start(); @@ -155,7 +155,7 @@ export class Spinner { * * @example Usage * ```ts no-eval - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Loading...", color: "yellow" }); * spinner.start(); @@ -175,7 +175,7 @@ export class Spinner { * * @example Usage * ```ts no-assert - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Loading", color: "blue" }); * @@ -192,7 +192,7 @@ export class Spinner { * * @example Usage * ```ts no-eval - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Loading..." }); * spinner.start(); @@ -231,7 +231,7 @@ export class Spinner { * * @example Usage * ```ts no-eval - * import { Spinner } from "@std/cli/spinner"; + * import { Spinner } from "@std/cli/unstable-spinner"; * * const spinner = new Spinner({ message: "Loading..." }); * spinner.start(); diff --git a/cli/spinner_test.ts b/cli/unstable_spinner_test.ts similarity index 99% rename from cli/spinner_test.ts rename to cli/unstable_spinner_test.ts index 587a48dc814d..2b2709d56dd9 100644 --- a/cli/spinner_test.ts +++ b/cli/unstable_spinner_test.ts @@ -8,7 +8,7 @@ import { assertStringIncludes, } from "@std/assert"; import { delay } from "@std/async/delay"; -import { Spinner } from "./spinner.ts"; +import { Spinner } from "./unstable_spinner.ts"; async function spawnDeno(args: string[], opts?: Deno.CommandOptions) { const cmd = new Deno.Command(Deno.execPath(), {