Operators for command.
- Progress
import { Progress } from 'cmd-ops'
const progress = new Progress({
title: 'Task...',
total: 100,
})
progress.update(10);
progress.end()
- Reporter
import { Reporter } from 'cmd-ops'
const reporter = new Reporter();
reporter.write('Hello World!')
- getStyleText
import { getStyleText, Style } from 'cmd-ops'
console.log(getStyleText(`Hello {${Style.red}|World}!`))
import { print } from 'cmd-ops'
print('Hello {red|World}!')