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

Function sayFixUncommittedChanges

mob.go:616–633  ·  view source on GitHub ↗
(configuration config.Configuration)

Source from the content-addressed store, hash-verified

614}
615
616func sayFixUncommittedChanges(configuration config.Configuration) {
617 var instructionInclude string
618 var instructionDiscard string
619 if configuration.StartCreate {
620 instructionInclude = "To start, including uncommitted changes and create the remote branch, use"
621 instructionDiscard = "To start, discarding uncommitted changes and create the remote branch, use"
622 } else {
623 instructionInclude = "To start, including uncommitted changes, use"
624 instructionDiscard = "To start, discarding uncommitted changes, use"
625 }
626
627 fixCommandStart := configuration.CliName + " start" + createFix(configuration) + branchFix(configuration)
628 fixCommandInclude := fixCommandStart + " --include-uncommitted-changes"
629 fixCommandDiscard := fixCommandStart + " --discard-uncommitted-changes"
630
631 say.Fix(instructionInclude, fixCommandInclude)
632 say.Fix(instructionDiscard, fixCommandDiscard)
633}
634
635func createFix(configuration config.Configuration) string {
636 if configuration.StartCreate {

Callers 1

startFunction · 0.85

Calls 3

FixFunction · 0.92
createFixFunction · 0.85
branchFixFunction · 0.85

Tested by

no test coverage detected