File tree Expand file tree Collapse file tree 4 files changed +7
-8
lines changed
modules/cli/src/main/scala/scala/cli Expand file tree Collapse file tree 4 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ object Publish extends ScalaCommand[PublishOptions] with BuildCommandHelpers {
334
334
private def defaultName (workspace : os.Path , logger : Logger ): String = {
335
335
val name = workspace.last
336
336
logger.message(
337
- s " Using directive publish.name not set , using workspace file name $name as default name "
337
+ s " Using directive publish.name not specified , using workspace directory name $name as default name "
338
338
)
339
339
name
340
340
}
@@ -1024,7 +1024,7 @@ object Publish extends ScalaCommand[PublishOptions] with BuildCommandHelpers {
1024
1024
Seq (mod.organization.value, mod.name.value, version)
1025
1025
else
1026
1026
mod.organization.value.split('.' ).toSeq ++ Seq (mod.name.value, version)
1027
- elems.map(" /" + _).mkString
1027
+ elems.map(" /" + _).mkString + " / "
1028
1028
}
1029
1029
val path = {
1030
1030
val url = checkRepo.root.stripSuffix(" /" ) + relPath
Original file line number Diff line number Diff line change @@ -125,9 +125,9 @@ object PublishSetup extends ScalaCommand[PublishSetupOptions] {
125
125
126
126
if (missingFields.nonEmpty) {
127
127
val count = missingFields.length
128
- logger.message(s " $count ${if (count > 1 ) " options" else " option" } need to be set" )
128
+ logger.message(s " $count ${if (count > 1 ) " options need " else " option needs " } to be set " )
129
129
for (check <- missingFields)
130
- logger.debug (s " ${check.fieldName}" )
130
+ logger.message (s " ${check.fieldName}" )
131
131
logger.message(" " ) // printing an empty line, for readability
132
132
}
133
133
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ final case class UrlCheck(
28
28
case Right ((org, name)) =>
29
29
val url = s " https://github.com/ $org/ $name"
30
30
logger.message(" url:" )
31
- logger.message(s " using GitHub repository $url" )
31
+ logger.message(s " using GitHub repository URL $url" )
32
32
Some (url)
33
33
}
34
34
options.publishParams.url
Original file line number Diff line number Diff line change @@ -11,10 +11,9 @@ final class MissingPublishOptionError(
11
11
) extends BuildException (
12
12
{
13
13
val directivePart =
14
- if (directiveName.isEmpty)
15
- s " or with a 'using $directiveName' directive "
14
+ if (directiveName.isEmpty) " "
16
15
else
17
- " "
16
+ s " or with a '//> using $directiveName ' directive "
18
17
val configPart =
19
18
if (configKeys.isEmpty) " "
20
19
else
You can’t perform that action at this time.
0 commit comments