* Translations workflow and tools * improved the name of the workflow * need this commit to trigger the workflow for the first time * swift tools can now run on CI * only strings and stringsdict will be committed * fixed a workflow issue * starting the workflow to save it * fixing downgrade issues * fixing URL usage * install localazy * fixing add-paths typo * downloaded strings * removing on push trigger * Update Tools/Sources/DownloadTranslations.swift Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com> * Added locheck for string verification * code formatting improvement * Update Tools/Sources/Locheck.swift Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com> * pr suggestion --------- Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
25 lines
739 B
Swift
25 lines
739 B
Swift
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 install xcodegen swiftgen swiftlint swiftformat git-lfs sourcery mint kiliankoe/formulae/swift-outdated localazy/tools/localazy")
|
|
}
|
|
|
|
func xcodegen() throws {
|
|
try Utilities.zsh("xcodegen")
|
|
}
|
|
}
|