com.groupbyinc.flux.cli.MultiCommand.class Maven / Gradle / Ivy
???? 4 ? $com/groupbyinc/flux/cli/MultiCommand com/groupbyinc/flux/cli/Command MultiCommand.java java/util/Map$Entry
java/util/Map Entry subcommands Ljava/util/Map; DLjava/util/Map; arguments "Ljoptsimple/NonOptionArgumentSpec; 6Ljoptsimple/NonOptionArgumentSpec; )(Ljava/lang/String;Ljava/lang/Runnable;)V
java/util/LinkedHashMap ()V
parser Ljoptsimple/OptionParser; command joptsimple/OptionParser "
nonOptions 6(Ljava/lang/String;)Ljoptsimple/NonOptionArgumentSpec; $ %
# & ( posixlyCorrect (Z)V * +
# , this &Lcom/groupbyinc/flux/cli/MultiCommand; description Ljava/lang/String;
beforeMain Ljava/lang/Runnable; printAdditionalHelp %(Lcom/groupbyinc/flux/cli/Terminal;)V isEmpty ()Z 6 7 8 java/lang/IllegalStateException : No subcommands configured < (Ljava/lang/String;)V >
; ? Commands A com/groupbyinc/flux/cli/Terminal C println E >
D F -------- H entrySet ()Ljava/util/Set; J K L
java/util/Set N iterator ()Ljava/util/Iterator; P Q O R java/util/Iterator T hasNext V 7 U W next ()Ljava/lang/Object; Y Z U [ java/lang/StringBuilder ]
^ getKey ` Z a java/lang/String c append -(Ljava/lang/String;)Ljava/lang/StringBuilder; e f
^ g - i getValue k Z l 0 1 n toString ()Ljava/lang/String; p q
^ r t
subcommand JLjava/util/Map$Entry; Ljava/util/Map$Entry; terminal "Lcom/groupbyinc/flux/cli/Terminal; execute ;(Lcom/groupbyinc/flux/cli/Terminal;Ljoptsimple/OptionSet;)V java/lang/Exception } joptsimple/NonOptionArgumentSpec values ((Ljoptsimple/OptionSet;)Ljava/util/List; ? ?
? ? java/util/List ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; ? ? ? ? [Ljava/lang/String; ? %com/groupbyinc/flux/cli/UserException ? Missing command ? (ILjava/lang/String;)V ?
? ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? Unknown command [ ? ] ? java/util/Arrays ? copyOfRange *([Ljava/lang/Object;II)[Ljava/lang/Object; ? ?
? ? mainWithoutErrorHandling 8([Ljava/lang/String;Lcom/groupbyinc/flux/cli/Terminal;)V ? ?
? options Ljoptsimple/OptionSet; args !Lcom/groupbyinc/flux/cli/Command; close java/io/IOException ? ()Ljava/util/Collection; ? ? ? ,com/groupbyinc/flux/core/internal/io/IOUtils ? (Ljava/lang/Iterable;)V ? ?
? ? Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ?
? ? u '*+,? *? Y? ? **? !? '? )*? ? -? ? ' . / ' 0 1 ' 2 3 ? / $ &