mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
Run SwiftFormat.
This commit is contained in:
@@ -4,29 +4,29 @@ import Foundation
|
||||
|
||||
struct SetupProject: ParsableCommand {
|
||||
static let configuration = CommandConfiguration(abstract: "A tool to setup the required components to efficiently run and contribute to Element X iOS")
|
||||
|
||||
|
||||
func run() throws {
|
||||
try setupGitHooks()
|
||||
try brewInstall()
|
||||
try mintPackagesInstall()
|
||||
try xcodegen()
|
||||
}
|
||||
|
||||
|
||||
func setupGitHooks() throws {
|
||||
try Zsh.run(command: "git config core.hooksPath .githooks")
|
||||
}
|
||||
|
||||
|
||||
func brewInstall() throws {
|
||||
try Zsh.run(command: "brew install xcodegen swiftgen git-lfs sourcery mint pkl kiliankoe/formulae/swift-outdated localazy/tools/localazy peripheryapp/periphery/periphery")
|
||||
|
||||
// Install swiftformat from develop (for now), making sure to avoid conflicts with an existing versioned installation.
|
||||
// Install swiftformat from develop (for now), making sure to avoid conflicts with an existing versioned installation.
|
||||
try Zsh.run(command: "source ci_scripts/ci_common.sh && install_swiftformat_head")
|
||||
}
|
||||
|
||||
|
||||
func mintPackagesInstall() throws {
|
||||
try Zsh.run(command: "mint install Asana/locheck")
|
||||
}
|
||||
|
||||
|
||||
func xcodegen() throws {
|
||||
try Zsh.run(command: "xcodegen")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user