Skip to content

Commit

Permalink
refactor: rename for option
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Dec 21, 2023
1 parent 2079482 commit cb21506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions unit-cli/src/main/kotlin/cc/unitmesh/runner/Picker.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ fun main(args: Array<String>) = PickerCommand().main(args)

class PickerCommand : CliktCommand() {
// todo: find a way to make this configurable
private val completionTypeSize by option(help = "Limit each CompletionType size").int().default(100)
private val projectTypedCompletionSize by option(help = "Limit each CompletionType size").int().default(100)
private val gitDepth by option(help = "Git depth").int().default(1)
private val maxCompletionInOneFile by option(help = "Max completion in one file").int().default(3)

Expand All @@ -45,7 +45,7 @@ class PickerCommand : CliktCommand() {
language = code.language,
maxCompletionInOneFile = maxCompletionInOneFile,
gitDepth = gitDepth,
completionTypeSize = completionTypeSize
completionTypeSize = projectTypedCompletionSize
)

val content = SimpleCodePicker(pickerOption).execute()
Expand Down

0 comments on commit cb21506

Please sign in to comment.