/
RepoItem.swift
28 lines (27 loc) · 1.26 KB
/
RepoItem.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import Foundation
/**
* Fixme: ⚠️️ rename to RepoData
* Fixme: ⚠️️ Needs a unique identifier value
*/
struct RepoItem {
var local: String/*Local path*/
var branch: String/*Repo branch, Master is default*/
var title: String/*The title displayed in the app*/
var active: Bool/*Active means that auto and pull will sync the repo*/
var remote: String/*Remote path to repository*/
var message: Bool/*Auto-created commit message*///TODO: ⚠️️ rename
var auto: Bool/*Automatically syncs on an interval*///TODO: ⚠️️ rename to interval?
var template: String/*template message for commitmessages*/
var notification: Bool/*toggle Notifications per repo*/
init(){/*Default RepoItem*/
self.local = ""/*Local path*/
self.branch = ""/*Repo branch, Master is default*/
self.title = ""/*The title displayed in the app*/
self.active = false/*Active means that auto and pull will sync the repo*/
self.remote = ""/*Remote path to repository*/
self.message = false/*Auto-created commit message*/ //TODO: ⚠️️ rename
self.auto = false/*Automatically syncs on an intervall*/ //TODO: ⚠️️ rename to interval?
self.template = ""
self.notification = false
}
}