move class

This commit is contained in:
2025-08-18 00:12:41 +02:00
parent fc416d3bbb
commit aedcb9c68a
2 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
package com.infendro.cli.command
import com.infendro.cli.Execution
import com.infendro.cli.command.Execution
import com.infendro.cli.argument.Argument
import com.infendro.cli.exception.build.*
import com.infendro.cli.exception.run.ArgumentCountException

View File

@@ -1,7 +1,6 @@
package com.infendro.cli
package com.infendro.cli.command
import com.infendro.cli.argument.Argument.*
import com.infendro.cli.command.Command
import com.infendro.cli.argument.Argument
import kotlin.reflect.KProperty
class Execution(
@@ -25,7 +24,7 @@ class Execution(
.name
}
operator fun <T> Single<T>.getValue(
operator fun <T> Argument.Single<T>.getValue(
thisRef: Any?,
property: KProperty<*>,
): T {
@@ -36,7 +35,7 @@ class Execution(
)
}
operator fun <T> SingleOrElse<T>.getValue(
operator fun <T> Argument.SingleOrElse<T>.getValue(
thisRef: Any?,
property: KProperty<*>,
): T {
@@ -46,7 +45,7 @@ class Execution(
?: other
}
operator fun <T> SingleOrNull<T>.getValue(
operator fun <T> Argument.SingleOrNull<T>.getValue(
thisRef: Any?,
property: KProperty<*>,
): T? {
@@ -55,7 +54,7 @@ class Execution(
?.let { parser.parse(it.value) }
}
operator fun <T> Multiple<T>.getValue(
operator fun <T> Argument.Multiple<T>.getValue(
thisRef: Any?,
property: KProperty<*>,
): List<T> {