()
| 175 | } |
| 176 | |
| 177 | func GetDefaultConfiguration() Configuration { |
| 178 | voiceCommand := "" |
| 179 | notifyCommand := "" |
| 180 | switch runtime.GOOS { |
| 181 | case "darwin": |
| 182 | voiceCommand = "say \"%s\"" |
| 183 | notifyCommand = "/usr/bin/osascript -e 'display notification \"%s\"'" |
| 184 | case "linux": |
| 185 | voiceCommand = "say \"%s\"" |
| 186 | notifyCommand = "notify-send \"%s\"" |
| 187 | case "windows": |
| 188 | voiceCommand = "(New-Object -ComObject SAPI.SPVoice).Speak(\\\"%s\\\")" |
| 189 | |
| 190 | } |
| 191 | return Configuration{ |
| 192 | CliName: "mob", |
| 193 | RemoteName: "origin", |
| 194 | WipCommitMessage: "mob next [ci-skip] [ci skip] [skip ci]", |
| 195 | StartCommitMessage: "mob start [ci-skip] [ci skip] [skip ci]", |
| 196 | SkipCiPushOptionEnabled: true, |
| 197 | GitHooksEnabled: false, |
| 198 | VoiceCommand: voiceCommand, |
| 199 | VoiceMessage: "mob next", |
| 200 | NotifyCommand: notifyCommand, |
| 201 | NotifyMessage: "mob next", |
| 202 | NextStay: true, |
| 203 | RequireCommitMessage: false, |
| 204 | HandleUncommittedChanges: FailWithError, |
| 205 | StartCreate: false, |
| 206 | WipBranchQualifier: "", |
| 207 | WipBranchQualifierSeparator: "-", |
| 208 | DoneSquash: Squash, |
| 209 | OpenCommand: "", |
| 210 | Timer: "", |
| 211 | TimerLocal: true, |
| 212 | TimerRoom: "", |
| 213 | TimerUser: "", |
| 214 | TimerUrl: "https://timer.mob.sh/", |
| 215 | WipBranchPrefix: "mob/", |
| 216 | StashName: "mob-stash-name", |
| 217 | ResetDeleteRemoteWipBranch: false, |
| 218 | } |
| 219 | } |
| 220 | |
| 221 | func parseUserConfiguration(configuration Configuration, path string) Configuration { |
| 222 | file, err := os.Open(path) |
no outgoing calls