Skip to content

Commit 5fda893

Browse files
committed
Updated deprecated code
1 parent 3dde87c commit 5fda893

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

esw-agent-pekko/esw-agent-pekko-app/src/main/scala/esw/agent/pekko/app/AgentApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object AgentApp extends CommandsEntryPoint {
2727

2828
override def commands: Seq[Command[?]] = List(StartCommand)
2929

30-
class Runner[T <: AgentCliCommand: Parser: Help] extends Command[T] {
30+
class Runner[T <: AgentCliCommand: {Parser, Help}] extends Command[T] {
3131
override def run(command: T, args: RemainingArgs): Unit = {
3232
command match {
3333
case StartOptions(prefix, hostConfigPath, isConfigLocal) =>

esw-agent-service/esw-agent-service-app/src/main/scala/esw/agent/service/app/AgentServiceApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ object AgentServiceApp extends CommandsEntryPoint {
2727

2828
override def commands: Seq[Command[?]] = List(StartCommand)
2929

30-
class Runner[T <: AgentServiceAppCommand: Parser: Help] extends EswCommand[T] {
30+
class Runner[T <: AgentServiceAppCommand: {Parser, Help}] extends EswCommand[T] {
3131
override def run(command: T, args: RemainingArgs): Unit = {
3232
LocationServerStatus.requireUpLocally()
3333
command match {

esw-backend-testkit/src/main/scala/esw/backend/testkit/BackendService.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object BackendService extends CommandsEntryPoint {
2929

3030
val StartCommand: Runner[StartOptions] = Runner[StartOptions]()
3131

32-
class Runner[T <: TSServicesCommands: Parser: Help] extends EswCommand[T] {
32+
class Runner[T <: TSServicesCommands: {Parser, Help}] extends EswCommand[T] {
3333
override def run(command: T, args: RemainingArgs): Unit = {
3434
command match {
3535
case StartOptions(services, commandRoles, alarmConf) => run(services, commandRoles, alarmConf)

esw-backend-testkit/src/main/scala/esw/backend/testkit/SequencerApp.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import caseapp.core.app.{Command, CommandsEntryPoint}
55
import caseapp.core.help.Help
66
import caseapp.core.parser.Parser
77
import csw.prefix.models.Subsystem
8-
import esw.agent.pekko.app.AgentCliCommand
98
import esw.backend.testkit.TSSequencerCommands.*
109
import esw.commons.cli.EswCommand
1110
import esw.ocs.api.models.{ObsMode, Variation}
@@ -19,7 +18,7 @@ object SequencerApp extends CommandsEntryPoint {
1918

2019
val StartCommand: Runner[StartOptions] = Runner[StartOptions]()
2120

22-
class Runner[T <: TSSequencerCommands: Parser: Help] extends EswCommand[T] {
21+
class Runner[T <: TSSequencerCommands: {Parser, Help}] extends EswCommand[T] {
2322
override def run(command: T, args: RemainingArgs): Unit = {
2423
command match {
2524
case StartOptions(subsystem: Subsystem, obsMode: ObsMode, variation: Option[Variation]) =>

esw-http-template-wiring/src/main/scala/esw/http/template/wiring/ServerApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ trait ServerApp extends CommandsEntryPoint {
1414
def appName: String
1515
def appVersion: String
1616

17-
abstract class Runner[T: Parser: Help] extends Command[T] {
17+
abstract class Runner[T: {Parser, Help}] extends Command[T] {
1818
def start(wiring: ServerWiring, metadata: Metadata): Unit = {
1919
try {
2020
wiring.actorRuntime.startLogging(progName, appVersion)

esw-ocs/esw-ocs-app/src/main/scala/esw/ocs/app/SequencerApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ object SequencerApp extends CommandsEntryPoint {
4343

4444
override def commands: Seq[Command[?]] = List(SequenceComponent, Sequencer)
4545

46-
class Runner[T <: SequencerAppCommand: Parser: Help] extends EswCommand[T] {
46+
class Runner[T <: SequencerAppCommand: {Parser, Help}] extends EswCommand[T] {
4747
override def run(command: T, args: RemainingArgs): Unit = {
4848
LocationServerStatus.requireUpLocally()
4949
run(command)

esw-services/src/main/scala/esw/services/EswServicesApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ object EswServicesApp extends CommandsEntryPoint {
2929

3030
override def commands: Seq[Command[?]] = List(Start, StartEngUIServices)
3131

32-
class Runner[T <: cli.Command: Parser: Help] extends EswCommand[T] {
32+
class Runner[T <: cli.Command: {Parser, Help}] extends EswCommand[T] {
3333
override def run(command: T, args: RemainingArgs): Unit = {
3434
val wiring = new Wiring(command)
3535
try {

esw-sm/esw-sm-app/src/main/scala/esw/sm/app/SequenceManagerApp.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ object SequenceManagerApp extends CommandsEntryPoint {
3030

3131
override def commands: Seq[Command[?]] = List(StartCommand)
3232

33-
class Runner[T <: SequenceManagerAppCommand: Parser: Help] extends EswCommand[T] {
33+
class Runner[T <: SequenceManagerAppCommand: {Parser, Help}] extends EswCommand[T] {
3434
override def run(command: T, args: RemainingArgs): Unit = {
3535
LocationServerStatus.requireUpLocally()
3636
run(command)

0 commit comments

Comments
 (0)