MCPcopy Index your code
hub / github.com/dagger/dagger / FindStateKeys

Function FindStateKeys

cmd/dagger/shell_state.go:42–50  ·  view source on GitHub ↗

FindStateKeys returns an iterator over all state keys in the input string.

(s string)

Source from the content-addressed store, hash-verified

40
41// FindStateKeys returns an iterator over all state keys in the input string.
42func FindStateKeys(s string) iter.Seq[string] {
43 return func(yield func(string) bool) {
44 for _, m := range shellStatePattern.FindAllStringSubmatch(s, -1) {
45 if !yield(m[1]) {
46 return
47 }
48 }
49 }
50}
51
52// GetStateKey returns the state key from a token.
53//

Callers 1

PruneMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected