| 6 | ) |
| 7 | |
| 8 | func status(configuration config.Configuration) { |
| 9 | if isMobProgramming(configuration) { |
| 10 | currentBaseBranch, currentWipBranch := determineBranches(gitCurrentBranch(), gitBranches(), configuration) |
| 11 | say.Info("you are on wip branch " + currentWipBranch.String() + " (base branch " + currentBaseBranch.String() + ")") |
| 12 | |
| 13 | sayLastCommitsList(currentBaseBranch, currentWipBranch, configuration) |
| 14 | } else { |
| 15 | currentBaseBranch, _ := determineBranches(gitCurrentBranch(), gitBranches(), configuration) |
| 16 | say.Info("you are on base branch '" + currentBaseBranch.String() + "'") |
| 17 | showActiveMobSessions(configuration, currentBaseBranch) |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | func showActiveMobSessions(configuration config.Configuration, currentBaseBranch Branch) { |
| 22 | existingWipBranches := getWipBranchesForBaseBranch(currentBaseBranch, configuration) |