You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 14, 2024. It is now read-only.
Introduce CommandFactory to aggregate commands (#75)
* Introduce CommandFactory to aggregate commands
This makes it easier to invoke any command by known key rather than just creating one-off kts scripts
* Remove internal name
* Print to err
* API dump
Copy file name to clipboardExpand all lines: api/kotlin-cli-util.api
+51Lines changed: 51 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,31 +32,74 @@ public final class slack/cli/CliktExtensionsKt {
32
32
public static synthetic fun projectDirOption$default (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/ajalt/clikt/parameters/options/OptionDelegate;
33
33
}
34
34
35
+
public abstract interface class slack/cli/CommandFactory {
36
+
public abstract fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
37
+
public abstract fun getDescription ()Ljava/lang/String;
38
+
public abstract fun getKey ()Ljava/lang/String;
39
+
}
40
+
41
+
public final class slack/cli/CommandFactoryKt {
42
+
public static final fun runCommand ([Ljava/lang/String;Z)V
43
+
public static synthetic fun runCommand$default ([Ljava/lang/String;ZILjava/lang/Object;)V
44
+
}
45
+
35
46
public final class slack/cli/Toml {
36
47
public static final field INSTANCE Lslack/cli/Toml;
37
48
public final fun parseVersion (Ljava/io/File;)Ljava/util/Map;
38
49
}
39
50
40
51
public final class slack/cli/gradle/GradleProjectFlattenerCli : com/github/ajalt/clikt/core/CliktCommand {
52
+
public static final field DESCRIPTION Ljava/lang/String;
41
53
public fun <init> ()V
42
54
public fun run ()V
43
55
}
44
56
57
+
public final class slack/cli/gradle/GradleProjectFlattenerCli$Factory : slack/cli/CommandFactory {
58
+
public fun <init> ()V
59
+
public fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
60
+
public fun getDescription ()Ljava/lang/String;
61
+
public fun getKey ()Ljava/lang/String;
62
+
}
63
+
45
64
public final class slack/cli/gradle/GradleSettingsVerifierCli : com/github/ajalt/clikt/core/CliktCommand {
65
+
public static final field DESCRIPTION Ljava/lang/String;
46
66
public fun <init> ()V
47
67
public fun run ()V
48
68
}
49
69
70
+
public final class slack/cli/gradle/GradleSettingsVerifierCli$Factory : slack/cli/CommandFactory {
71
+
public fun <init> ()V
72
+
public fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
73
+
public fun getDescription ()Ljava/lang/String;
74
+
public fun getKey ()Ljava/lang/String;
75
+
}
76
+
50
77
public final class slack/cli/lint/LintBaselineMergerCli : com/github/ajalt/clikt/core/CliktCommand {
78
+
public static final field DESCRIPTION Ljava/lang/String;
51
79
public fun <init> ()V
52
80
public fun run ()V
53
81
}
54
82
83
+
public final class slack/cli/lint/LintBaselineMergerCli$Factory : slack/cli/CommandFactory {
84
+
public fun <init> ()V
85
+
public fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
86
+
public fun getDescription ()Ljava/lang/String;
87
+
public fun getKey ()Ljava/lang/String;
88
+
}
89
+
55
90
public final class slack/cli/sarif/MergeSarifReports : com/github/ajalt/clikt/core/CliktCommand {
91
+
public static final field DESCRIPTION Ljava/lang/String;
56
92
public fun <init> ()V
57
93
public fun run ()V
58
94
}
59
95
96
+
public final class slack/cli/sarif/MergeSarifReports$Factory : slack/cli/CommandFactory {
97
+
public fun <init> ()V
98
+
public fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
99
+
public fun getDescription ()Ljava/lang/String;
100
+
public fun getKey ()Ljava/lang/String;
101
+
}
102
+
60
103
public final class slack/cli/shellsentry/AnalysisResult {
61
104
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lslack/cli/shellsentry/RetrySignal;ILkotlin/jvm/functions/Function1;)V
62
105
public final fun component1 ()Ljava/lang/String;
@@ -181,10 +224,18 @@ public final class slack/cli/shellsentry/ShellSentry$Companion {
181
224
}
182
225
183
226
public final class slack/cli/shellsentry/ShellSentryCli : com/github/ajalt/clikt/core/CliktCommand {
227
+
public static final field DESCRIPTION Ljava/lang/String;
184
228
public fun <init> ()V
185
229
public fun run ()V
186
230
}
187
231
232
+
public final class slack/cli/shellsentry/ShellSentryCli$Factory : slack/cli/CommandFactory {
233
+
public fun <init> ()V
234
+
public fun create ()Lcom/github/ajalt/clikt/core/CliktCommand;
235
+
public fun getDescription ()Ljava/lang/String;
236
+
public fun getKey ()Ljava/lang/String;
237
+
}
238
+
188
239
public final class slack/cli/shellsentry/ShellSentryConfig {
189
240
public fun <init> ()V
190
241
public fun <init> (ILjava/lang/String;Ljava/util/List;I)V
0 commit comments