BREAKING(cli/unstable): move spinner module to unstable-spinner (#5946)

This commit is contained in:
Asher Gomez 2024-09-12 13:52:06 +10:00 committed by GitHub
parent c594a0ce49
commit 10aa1e739c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
22 changed files with 26 additions and 26 deletions

View File

@ -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",

View File

@ -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"
}
}

View File

@ -17,5 +17,4 @@
export * from "./parse_args.ts";
export * from "./prompt_secret.ts";
export * from "./spinner.ts";
export * from "./unicode_width.ts";

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner();

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "black" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "blue" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "cyan" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "gray" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "green" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "magenta" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "red" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "white" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ color: "yellow" });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ interval: 10 });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ interval: 750 });

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner({ message: "Spinning with Deno 🦕" });

View File

@ -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"],

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner();

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner();

View File

@ -1,4 +1,4 @@
import { Spinner } from "../../spinner.ts";
import { Spinner } from "../../unstable_spinner.ts";
const spinner = new Spinner();

View File

@ -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();

View File

@ -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(), {