com.groupbyinc.flux.cli.Terminal.class Maven / Gradle / Ivy
???? 4 ? com/groupbyinc/flux/cli/Terminal java/lang/Object
Terminal.java /com/groupbyinc/flux/cli/Terminal$SystemTerminal SystemTerminal 0com/groupbyinc/flux/cli/Terminal$ConsoleTerminal ConsoleTerminal *com/groupbyinc/flux/cli/Terminal$Verbosity Verbosity DEFAULT "Lcom/groupbyinc/flux/cli/Terminal; verbosity ,Lcom/groupbyinc/flux/cli/Terminal$Verbosity;
lineSeparator Ljava/lang/String; (Ljava/lang/String;)V ()V
NORMAL
this setVerbosity /(Lcom/groupbyinc/flux/cli/Terminal$Verbosity;)V readText &(Ljava/lang/String;)Ljava/lang/String;
readSecret (Ljava/lang/String;)[C getWriter ()Ljava/io/PrintWriter; println A(Lcom/groupbyinc/flux/cli/Terminal$Verbosity;Ljava/lang/String;)V * +
, msg java/lang/StringBuilder /
0 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 2 3
0 4 toString ()Ljava/lang/String; 6 7
0 8 print : +
; ordinal ()I = >
? ( )
A java/io/PrintWriter C :
D E flush G
D H promptYesNo (Ljava/lang/String;Z)Z [Y/n] L [y/N] N java/lang/String P $ %
R isEmpty ()Z T U
Q V java/util/Locale X ROOT Ljava/util/Locale; Z [ Y \ toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; ^ _
Q ` y b equals (Ljava/lang/Object;)Z d e
Q f n h Did not understand answer ' j ' l *
n answer answerYes Z prompt
defaultYes answerPrompt isSupported w U
x
| Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses!
~ Q *? *? ? *+? ? ! ? <