@@ -41,19 +41,18 @@ public void getOptions(Options options) {
4141
4242 @ Override
4343 public void run (CliContext context , CommandLine args ) {
44- CliContext ctx = context ;
45- Io io = ctx .getIo ();
44+ Io io = context .getIo ();
4645
4746 String [] exercisesFromArgs = parseArgs (args );
4847 if (exercisesFromArgs == null ) {
4948 return ;
5049 }
5150
52- if (!ctx .loadBackendWithoutLogin ()) {
51+ if (!context .loadBackendWithoutLogin ()) {
5352 return ;
5453 }
5554
56- WorkDir workDir = ctx .getWorkDir ();
55+ WorkDir workDir = context .getWorkDir ();
5756 for (String exercise : exercisesFromArgs ) {
5857 if (!workDir .addPath (exercise )) {
5958 io .println ("Error: " + exercise + " is not a valid exercise." );
@@ -67,10 +66,10 @@ public void run(CliContext context, CommandLine args) {
6766 return ;
6867 }
6968
70- CourseInfo info = ctx .getCourseInfo ();
69+ CourseInfo info = context .getCourseInfo ();
7170
72- Color passedColor = ctx .getApp ().getColor ("testresults-left" );
73- Color failedColor = ctx .getApp ().getColor ("testresults-right" );
71+ Color passedColor = context .getApp ().getColor ("testresults-left" );
72+ Color failedColor = context .getApp ().getColor ("testresults-right" );
7473 ResultPrinter resultPrinter = new ResultPrinter (io , showDetails , showPassed ,
7574 passedColor , failedColor );
7675
@@ -80,14 +79,14 @@ public void run(CliContext context, CommandLine args) {
8079 io .println (ColorUtil .colorString ("Testing: " + name , Color .YELLOW ));
8180 Exercise exercise = info .getExercise (name );
8281
83- RunResult runResult = TmcUtil .runLocalTests (ctx , exercise );
82+ RunResult runResult = TmcUtil .runLocalTests (context , exercise );
8483 if (runResult == null ) {
8584 io .println ("Failed to run test" );
8685 resultPrinter .addFailedExercise ();
8786 continue ;
8887 }
8988
90- ValidationResult valResult = TmcUtil .runCheckStyle (ctx , exercise );
89+ ValidationResult valResult = TmcUtil .runCheckStyle (context , exercise );
9190 boolean testsPassed = resultPrinter .printLocalTestResult (
9291 runResult , valResult , isOnlyExercise );
9392
0 commit comments