Method: Yast::CommandLineClass#PasswordInput

Defined in:
library/commandline/src/modules/CommandLine.rb

#PasswordInput(prompt) ⇒ String

Read input from command line

Read input from command line, input is not displayed and not stored in the command line history. This function should be used for reading a password.

Parameters:

  • prompt (String)

    Set prompt to this value

Returns:



1308
1309
1310
# File 'library/commandline/src/modules/CommandLine.rb', line 1308

def PasswordInput(prompt)
  GetInput(prompt, :noecho)
end