Console 3.1.0
New:
- Created
CustomActivityactivity indicator type. this lets you easily create custom activity indicators with a series of characters that are looped over for the animation. - Added a
customActivitymethod to theConsoleprotocol, which initializes a newCustomActivityinstance.
let indicator = context.console.customActivity(frames: ["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"])
_ = try indicator.start(on: context.container)
// Do something that takes a long time.
indicator.succeed()