Skip to main content
Glama
Spinner.kt630 B
package maestro.cli.driver class Spinner(private val message: String = "Processing") { private val frames = listOf("⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "⠇", "⠏") private var active = true private lateinit var thread: Thread fun start() { thread = Thread { var i = 0 while (active) { print("\r${frames[i % frames.size]} $message") Thread.sleep(100) i++ } } thread.start() } fun stop() { active = false thread.join() print("\r✅ $message\n") } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mobile-dev-inc/Maestro'

If you have feedback or need assistance with the MCP directory API, please join our Discord server