com.groupbyinc.flux.cli.Command.class Maven / Gradle / Ivy
???? 4M com/groupbyinc/flux/cli/Command java/lang/Object java/io/Closeable Command.java 4com/groupbyinc/flux/common/settings/Settings$Builder ,com/groupbyinc/flux/common/settings/Settings
Builder *com/groupbyinc/flux/cli/Terminal$Verbosity
com/groupbyinc/flux/cli/Terminal Verbosity %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup description Ljava/lang/String; parser Ljoptsimple/OptionParser;
helpOption Ljoptsimple/OptionSpec; )Ljoptsimple/OptionSpec; silentOption
verboseOption shutdownHookThread 7Lcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; KLcom/groupbyinc/flux/common/apache/lucene/util/SetOnce; (Ljava/lang/String;)V ()V # %
& joptsimple/OptionParser (
) & + java/lang/String - h / help 1 java/util/Arrays 3 asList %([Ljava/lang/Object;)Ljava/util/List; 5 6
4 7 show help 9
acceptsAll B(Ljava/util/List;Ljava/lang/String;)Ljoptsimple/OptionSpecBuilder; ; <
) = joptsimple/OptionSpecBuilder ? forHelp !()Ljoptsimple/AbstractOptionSpec; A B
@ C E s G silent I show minimal output K M v O verbose Q show verbose output S joptsimple/OptionSpec U availableUnless O(Ljoptsimple/OptionSpec;[Ljoptsimple/OptionSpec;)Ljoptsimple/OptionSpecBuilder; W X
@ Y [ 5com/groupbyinc/flux/common/apache/lucene/util/SetOnce ]
^ & ! ` b this !Lcom/groupbyinc/flux/cli/Command; main 8([Ljava/lang/String;Lcom/groupbyinc/flux/cli/Terminal;)I java/lang/Exception h joptsimple/OptionException j %com/groupbyinc/flux/cli/UserException l addShutdownHook ()Z n o
p java/lang/Thread r "java/lang/invoke/LambdaMetafactory t metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; v w
u x y %
lambda$main$0 %(Lcom/groupbyinc/flux/cli/Terminal;)V | }
~ run Y(Lcom/groupbyinc/flux/cli/Command;Lcom/groupbyinc/flux/cli/Terminal;)Ljava/lang/Runnable; ? ? ? (Ljava/lang/Runnable;)V # ?
s ? set (Ljava/lang/Object;)V ? ?
^ ? java/lang/Runtime ?
getRuntime ()Ljava/lang/Runtime; ? ?
? ? get ()Ljava/lang/Object; ? ?
^ ? (Ljava/lang/Thread;)V n ?
? ? #shouldConfigureLoggingWithoutConfig ? o
? es.logger.level ? org/apache/logging/log4j/Level ? INFO Lorg/apache/logging/log4j/Level; ? ? ? ? name ()Ljava/lang/String; ? ?
? ? java/lang/System ? getProperty 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ?
? ? builder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? logger.level ? put \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder; ? ?
? build 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? 2com/groupbyinc/flux/common/logging/LogConfigurator ? configureWithoutConfig 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
? ? mainWithoutErrorHandling 8([Ljava/lang/String;Lcom/groupbyinc/flux/cli/Terminal;)V ? ?
? printHelp ? }
? SILENT ,Lcom/groupbyinc/flux/cli/Terminal$Verbosity; ? ? ? java/lang/StringBuilder ?
? & ERROR: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
getMessage ? ?
k ? toString ? ?
? ? println A(Lcom/groupbyinc/flux/cli/Terminal$Verbosity;Ljava/lang/String;)V ? ?
? exitCode I ? ? m ?
m ? loggerLevel settings .Lcom/groupbyinc/flux/common/settings/Settings; e Ljoptsimple/OptionException; 'Lcom/groupbyinc/flux/cli/UserException; args [Ljava/lang/String; terminal "Lcom/groupbyinc/flux/cli/Terminal; parse +([Ljava/lang/String;)Ljoptsimple/OptionSet; ? ?
) ? joptsimple/OptionSet ? has (Ljoptsimple/OptionSpec;)Z ? ?
? ? setVerbosity /(Lcom/groupbyinc/flux/cli/Terminal$Verbosity;)V ? ?
? VERBOSE ? ? ? NORMAL ? execute ;(Lcom/groupbyinc/flux/cli/Terminal;Ljoptsimple/OptionSet;)V
options Ljoptsimple/OptionSet; java/io/IOException ? $
printAdditionalHelp }
getWriter ()Ljava/io/PrintWriter;
printHelpOn (Ljava/io/Writer;)V
) exit (I)V .Lcom/groupbyinc/flux/common/SuppressForbidden; reason 'Allowed to exit explicitly from #main()
? status close java/lang/Throwable#" %
% java/io/StringWriter'
( & java/io/PrintWriter* #
+, printStackTrace (Ljava/io/PrintWriter;)V./
0
( ?
+%
addSuppressed (Ljava/lang/Throwable;)V45
$6
(% java/lang/AssertionError9 # ?
:; pw Ljava/io/PrintWriter; sw Ljava/io/StringWriter;
impossible Ljava/io/IOException; Signature Code LocalVariableTable LineNumberTable
StackMapTable
Exceptions RuntimeInvisibleAnnotations BootstrapMethods
SourceFile InnerClasses! C C C ! C " # $ D ? ?*? '*? )Y? *? ,**? ,? .Y0SY2S? 8:? >? D? F**? ,? .YHSYJS? 8L? >? N**? ,? .YPSYRS? 8T? >*? N? V? Z? \*? ^Y? _? a*+? c? E ? d e ? F &