MCPcopy Index your code
hub / github.com/devspace-sh/devspace / commandHash

Function commandHash

pkg/devspace/hook/remote_command.go:92–94  ·  view source on GitHub ↗
(command string, args []string)

Source from the content-addressed store, hash-verified

90}
91
92func commandHash(command string, args []string) string {
93 return hash.String(fmt.Sprintf("%s %s", command, strings.Join(args, " ")))
94}
95
96func hasHookExecuted(ctx context.Context, command string, args []string, podContainer *selector.SelectedPodContainer, client kubectl.Client) (bool, error) {
97 cmdHash := commandHash(command, args)

Callers 2

hasHookExecutedFunction · 0.85
recordHookExecutedFunction · 0.85

Calls 1

StringFunction · 0.92

Tested by

no test coverage detected