MCPcopy Create free account
hub / github.com/remotemobprogramming/mob / status

Function status

status.go:8–19  ·  view source on GitHub ↗
(configuration config.Configuration)

Source from the content-addressed store, hash-verified

6)
7
8func 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
21func showActiveMobSessions(configuration config.Configuration, currentBaseBranch Branch) {
22 existingWipBranches := getWipBranchesForBaseBranch(currentBaseBranch, configuration)

Callers 4

TestStatusMobProgrammingFunction · 0.85
executeFunction · 0.85

Calls 8

InfoFunction · 0.92
isMobProgrammingFunction · 0.85
determineBranchesFunction · 0.85
gitCurrentBranchFunction · 0.85
gitBranchesFunction · 0.85
sayLastCommitsListFunction · 0.85
showActiveMobSessionsFunction · 0.85
StringMethod · 0.80

Tested by 3

TestStatusMobProgrammingFunction · 0.68