diff --git a/build.sbt b/build.sbt index e5aae7f..7cdabb6 100644 --- a/build.sbt +++ b/build.sbt @@ -22,7 +22,7 @@ lazy val logging = (project in file("logging")) lazy val common = Seq( maintainer := "saitkocatas@gmail.com", organization := "com.deliganli", - version := "0.1.0", + version := "0.1.1", scalaVersion := "2.13.3", scalacOptions ++= Seq("-deprecation", "-encoding", "UTF-8", "-language:higherKinds", "-language:postfixOps", "-feature"), addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"), @@ -32,5 +32,6 @@ lazy val common = Seq( lazy val deployment = Seq( maintainer := "Sait Sami Kocatas", packageSummary := "Command line program searches given query on maven", - executableScriptName := "mvns" + executableScriptName := "mvns", + mappings in Universal += (resourceDirectory in Compile).value / "reference.conf" -> "conf/reference.conf" ) diff --git a/scoop/mvns.json b/scoop/mvns.json index 47a151d..5518e52 100644 --- a/scoop/mvns.json +++ b/scoop/mvns.json @@ -1,9 +1,8 @@ { - "version": "0.1.0", + "version": "0.1.1", "description": "Command line program searches given query on maven", "homepage": "https://github.com/Deliganli/maven-search", "bin": "bin/mvns.bat", - "extract_dir": "stage", "checkver": "github", "autoupdate": { "architecture": { @@ -20,7 +19,7 @@ }, "architecture": { "64bit": { - "url": "https://github.com/Deliganli/maven-search/releases/download/0.1.0/mvns.zip", + "url": "https://github.com/Deliganli/maven-search/releases/download/0.1.1/mvns.zip", "hash": "c0060590da6bef5b69f122eaeb898379c21fc391a7ac6119042206388129c567" } } diff --git a/src/main/resources/application.conf b/src/main/resources/application.conf new file mode 100644 index 0000000..e3bf59a --- /dev/null +++ b/src/main/resources/application.conf @@ -0,0 +1,3 @@ +maven-search { + debug = true +} \ No newline at end of file diff --git a/src/main/scala/com/deliganli/maven/search/cmd/package.scala b/src/main/scala/com/deliganli/maven/search/cmd/package.scala index 57e2783..f6b0982 100644 --- a/src/main/scala/com/deliganli/maven/search/cmd/package.scala +++ b/src/main/scala/com/deliganli/maven/search/cmd/package.scala @@ -20,9 +20,6 @@ package object cmd { OParser.sequence( programName("mvns"), head("maven search", "0.1"), - arg[String]("") - .action((x, p) => p.copy(query = x)) - .text("Query string to be searched in maven central"), opt[Uri]("maven-uri") .optional() .action((x, p) => p.copy(mavenUri = x.some)) @@ -46,7 +43,10 @@ package object cmd { opt[Boolean]('c', "clear-screen") .optional() .action((x, p) => p.copy(clearScreen = x.some)) - .text("Clear screen on each navigation activity") + .text("Clear screen on each navigation activity"), + arg[String]("") + .action((x, p) => p.copy(query = x)) + .text("Query string to be searched in maven central") ) } }