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;)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; printAdditionalHelp %(Lcom/groupbyinc/flux/cli/Terminal;)V isEmpty ()Z 4 5 6 java/lang/IllegalStateException 8 No subcommands configured :
9 Commands = com/groupbyinc/flux/cli/Terminal ? println A
@ B -------- D entrySet ()Ljava/util/Set; F G H
java/util/Set J iterator ()Ljava/util/Iterator; L M K N java/util/Iterator P hasNext R 5 Q S next ()Ljava/lang/Object; U V Q W java/lang/StringBuilder Y
Z getKey \ V ] java/lang/String _ append -(Ljava/lang/String;)Ljava/lang/StringBuilder; a b
Z c - e getValue g V h 0 1 j toString ()Ljava/lang/String; l m
Z n p
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 y 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; Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
Exceptions
SourceFile InnerClasses ! ?
? ? j &*+? *? Y? ? **? !? '? )*? ? -? ? &