forked from nikitabobko/AeroSpace
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListModesCmdArgs.swift
More file actions
25 lines (23 loc) · 819 Bytes
/
ListModesCmdArgs.swift
File metadata and controls
25 lines (23 loc) · 819 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
public struct ListModesCmdArgs: CmdArgs {
public let rawArgs: EquatableNoop<[String]>
public init(rawArgs: [String]) {
self.rawArgs = .init(rawArgs)
}
public static let parser: CmdParser<Self> = cmdParser(
kind: .listModes,
allowInConfig: false,
help: list_modes_help_generated,
options: [
"--current": trueBoolFlag(\.current),
"--json": trueBoolFlag(\.json),
],
arguments: []
)
public var windowId: UInt32? // unused
public var workspaceName: WorkspaceName? // unused
public var current: Bool = false
public var json: Bool = false
}
public func parseListModesCmdArgs(_ args: [String]) -> ParsedCmd<ListModesCmdArgs> {
parseSpecificCmdArgs(ListModesCmdArgs(rawArgs: args), args)
}