Skip to main content
Glama
WindowCommand+CommanderMetadata.swift3.01 kB
import Commander private enum WindowCommandSignatures { static let windowOptions = WindowIdentificationOptions.commanderSignature() static let focusOptions = FocusCommandOptions.commanderSignature() } extension WindowCommand.CloseSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature(optionGroups: [WindowCommandSignatures.windowOptions]) } } extension WindowCommand.MinimizeSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature(optionGroups: [WindowCommandSignatures.windowOptions]) } } extension WindowCommand.MaximizeSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature(optionGroups: [WindowCommandSignatures.windowOptions]) } } extension WindowCommand.MoveSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption("x", help: "New X coordinate", long: "x", short: "x"), .commandOption("y", help: "New Y coordinate", long: "y", short: "y"), ], optionGroups: [WindowCommandSignatures.windowOptions] ) } } extension WindowCommand.ResizeSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption("width", help: "New width", long: "width"), .commandOption("height", help: "New height", long: "height"), ], optionGroups: [WindowCommandSignatures.windowOptions] ) } } extension WindowCommand.SetBoundsSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption("x", help: "New X coordinate", long: "x", short: "x"), .commandOption("y", help: "New Y coordinate", long: "y", short: "y"), .commandOption("width", help: "New width", long: "width"), .commandOption("height", help: "New height", long: "height"), ], optionGroups: [WindowCommandSignatures.windowOptions] ) } } extension WindowCommand.FocusSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature(optionGroups: [WindowCommandSignatures.windowOptions, WindowCommandSignatures.focusOptions]) } } extension WindowCommand.WindowListSubcommand: CommanderSignatureProviding { static func commanderSignature() -> CommandSignature { CommandSignature( options: [ .commandOption("app", help: "Target application", long: "app"), .commandOption("pid", help: "Target application by process ID", long: "pid"), ] ) } }

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/steipete/Peekaboo'

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