move class
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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> {
|
||||
@@ -63,4 +62,4 @@ class Execution(
|
||||
.filter { it.name == name }
|
||||
.map { parser.parse(it.value) }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user