package coursier.cli.install

import caseapp.core.app.CaseApp
import caseapp.core.RemainingArgs
import coursier.install.InstallDir

object List extends CaseApp[ListOptions] {
  def run(options: ListOptions, args: RemainingArgs): Unit = {
    val params = ListParams(options)
    val installDir = InstallDir(params.installPath, new NoopCache)
    val names = installDir.list()
    System.err.print(names.map(_ + System.lineSeparator).mkString)
  }
}

package coursier.cli.install

import caseapp.core.app.CaseApp
import caseapp.core.RemainingArgs
import coursier.install.InstallDir

object List extends CaseApp[ListOptions] {
  def run(options: ListOptions, args: RemainingArgs): Unit = {
    val params = ListParams(options)
    val installDir = InstallDir(params.installPath, new NoopCache)
    val names = installDir.list()
    print(names.map(_ + System.lineSeparator).mkString)
  }
}

Print app list on stdout rather than stderr in list command
Print app list on stdout rather than stderr in list command
