From 477db9a7ff501cb5021f4a7911f2143029b1dad6 Mon Sep 17 00:00:00 2001 From: AJ Date: Sun, 14 Apr 2024 15:47:05 -0700 Subject: [PATCH] Remove Invocation -> OptionInvocation --- clikt/api/clikt.api | 16 ++++++++-------- .../github/ajalt/clikt/internal/Finalization.kt | 16 ++++++++-------- .../ajalt/clikt/parameters/groups/ChoiceGroup.kt | 4 ++-- .../parameters/groups/CoOccurringOptionGroup.kt | 4 ++-- .../parameters/groups/MutuallyExclusiveOption.kt | 4 ++-- .../clikt/parameters/groups/ParameterGroup.kt | 6 +++--- .../ajalt/clikt/parameters/options/Option.kt | 10 +++++----- .../clikt/parameters/options/OptionWithValues.kt | 10 +++++----- .../com/github/ajalt/clikt/parsers/Invocation.kt | 4 ++-- .../ajalt/clikt/parsers/ParserInternals.kt | 4 ++-- 10 files changed, 39 insertions(+), 39 deletions(-) diff --git a/clikt/api/clikt.api b/clikt/api/clikt.api index ed24bae0..8b51218c 100644 --- a/clikt/api/clikt.api +++ b/clikt/api/clikt.api @@ -1353,12 +1353,17 @@ public final class com/github/ajalt/clikt/parsers/FlatInvocations : kotlin/seque public fun iterator ()Ljava/util/Iterator; } -public final class com/github/ajalt/clikt/parsers/Invocation { +public final class com/github/ajalt/clikt/parsers/InvocationKt { + public static final fun flatten (Lcom/github/ajalt/clikt/parsers/CommandInvocation;Z)Lcom/github/ajalt/clikt/parsers/FlatInvocations; + public static synthetic fun flatten$default (Lcom/github/ajalt/clikt/parsers/CommandInvocation;ZILjava/lang/Object;)Lcom/github/ajalt/clikt/parsers/FlatInvocations; +} + +public final class com/github/ajalt/clikt/parsers/OptionInvocation { public fun (Ljava/lang/String;Ljava/util/List;)V public final fun component1 ()Ljava/lang/String; public final fun component2 ()Ljava/util/List; - public final fun copy (Ljava/lang/String;Ljava/util/List;)Lcom/github/ajalt/clikt/parsers/Invocation; - public static synthetic fun copy$default (Lcom/github/ajalt/clikt/parsers/Invocation;Ljava/lang/String;Ljava/util/List;ILjava/lang/Object;)Lcom/github/ajalt/clikt/parsers/Invocation; + public final fun copy (Ljava/lang/String;Ljava/util/List;)Lcom/github/ajalt/clikt/parsers/OptionInvocation; + public static synthetic fun copy$default (Lcom/github/ajalt/clikt/parsers/OptionInvocation;Ljava/lang/String;Ljava/util/List;ILjava/lang/Object;)Lcom/github/ajalt/clikt/parsers/OptionInvocation; public fun equals (Ljava/lang/Object;)Z public final fun getName ()Ljava/lang/String; public final fun getValues ()Ljava/util/List; @@ -1366,11 +1371,6 @@ public final class com/github/ajalt/clikt/parsers/Invocation { public fun toString ()Ljava/lang/String; } -public final class com/github/ajalt/clikt/parsers/InvocationKt { - public static final fun flatten (Lcom/github/ajalt/clikt/parsers/CommandInvocation;Z)Lcom/github/ajalt/clikt/parsers/FlatInvocations; - public static synthetic fun flatten$default (Lcom/github/ajalt/clikt/parsers/CommandInvocation;ZILjava/lang/Object;)Lcom/github/ajalt/clikt/parsers/FlatInvocations; -} - public final class com/github/ajalt/clikt/sources/ChainedValueSource : com/github/ajalt/clikt/sources/ValueSource { public fun (Ljava/util/List;)V public final fun getSources ()Ljava/util/List; diff --git a/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/internal/Finalization.kt b/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/internal/Finalization.kt index 53f50da4..490f6d3c 100644 --- a/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/internal/Finalization.kt +++ b/clikt/src/commonMain/kotlin/com/github/ajalt/clikt/internal/Finalization.kt @@ -8,12 +8,12 @@ import com.github.ajalt.clikt.parameters.groups.ParameterGroup import com.github.ajalt.clikt.parameters.internal.LateinitException import com.github.ajalt.clikt.parameters.options.Option import com.github.ajalt.clikt.parsers.ArgumentInvocation -import com.github.ajalt.clikt.parsers.Invocation +import com.github.ajalt.clikt.parsers.OptionInvocation internal fun finalizeOptions( context: Context, options: List