summaryrefslogtreecommitdiff
path: root/internal/fsm
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-14 13:56:49 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-14 13:56:49 +0200
commitda83f54606c9c1d2786d87074ee17ed972d2e1b2 (patch)
tree0be57934f9f467c87576abb0b457fb54b2d25d52 /internal/fsm
parentfd34e72da8c604517050ada7e883ba982829d985 (diff)
Refactor: Return without json
Diffstat (limited to 'internal/fsm')
-rw-r--r--internal/fsm/fsm.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/internal/fsm/fsm.go b/internal/fsm/fsm.go
index 63c9ac2..292e09e 100644
--- a/internal/fsm/fsm.go
+++ b/internal/fsm/fsm.go
@@ -1,9 +1,9 @@
package fsm
import (
+ "fmt"
"os"
"os/exec"
- "fmt"
"path"
"sort"
)
@@ -149,7 +149,13 @@ func (fsm *FSM) generateMermaidGraph() string {
} else {
graph += "\nstyle " + fsm.GetName(state) + " fill:white\n"
}
- graph += fsm.GetName(state) + "(" + fsm.GetName(state) + ") " + "-->|" + transition.Description + "| " + fsm.GetName(transition.To) + "\n"
+ graph += fsm.GetName(
+ state,
+ ) + "(" + fsm.GetName(
+ state,
+ ) + ") " + "-->|" + transition.Description + "| " + fsm.GetName(
+ transition.To,
+ ) + "\n"
}
}
return graph
@@ -162,4 +168,3 @@ func (fsm *FSM) GenerateGraph() string {
return ""
}
-