-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Structural output list ios versions (#1924)
Fixes #1862 ## Test Plan > How do we know the code works? 1. Run flank ```flank ios versions list``` 2. See output ``` ┌───────────────┬───────────────┬───────────────┬─────────┬──────────────────────────────┐ │ OS_VERSION_ID │ MAJOR_VERSION │ MINOR_VERSION │ TAGS │ SUPPORTED_XCODE_VERSION_IDS │ ├───────────────┼───────────────┼───────────────┼─────────┼──────────────────────────────┤ │ 10.3 │ 10 │ 3 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 11.2 │ 11 │ 2 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 11.4 │ 11 │ 4 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 12.0 │ 12 │ UNKNOWN │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 12.1 │ 12 │ 1 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 12.2 │ 12 │ 2 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 12.3 │ 12 │ 3 │ │ 10.3, 11.6, 11.7, 12.1, 12.3 │ │ 12.4 │ 12 │ 4 │ │ 11.6, 11.7, 12.1, 12.3 │ │ 13.2 │ 13 │ 2 │ │ 11.6, 11.7, 12.1, 12.3 │ │ 13.3 │ 13 │ 3 │ │ 11.6, 11.7, 12.1, 12.3 │ │ 13.6 │ 13 │ 6 │ │ 11.6, 11.7, 12.1, 12.3 │ │ 14.1 │ 14 │ 1 │ default │ 12.1, 12.3 │ └───────────────┴───────────────┴───────────────┴─────────┴──────────────────────────────┘ Total run duration: 0m 4s ``` ## Checklist - [X] Refactored
- Loading branch information
1 parent
8f745b7
commit cfb302e
Showing
7 changed files
with
28 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
package ftl.domain | ||
|
||
import flank.common.logLn | ||
import ftl.api.fetchIosOsVersion | ||
import ftl.args.IosArgs | ||
import ftl.client.google.IosCatalog | ||
import ftl.presentation.Output | ||
import java.nio.file.Paths | ||
|
||
interface ListIosVersions { | ||
interface ListIosVersions : Output { | ||
var configPath: String | ||
} | ||
|
||
operator fun ListIosVersions.invoke() { | ||
logLn(IosCatalog.softwareVersionsAsTable(IosArgs.loadOrDefault(Paths.get(configPath)).project)) | ||
fetchIosOsVersion(IosArgs.loadOrDefault(Paths.get(configPath)).project).out() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters