Skip to content

Commit

Permalink
chore: use gatling-shared-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
slandelle committed Apr 24, 2024
1 parent f95fcaa commit 7d0dca8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
3 changes: 2 additions & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ githubPath := "gatling/gatling-sbt-plugin"

libraryDependencies ++= Seq(
"org.scalatest" %% "scalatest" % "3.2.18" % Test,
"io.gatling" % "gatling-enterprise-plugin-commons" % "1.9.1"
"io.gatling" % "gatling-enterprise-plugin-commons" % "1.9.1",
"io.gatling" % "gatling-shared-cli" % "0.0.1"
)

scriptedLaunchOpts := {
Expand Down
22 changes: 12 additions & 10 deletions src/main/scala/io/gatling/sbt/utils/StartRecorderUtils.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package io.gatling.sbt.utils

import io.gatling.shared.cli.RecorderCliOptions

import sbt.complete.DefaultParsers._
import sbt.complete.Parser

Expand All @@ -25,22 +27,22 @@ private[gatling] object StartRecorderUtils {
* List of all CLI options supported by the Recorder, in their "short" version.
*/
val shortRecorderOpts = Set(
"sf",
"rf",
"cn",
"pkg",
"fmt"
RecorderCliOptions.SimulationsFolder.abbr,
RecorderCliOptions.ResourcesFolder.abbr,
RecorderCliOptions.ClassName.abbr,
RecorderCliOptions.Package.abbr,
RecorderCliOptions.Format.abbr
)

/**
* List of all CLI options supported by the Recorder, in their "full" version.
*/
val fullRecorderOpts = Set(
"simulations-folder",
"resources-folder",
"class-name",
"package",
"format"
RecorderCliOptions.SimulationsFolder.full,
RecorderCliOptions.ResourcesFolder.full,
RecorderCliOptions.ClassName.full,
RecorderCliOptions.Package.full,
RecorderCliOptions.Format.full
)

/** Parser matching the help option, in short and full version. */
Expand Down

0 comments on commit 7d0dca8

Please sign in to comment.