MCPcopy Index your code
hub / github.com/cortexlabs/cortex / Int64FromPrompt

Function Int64FromPrompt

pkg/lib/configreader/int64.go:153–160  ·  view source on GitHub ↗
(promptOpts *prompt.Options, v *Int64Validation)

Source from the content-addressed store, hash-verified

151}
152
153func Int64FromPrompt(promptOpts *prompt.Options, v *Int64Validation) (int64, error) {
154 promptOpts.DefaultStr = s.Int64(v.Default)
155 valStr := prompt.Prompt(promptOpts)
156 if valStr == "" {
157 return ValidateInt64Missing(v)
158 }
159 return Int64FromStr(valStr, v)
160}
161
162func ValidateInt64Missing(v *Int64Validation) (int64, error) {
163 if v.Required {

Callers 1

ReadPromptFunction · 0.85

Calls 3

PromptFunction · 0.92
ValidateInt64MissingFunction · 0.85
Int64FromStrFunction · 0.85

Tested by

no test coverage detected