Swiftformat on githooks + New swift run tools setup command (#563)

This commit is contained in:
Mauro
2023-02-10 14:04:00 +01:00
committed by GitHub
parent f0a4cfd946
commit c8fb93e00d
11 changed files with 123 additions and 32 deletions
+24
View File
@@ -0,0 +1,24 @@
import ArgumentParser
import Foundation
struct SetupProject: ParsableCommand {
static var 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 brewBundleInstall()
try xcodegen()
}
func setupGitHooks() throws {
try Utilities.zsh("git config core.hooksPath .githooks")
}
func brewBundleInstall() throws {
try Utilities.zsh("brew bundle install")
}
func xcodegen() throws {
try Utilities.zsh("xcodegen")
}
}