Skip to content

Commit

Permalink
Fix exit code for CLI app
Browse files Browse the repository at this point in the history
  • Loading branch information
SmirnovOleg committed Dec 27, 2022
1 parent e9bf675 commit 306819f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .space.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ job("Paddle / Release / Docker") {
}
}

val version = "0.4.6"
val version = "0.4.7"

val types = listOf("3.9").map { "paddle-py-${it.replace(".", "-")}" }

Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group = "io.paddle"
version = "0.4.6"
version = "0.4.7"

plugins {
kotlin("jvm") version "1.7.10" apply false
Expand Down
6 changes: 2 additions & 4 deletions cli/src/main/kotlin/io/paddle/Application.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@ package io.paddle

import com.github.ajalt.clikt.core.CliktCommand
import com.github.ajalt.clikt.parameters.arguments.argument
import com.github.ajalt.clikt.parameters.arguments.optional
import com.github.ajalt.clikt.parameters.options.flag
import com.github.ajalt.clikt.parameters.options.option
import io.paddle.project.PaddleProjectProvider
import io.paddle.project.extensions.descriptor
import io.paddle.tasks.Task
import java.io.File
import kotlin.system.exitProcess

class Paddle : CliktCommand() {
private val taskRoute by argument(
Expand Down Expand Up @@ -38,7 +36,7 @@ class Paddle : CliktCommand() {
project.execute(taskId = taskRoute)
}
} catch (e: Task.ActException) {
return
exitProcess(1)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM ubuntu:20.04 as downloader

ARG PADDLE_VERSION='0.4.6'
ARG PADDLE_VERSION='0.4.7'

RUN apt-get update && apt-get -y install wget
RUN wget -O /paddle.jar "https://github.com/JetBrains-Research/paddle/releases/download/v${PADDLE_VERSION}/paddle-${PADDLE_VERSION}-all.jar"
Expand Down

0 comments on commit 306819f

Please sign in to comment.