import ora from 'ora' ; class SpinnerHelper { private spinner : any ; start ( message ) { this . spinner = ora ( message ) . start ( ) ; } setColor ( color ) { this . spinner . color = color ; } stop ( ) { this . spinner . stop ( ) ; } succeed ( ) { this . spinner . succeed ( ) ; } fail ( ) { this . spinner . fail ( ) ; } } export default new SpinnerHelper ( ) ;