diff --git a/cli/src/main/java/io/kestra/cli/commands/namespaces/NamespaceCommand.java b/cli/src/main/java/io/kestra/cli/commands/namespaces/NamespaceCommand.java index efcb97385f..249f893fc0 100644 --- a/cli/src/main/java/io/kestra/cli/commands/namespaces/NamespaceCommand.java +++ b/cli/src/main/java/io/kestra/cli/commands/namespaces/NamespaceCommand.java @@ -3,6 +3,7 @@ import io.kestra.cli.AbstractCommand; import io.kestra.cli.App; import io.kestra.cli.commands.namespaces.files.NamespaceFilesCommand; +import io.kestra.cli.commands.namespaces.kv.KvCommand; import io.micronaut.configuration.picocli.PicocliRunner; import lombok.SneakyThrows; import lombok.extern.slf4j.Slf4j; @@ -13,7 +14,8 @@ description = "handle namespaces", mixinStandardHelpOptions = true, subcommands = { - NamespaceFilesCommand.class + NamespaceFilesCommand.class, + KvCommand.class } ) @Slf4j diff --git a/cli/src/test/java/io/kestra/cli/commands/namespaces/kv/KvCommandTest.java b/cli/src/test/java/io/kestra/cli/commands/namespaces/kv/KvCommandTest.java index c34b2839bd..03e3e56bfd 100644 --- a/cli/src/test/java/io/kestra/cli/commands/namespaces/kv/KvCommandTest.java +++ b/cli/src/test/java/io/kestra/cli/commands/namespaces/kv/KvCommandTest.java @@ -1,6 +1,5 @@ package io.kestra.cli.commands.namespaces.kv; -import io.kestra.cli.commands.namespaces.files.NamespaceFilesCommand; import io.micronaut.configuration.picocli.PicocliRunner; import io.micronaut.context.ApplicationContext; import org.junit.jupiter.api.Test; @@ -20,7 +19,7 @@ void runWithNoParam() { try (ApplicationContext ctx = ApplicationContext.builder().deduceEnvironment(false).start()) { String[] args = {}; - Integer call = PicocliRunner.call(NamespaceFilesCommand.class, ctx, args); + Integer call = PicocliRunner.call(KvCommand.class, ctx, args); assertThat(call, is(0)); assertThat(out.toString(), containsString("Usage: kestra namespace kv"));