MCPcopy
hub / github.com/mislav/hub / lastValue

Method lastValue

utils/args_parser.go:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17}
18
19func (f *argsFlag) lastValue() string {
20 l := len(f.values)
21 if l > 0 {
22 return f.values[l-1]
23 } else {
24 return ""
25 }
26}
27
28func (f *argsFlag) reset() {
29 if len(f.values) > 0 {

Callers 2

ValueMethod · 0.80
BoolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected