Skip to content

Commit

Permalink
fix: updated naming convention to make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathancyu committed Dec 30, 2024
1 parent 486ce62 commit e52765c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/AppBundle/command/format.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ enum FormatVar: Equatable {
case monitor(MonitorFormatVar)

enum WindowFormatVar: String, Equatable, CaseIterable {
case isFullscreen = "is-fullscreen"
case windowId = "window-id"
case windowIsFullscreen = "window-is-fullscreen"
case windowTitle = "window-title"
}

Expand Down Expand Up @@ -175,8 +175,8 @@ extension String {
switch (obj, formatVar) {
case (.window(let w), .window(let f)):
return switch f {
case .isFullscreen: .success(.bool(w.isFullscreen))
case .windowId: .success(.uint32(w.windowId))
case .windowIsFullscreen: .success(.bool(w.isFullscreen))
case .windowTitle: .success(.string(w.title))
}
case (.workspace(let w), .workspace(let f)):
Expand Down

0 comments on commit e52765c

Please sign in to comment.