mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Swiftformat on githooks + New swift run tools setup command (#563)
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user