from_string


Description:

public static Mode from_string (string str)

Parses a mode identifier.

Accepted values are `initial-setup`, `installer`, and `existing-user`. Any other value causes a fatal error.

Parameters:

str

the mode identifier

Returns:

the parsed mode