11/* eslint-disable @typescript-eslint/no-explicit-any */
22/* eslint-disable @typescript-eslint/no-empty-function */
33import { Provider } from "@stormstack/core-shared-injection/decorators" ;
4- import ora from "ora" ;
54import { formatLog } from "../format" ;
65import { Logger } from "../logger" ;
76import {
@@ -13,7 +12,6 @@ import {
1312 printWarning ,
1413 startGroup
1514} from "./print" ;
16- import { ConsoleSpinner } from "./types" ;
1715
1816@Provider ( Logger )
1917export class ConsoleLogger extends Logger {
@@ -109,39 +107,6 @@ export class ConsoleLogger extends Logger {
109107 endGroup ( ) ;
110108 }
111109
112- /**
113- * The function returns a ConsoleSpinner object, which is created using the ora library and takes an
114- * optional text parameter.
115- * @param {string } [text] - The `text` parameter is an optional string that represents the text to be
116- * displayed alongside the spinner.
117- * @returns an instance of the `ConsoleSpinner` class.
118- */
119- static spinner ( text ?: string ) : ConsoleSpinner {
120- return ora ( text ) ;
121- }
122-
123- /**
124- * The function `spinnerStart` returns a ConsoleSpinner object that starts a spinner animation with an
125- * optional text.
126- * @param {string } [text] - The `text` parameter is an optional string that represents the text to be
127- * displayed alongside the spinner. It is used to provide additional context or information to the user
128- * while the spinner is running. If no `text` is provided, the spinner will be displayed without any
129- * accompanying text.
130- * @returns a ConsoleSpinner object.
131- */
132- static spinnerStart ( text ?: string ) : ConsoleSpinner {
133- return ConsoleLogger . spinner ( text ) . start ( ) ;
134- }
135-
136- /**
137- * The function stops a console spinner and returns the stopped spinner.
138- * @param {ConsoleSpinner } spinner - The parameter "spinner" is of type "ConsoleSpinner".
139- * @returns the stopped spinner object.
140- */
141- static spinnerStop ( spinner : ConsoleSpinner ) : ConsoleSpinner {
142- return spinner . stop ( ) ;
143- }
144-
145110 public constructor ( _name = "root" ) {
146111 super ( _name ) ;
147112 }
0 commit comments