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