Commit 304912f9 by Dominik Prokop Committed by GitHub

Merge pull request #15923 from grafana/fix/cli-spinner

Call ora instead of instantiating it
parents 6a34eb2d 40916a55
......@@ -4,7 +4,7 @@ type FnToSpin<T> = (options: T) => Promise<void>;
export const useSpinner = <T>(spinnerLabel: string, fn: FnToSpin<T>, killProcess = true) => {
return async (options: T) => {
const spinner = new ora(spinnerLabel);
const spinner = ora(spinnerLabel);
spinner.start();
try {
await fn(options);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment