Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Aug 9, 2023
1 parent 49a6409 commit c9b5a2b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/kotlin-cli-util.api
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public final class slack/cli/CliUtilKt {
}

public final class slack/cli/CliktExtensionsKt {
public static final fun dryRunOption (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;)Lcom/github/ajalt/clikt/parameters/options/FlagOption;
public static synthetic fun dryRunOption$default (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/ajalt/clikt/parameters/options/FlagOption;
public static final fun dryRunOption (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;)Lcom/github/ajalt/clikt/parameters/options/OptionWithValues;
public static synthetic fun dryRunOption$default (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Lcom/github/ajalt/clikt/parameters/options/OptionWithValues;
public static final fun projectDirOption (Lcom/github/ajalt/clikt/core/CliktCommand;[Ljava/lang/String;Ljava/lang/String;)Lcom/github/ajalt/clikt/parameters/options/OptionDelegate;
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;
}
Expand Down
5 changes: 3 additions & 2 deletions src/main/kotlin/slack/cli/CliktExtensions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
package slack.cli

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.options.FlagOption
import com.github.ajalt.clikt.parameters.options.OptionDelegate
import com.github.ajalt.clikt.parameters.options.OptionWithValues
import com.github.ajalt.clikt.parameters.options.defaultLazy
import com.github.ajalt.clikt.parameters.options.flag
import com.github.ajalt.clikt.parameters.options.option
Expand All @@ -35,7 +35,8 @@ import java.nio.file.Paths
public fun CliktCommand.dryRunOption(
vararg names: String = arrayOf("--dry-run"),
help: String = "Runs this as a dry run, no modifications."
): FlagOption<Boolean> = option(names = names, help = help).flag(default = false)
): OptionWithValues<Boolean, Boolean, Boolean> =
option(names = names, help = help).flag(default = false)

/** A project dir option for [clikt commands][CliktCommand]. */
public fun CliktCommand.projectDirOption(
Expand Down

0 comments on commit c9b5a2b

Please sign in to comment.