mirror of
https://github.com/denoland/std.git
synced 2024-11-21 20:50:22 +00:00
BREAKING(cli/unstable): move spinner
module to unstable-spinner
(#5946)
This commit is contained in:
parent
c594a0ce49
commit
10aa1e739c
@ -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",
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -17,5 +17,4 @@
|
||||
|
||||
export * from "./parse_args.ts";
|
||||
export * from "./prompt_secret.ts";
|
||||
export * from "./spinner.ts";
|
||||
export * from "./unicode_width.ts";
|
||||
|
2
cli/testdata/spinner_cases/change_message.ts
vendored
2
cli/testdata/spinner_cases/change_message.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner();
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "black" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "blue" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "cyan" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "gray" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "green" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "magenta" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "red" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "white" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ color: "yellow" });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ interval: 10 });
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ interval: 750 });
|
||||
|
||||
|
2
cli/testdata/spinner_cases/custom_message.ts
vendored
2
cli/testdata/spinner_cases/custom_message.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner({ message: "Spinning with Deno 🦕" });
|
||||
|
||||
|
2
cli/testdata/spinner_cases/custom_spinner.ts
vendored
2
cli/testdata/spinner_cases/custom_spinner.ts
vendored
@ -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"],
|
||||
|
2
cli/testdata/spinner_cases/set_color.ts
vendored
2
cli/testdata/spinner_cases/set_color.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner();
|
||||
|
||||
|
2
cli/testdata/spinner_cases/start.ts
vendored
2
cli/testdata/spinner_cases/start.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner();
|
||||
|
||||
|
2
cli/testdata/spinner_cases/stop.ts
vendored
2
cli/testdata/spinner_cases/stop.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { Spinner } from "../../spinner.ts";
|
||||
import { Spinner } from "../../unstable_spinner.ts";
|
||||
|
||||
const spinner = new Spinner();
|
||||
|
||||
|
@ -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();
|
@ -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(), {
|
Loading…
Reference in New Issue
Block a user