Skip to content

Commit

Permalink
Fix default remote location for all CLI commands (#198)
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharmath authored Jun 24, 2023
1 parent 11d0dda commit e52c5ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cli/src/main/scala/tailcall/cli/CommandDoc.scala
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ object CommandDoc {
},

// publish
Command("publish", CustomOptions.remoteOption.withDefault(CLIConfig.remote), Args.file.repeat1)
Command("publish", CustomOptions.remoteOption, Args.file.repeat1)
.withHelp("Publish the configuration file to the remote environment.").map { case (remote, config) =>
Remote(remote, Remote.Publish(config))
},
Expand Down
2 changes: 1 addition & 1 deletion cli/src/main/scala/tailcall/cli/CustomOptions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import zio.http.URL

object CustomOptions {

val remoteOption: Options[URL] = CustomOptions.urlOption("remote").alias("r")
val remoteOption: Options[URL] = CustomOptions.urlOption("remote").alias("r").withDefault(CLIConfig.remote)

val blueprintOptions: Options[BlueprintOptions] = {
Options.boolean("blueprint").withDefault(false) ++
Expand Down

0 comments on commit e52c5ed

Please sign in to comment.