MCPcopy Index your code
hub / github.com/coder/coder / passwordHelper

Function passwordHelper

cli/cliui/prompt_test.go:286–300  ·  view source on GitHub ↗

nolint:unused

()

Source from the content-addressed store, hash-verified

284
285// nolint:unused
286func passwordHelper() {
287 cmd := &serpent.Command{
288 Handler: func(inv *serpent.Invocation) error {
289 cliui.Prompt(inv, cliui.PromptOptions{
290 Text: "Password:",
291 Secret: true,
292 })
293 return nil
294 },
295 }
296 err := cmd.Invoke().WithOS().Run()
297 if err != nil {
298 panic(err)
299 }
300}

Callers 1

Calls 3

PromptFunction · 0.92
RunMethod · 0.65
InvokeMethod · 0.45

Tested by

no test coverage detected