Skip to content

Commit e237120

Browse files
authored
Import mainargs @main annotation in scripts (#2044)
This fixed compile issues, when compiled outside of Ammonite. Pull request: #2044
1 parent 1cb86db commit e237120

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

ci/shared.sc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66

77
import $ivy.`org.scalaj::scalaj-http:2.4.2`
8+
import mainargs.main
89

910
def unpackZip(zipDest: os.Path, url: String) = {
1011
println(s"Unpacking zip $url into $zipDest")

ci/upload.sc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env amm
22

33
import scalaj.http._
4+
import mainargs.main
45

56
@main
67
def apply(

0 commit comments

Comments
 (0)