From 3883795cbf5d50d68fa4dae966af25fa2eda8591 Mon Sep 17 00:00:00 2001 From: Eric Loots Date: Wed, 11 Oct 2023 15:50:14 +0200 Subject: [PATCH 1/4] Prepare move of repo to the Scala Center --- .github/workflows/release.yml | 4 +-- build.sbt | 12 ++++----- .../cmt/client/command/Executable.scala | 7 ----- .../cmt => coursemgmttools}/CMTaConfig.scala | 2 +- .../cmt => coursemgmttools}/CMTcConfig.scala | 2 +- .../ConsoleFunctions.scala | 2 +- .../cmt => coursemgmttools}/Domain.scala | 2 +- .../cmt => coursemgmttools}/Error.scala | 2 +- .../ExerciseMetadata.scala | 2 +- .../cmt => coursemgmttools}/Filters.scala | 2 +- .../cmt => coursemgmttools}/Helpers.scala | 8 +++--- .../cmt => coursemgmttools}/ProcessDSL.scala | 6 ++--- .../cmt => coursemgmttools}/Releasables.scala | 2 +- .../cmt => coursemgmttools}/Validations.scala | 4 +-- .../client/Configuration.scala | 12 ++++----- .../client/cli/CmtcCommand.scala | 8 +++--- .../client/command/Executable.scala | 7 +++++ .../core/GeneratorInfo.scala | 2 +- .../core/cli/ArgParsers.scala | 8 +++--- .../core/cli/CmtCommand.scala | 4 +-- .../core/command/Package.scala | 2 +- .../core/execution/Executable.scala | 4 +-- .../core/validation/FileValidations.scala | 4 +-- .../core/validation/Validatable.scala | 4 +-- .../client/ConfigurationSpec.scala | 10 +++---- .../client/command/InstallSpec.scala | 2 +- .../core/cli/CmtCommandSpec.scala | 2 +- .../support/CommandLineParseTestBase.scala | 4 +-- .../support/EitherSupport.scala | 2 +- .../support/ExtractUniquePathsSpec.scala | 4 +-- .../support/TestDirectories.scala | 6 ++--- .../admin/Domain.scala | 8 +++--- .../cmt => coursemgmttools}/admin/Main.scala | 4 +-- .../admin/TargetFolderValidation.scala | 6 ++--- .../admin/cli/ArgParsers.scala | 6 ++--- .../admin/cli/SharedOptions.scala | 6 ++--- .../admin/command/Delinearize.scala | 20 +++++++------- .../admin/command/DuplicateInsertBefore.scala | 18 ++++++------- .../admin/command/Linearize.scala | 20 +++++++------- .../admin/command/New.scala | 22 ++++++++-------- .../admin/command/Package.scala | 4 +-- .../admin/command/RenumberExercises.scala | 20 +++++++------- .../admin/command/Studentify.scala | 26 +++++++++---------- .../admin/command/Version.scala | 14 +++++----- .../RenumberExercisesSpec.scala | 10 +++---- .../cmt => coursemgmttools}/TestHelpers.scala | 2 +- .../admin/cli/CommandLineArgumentsSpec.scala | 8 +++--- .../admin/cli/DelinearizeArgumentsSpec.scala | 12 ++++----- .../DuplicateInsertBeforeArgumentsSpec.scala | 12 ++++----- .../admin/cli/LinearizeArgumentsSpec.scala | 12 ++++----- .../admin/cli/RenumberArgumentsSpec.scala | 12 ++++----- .../admin/cli/StudentifyArgumentsSpec.scala | 12 ++++----- .../admin/cli/VersionArguments.scala | 6 ++--- .../client/Domain.scala | 2 +- .../cmt => coursemgmttools}/client/Main.scala | 4 +-- .../client/cli/ArgParsers.scala | 4 +-- .../client/command/GotoExercise.scala | 24 ++++++++--------- .../client/command/GotoFirstExercise.scala | 20 +++++++------- .../client/command/Install.scala | 26 +++++++++---------- .../client/command/ListExercises.scala | 18 ++++++------- .../client/command/ListSavedStates.scala | 16 ++++++------ .../client/command/NextExercise.scala | 24 ++++++++--------- .../client/command/Package.scala | 6 ++--- .../client/command/PreviousExercise.scala | 24 ++++++++--------- .../client/command/PullSolution.scala | 20 +++++++------- .../client/command/PullTemplate.scala | 24 ++++++++--------- .../client/command/RestoreState.scala | 22 ++++++++-------- .../client/command/SaveState.scala | 20 +++++++------- .../client/command/SetCurrentCourse.scala | 20 +++++++------- .../client/command/Version.scala | 14 +++++----- .../client/cli/CommandLineArgumentsSpec.scala | 8 +++--- .../cli/GotoExerciseArgumentsSpec.scala | 14 +++++----- .../client/cli/GotoFirstExerciseSpec.scala | 6 ++--- .../client/cli/InstallArgumentsSpec.scala | 12 ++++----- .../client/cli/ListExercisesSpec.scala | 6 ++--- .../client/cli/ListSavedStatesSpec.scala | 6 ++--- .../client/cli/NextExerciseSpec.scala | 6 ++--- .../client/cli/PreviousExercise.scala | 6 ++--- .../client/cli/PullSolutionSpec.scala | 6 ++--- .../client/cli/PullTemplateSpec.scala | 6 ++--- .../client/cli/RestoreStateSpec.scala | 6 ++--- .../client/cli/SaveStateSpec.scala | 6 ++--- .../client/cli/SetCurrentCourseSpec.scala | 12 ++++----- .../client/cli/VersionArguments.scala | 6 ++--- .../StudentificationFunctionalSpec.scala | 6 ++--- ...tificationMovingBetweenExercisesSpec.scala | 4 +-- .../support/TestSupport.scala | 26 +++++++++---------- project/Build.scala | 2 +- 88 files changed, 417 insertions(+), 417 deletions(-) delete mode 100644 cmt-core/src/main/scala/com/lunatech/cmt/client/command/Executable.scala rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/CMTaConfig.scala (99%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/CMTcConfig.scala (99%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/ConsoleFunctions.scala (98%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Domain.scala (96%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Error.scala (99%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/ExerciseMetadata.scala (96%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Filters.scala (97%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Helpers.scala (99%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/ProcessDSL.scala (93%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Releasables.scala (93%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/Validations.scala (96%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/Configuration.scala (93%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/CmtcCommand.scala (69%) create mode 100644 cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/GeneratorInfo.scala (72%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/cli/ArgParsers.scala (92%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/cli/CmtCommand.scala (95%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/command/Package.scala (90%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/execution/Executable.scala (91%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/validation/FileValidations.scala (93%) rename cmt-core/src/main/scala/{com/lunatech/cmt => coursemgmttools}/core/validation/Validatable.scala (51%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/ConfigurationSpec.scala (85%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/command/InstallSpec.scala (89%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/core/cli/CmtCommandSpec.scala (92%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/support/CommandLineParseTestBase.scala (97%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/support/EitherSupport.scala (97%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/support/ExtractUniquePathsSpec.scala (95%) rename cmt-core/src/test/scala/{com/lunatech/cmt => coursemgmttools}/support/TestDirectories.scala (92%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/Domain.scala (94%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/Main.scala (93%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/TargetFolderValidation.scala (87%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/ArgParsers.scala (95%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/SharedOptions.scala (79%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/Delinearize.scala (91%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/DuplicateInsertBefore.scala (90%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/Linearize.scala (87%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/New.scala (91%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/Package.scala (76%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/RenumberExercises.scala (90%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/Studentify.scala (90%) rename cmta/src/main/scala/{com/lunatech/cmt => coursemgmttools}/admin/command/Version.scala (71%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/RenumberExercisesSpec.scala (97%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/TestHelpers.scala (98%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/CommandLineArgumentsSpec.scala (94%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/DelinearizeArgumentsSpec.scala (90%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala (88%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/LinearizeArgumentsSpec.scala (88%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/RenumberArgumentsSpec.scala (87%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/StudentifyArgumentsSpec.scala (95%) rename cmta/src/test/scala/{com/lunatech/cmt => coursemgmttools}/admin/cli/VersionArguments.scala (83%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/Domain.scala (97%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/Main.scala (95%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/ArgParsers.scala (83%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/GotoExercise.scala (83%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/GotoFirstExercise.scala (73%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/Install.scala (92%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/ListExercises.scala (72%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/ListSavedStates.scala (78%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/NextExercise.scala (83%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/Package.scala (93%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/PreviousExercise.scala (81%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/PullSolution.scala (79%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/PullTemplate.scala (82%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/RestoreState.scala (81%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/SaveState.scala (79%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/SetCurrentCourse.scala (75%) rename cmtc/src/main/scala/{com/lunatech/cmt => coursemgmttools}/client/command/Version.scala (71%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/CommandLineArgumentsSpec.scala (95%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/GotoExerciseArgumentsSpec.scala (81%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/GotoFirstExerciseSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/InstallArgumentsSpec.scala (69%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/ListExercisesSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/ListSavedStatesSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/NextExerciseSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/PreviousExercise.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/PullSolutionSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/PullTemplateSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/RestoreStateSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/SaveStateSpec.scala (82%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/SetCurrentCourseSpec.scala (92%) rename cmtc/src/test/scala/{com/lunatech/cmt => coursemgmttools}/client/cli/VersionArguments.scala (84%) rename functional-tests/src/test/scala/{com/lunatech/cmt => coursemgmttools}/StudentificationFunctionalSpec.scala (99%) rename functional-tests/src/test/scala/{com/lunatech/cmt => coursemgmttools}/StudentificationMovingBetweenExercisesSpec.scala (98%) rename functional-tests/src/test/scala/{com/lunatech/cmt => coursemgmttools}/support/TestSupport.scala (92%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 74a0ecf2..1b8ff21c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,8 +52,8 @@ jobs: - name: Package Binaries run: | mkdir -p course-management-tools-bin/bin - ./coursier bootstrap com.lunatech:cmta_3:${{ env.RELEASE_VERSION }} -o course-management-tools-bin/bin/cmta --standalone --bat - ./coursier bootstrap com.lunatech:cmtc_3:${{ env.RELEASE_VERSION }} -o course-management-tools-bin/bin/cmtc --standalone --bat + ./coursier bootstrap ch.epfl.scala:cmta_3:${{ env.RELEASE_VERSION }} -o course-management-tools-bin/bin/cmta --standalone --bat + ./coursier bootstrap ch.epfl.scala:cmtc_3:${{ env.RELEASE_VERSION }} -o course-management-tools-bin/bin/cmtc --standalone --bat zip -r course-management-tools.zip course-management-tools-bin - name: Upload artefacts diff --git a/build.sbt b/build.sbt index 0f2e4d10..96293176 100644 --- a/build.sbt +++ b/build.sbt @@ -2,10 +2,10 @@ import Build.* inThisBuild( List( - organization := "com.lunatech", - organizationName := "Lunatech", - organizationHomepage := Some(url("https://lunatech.com")), - homepage := Some(url("https://cmt.lunatech.com")), + organization := "ch.epfl.scala", + organizationName := "Scala Center", + organizationHomepage := Some(url("https://scala.epfl.ch")), + homepage := Some(url("https://scala.epfl.ch")), developers := List(Developer("eloots", "Eric Loots", "eric.loots@lunatech.com", url("https://github.com/eloots"))), licenses := Seq("Apache-2.0" -> url("http://www.apache.org/license/LICENSE-2.0")))) @@ -32,7 +32,7 @@ lazy val cmta = project .dependsOn(`cmt-core`, `cmt-core` % "test->test") .settings(commonSettings: _*) .settings(nativeImageSettings: _*) - .settings(Compile / mainClass := Some("com.lunatech.cmt.admin.Main")) + .settings(Compile / mainClass := Some("coursemgmttools.admin.Main")) .settings(buildInfoKeys := buildKeysWithName("cmta:Course Management Tools (Admin)")) lazy val cmtc = project @@ -43,7 +43,7 @@ lazy val cmtc = project .settings(commonSettings: _*) .settings(nativeImageSettings: _*) .settings(libraryDependencies ++= Dependencies.cmtcDependencies) - .settings(Compile / mainClass := Some("com.lunatech.cmt.client.Main")) + .settings(Compile / mainClass := Some("coursemgmttools.client.Main")) .settings(buildInfoKeys := buildKeysWithName("Course Management Tools (Client)")) lazy val `functional-tests` = project diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/client/command/Executable.scala b/cmt-core/src/main/scala/com/lunatech/cmt/client/command/Executable.scala deleted file mode 100644 index 16b6f08e..00000000 --- a/cmt-core/src/main/scala/com/lunatech/cmt/client/command/Executable.scala +++ /dev/null @@ -1,7 +0,0 @@ -package com.lunatech.cmt.client.command - -import com.lunatech.cmt.CmtError -import com.lunatech.cmt.client.Configuration - -trait Executable[T]: - extension (t: T) def execute(configuration: Configuration): Either[CmtError, String] diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/CMTaConfig.scala b/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala similarity index 99% rename from cmt-core/src/main/scala/com/lunatech/cmt/CMTaConfig.scala rename to cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala index 451c902d..151d9d8f 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/CMTaConfig.scala +++ b/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/CMTcConfig.scala b/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala similarity index 99% rename from cmt-core/src/main/scala/com/lunatech/cmt/CMTcConfig.scala rename to cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala index 09bd0731..dad95ff7 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/CMTcConfig.scala +++ b/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/ConsoleFunctions.scala b/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala similarity index 98% rename from cmt-core/src/main/scala/com/lunatech/cmt/ConsoleFunctions.scala rename to cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala index 90314d35..60cf94ec 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/ConsoleFunctions.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Domain.scala b/cmt-core/src/main/scala/coursemgmttools/Domain.scala similarity index 96% rename from cmt-core/src/main/scala/com/lunatech/cmt/Domain.scala rename to cmt-core/src/main/scala/coursemgmttools/Domain.scala index 263c21f8..84c109b2 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Domain.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Domain.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools import sbt.io.syntax.{File, file} diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Error.scala b/cmt-core/src/main/scala/coursemgmttools/Error.scala similarity index 99% rename from cmt-core/src/main/scala/com/lunatech/cmt/Error.scala rename to cmt-core/src/main/scala/coursemgmttools/Error.scala index ed7d7407..b341e64c 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Error.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Error.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools sealed trait CmtError { def prettyPrint: String diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/ExerciseMetadata.scala b/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala similarity index 96% rename from cmt-core/src/main/scala/com/lunatech/cmt/ExerciseMetadata.scala rename to cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala index 0e9b31c4..e90e89a2 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/ExerciseMetadata.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools import java.util.Map.Entry import scala.jdk.CollectionConverters.* diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Filters.scala b/cmt-core/src/main/scala/coursemgmttools/Filters.scala similarity index 97% rename from cmt-core/src/main/scala/com/lunatech/cmt/Filters.scala rename to cmt-core/src/main/scala/coursemgmttools/Filters.scala index 5efdfb75..996f1700 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Filters.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Filters.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Helpers.scala b/cmt-core/src/main/scala/coursemgmttools/Helpers.scala similarity index 99% rename from cmt-core/src/main/scala/com/lunatech/cmt/Helpers.scala rename to cmt-core/src/main/scala/coursemgmttools/Helpers.scala index 2cfe5cea..092463ce 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Helpers.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Helpers.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.ProcessDSL.ProcessCmd -import com.lunatech.cmt.core.GeneratorInfo -import com.lunatech.cmt.core.command.Package.* +import coursemgmttools.ProcessDSL.ProcessCmd +import coursemgmttools.core.GeneratorInfo +import coursemgmttools.core.command.Package.* import com.typesafe.config.{ConfigFactory, ConfigRenderOptions} import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/ProcessDSL.scala b/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala similarity index 93% rename from cmt-core/src/main/scala/com/lunatech/cmt/ProcessDSL.scala rename to cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala index 4b79c0d2..7ee8ba16 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/ProcessDSL.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.toExecuteCommandErrorMessage +import coursemgmttools.toExecuteCommandErrorMessage import sbt.io.syntax.* -import com.lunatech.cmt.Helpers.ignoreProcessStdOutStdErr +import coursemgmttools.Helpers.ignoreProcessStdOutStdErr import scala.sys.process.Process import scala.util.{Failure, Success, Try} diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Releasables.scala b/cmt-core/src/main/scala/coursemgmttools/Releasables.scala similarity index 93% rename from cmt-core/src/main/scala/com/lunatech/cmt/Releasables.scala rename to cmt-core/src/main/scala/coursemgmttools/Releasables.scala index 6d0aaf8d..0696ebb8 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Releasables.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Releasables.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/Validations.scala b/cmt-core/src/main/scala/coursemgmttools/Validations.scala similarity index 96% rename from cmt-core/src/main/scala/com/lunatech/cmt/Validations.scala rename to cmt-core/src/main/scala/coursemgmttools/Validations.scala index 19ca0644..61502510 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/Validations.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Validations.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,7 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.{FileValidations, IntValidations, StringValidations} +//import coursemgmttools.{FileValidations, IntValidations, StringValidations} import sbt.io.syntax.File object ValidationExtensions: diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/client/Configuration.scala b/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala similarity index 93% rename from cmt-core/src/main/scala/com/lunatech/cmt/client/Configuration.scala rename to cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala index 9666fa88..86f25a03 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/client/Configuration.scala +++ b/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala @@ -1,9 +1,9 @@ -package com.lunatech.cmt.client +package coursemgmttools.client -import com.lunatech.cmt.Helpers.{adaptToNixSeparatorChar, adaptToOSSeparatorChar} -import com.lunatech.cmt.client.Configuration.* -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.{CmtError, FailedToWriteGlobalConfiguration, printMessage} +import coursemgmttools.Helpers.{adaptToNixSeparatorChar, adaptToOSSeparatorChar} +import coursemgmttools.client.Configuration.* +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.{CmtError, FailedToWriteGlobalConfiguration, printMessage} import com.typesafe.config.{Config, ConfigFactory} import dev.dirs.ProjectDirectories import sbt.io.IO.* @@ -46,7 +46,7 @@ object Configuration: private val projectDirectories = ProjectDirectories.from("com", "lunatech", "cmt") val UserConfigDir = projectDirectories.configDir - val CmtGlobalConfigName = "com.lunatech.cmt.conf" + val CmtGlobalConfigName = "coursemgmttools.conf" val CoursesDirectoryToken = "COURSES_DIRECTORY" val CurrentCourseToken = "CURRENT_COURSE" val CmtHomeEnvKey = "CMT_HOME" diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/client/cli/CmtcCommand.scala b/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala similarity index 69% rename from cmt-core/src/main/scala/com/lunatech/cmt/client/cli/CmtcCommand.scala rename to cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala index 749a8b56..903d150e 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/client/cli/CmtcCommand.scala +++ b/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala @@ -1,11 +1,11 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli import caseapp.core.help.Help import caseapp.core.parser.Parser import cats.syntax.either.* -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.core.cli.CmtCommand -import com.lunatech.cmt.printErrorAndExit +import coursemgmttools.client.Configuration +import coursemgmttools.core.cli.CmtCommand +import coursemgmttools.printErrorAndExit abstract class CmtcCommand[T](using parser: Parser[T], help: Help[T]) extends CmtCommand[T] { diff --git a/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala b/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala new file mode 100644 index 00000000..54e7431b --- /dev/null +++ b/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala @@ -0,0 +1,7 @@ +package coursemgmttools.client.command + +import coursemgmttools.CmtError +import coursemgmttools.client.Configuration + +trait Executable[T]: + extension (t: T) def execute(configuration: Configuration): Either[CmtError, String] diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/GeneratorInfo.scala b/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala similarity index 72% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/GeneratorInfo.scala rename to cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala index c6f7f110..4ab8b448 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/GeneratorInfo.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala @@ -1,3 +1,3 @@ -package com.lunatech.cmt.core +package coursemgmttools.core final case class GeneratorInfo(generatorName: String, generatorVersion: String) diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/cli/ArgParsers.scala b/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala similarity index 92% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/cli/ArgParsers.scala rename to cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala index d80cd035..34634877 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/cli/ArgParsers.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala @@ -1,13 +1,13 @@ -package com.lunatech.cmt.core.cli +package coursemgmttools.core.cli import caseapp.core.Error import caseapp.core.Error.Other import caseapp.core.argparser.{ArgParser, SimpleArgParser} import cats.syntax.apply.* import cats.syntax.either.* -import com.lunatech.cmt.Domain.{InstallationSource, StudentifiedRepo} -import com.lunatech.cmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import com.lunatech.cmt.core.validation.FileValidations.* +import coursemgmttools.Domain.{InstallationSource, StudentifiedRepo} +import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmttools.core.validation.FileValidations.* import sbt.io.syntax.{File, file} object ArgParsers: diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/cli/CmtCommand.scala b/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala similarity index 95% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/cli/CmtCommand.scala rename to cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala index 3555bf08..3f59b95e 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/cli/CmtCommand.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala @@ -1,10 +1,10 @@ -package com.lunatech.cmt.core.cli +package coursemgmttools.core.cli import caseapp.{Command, RemainingArgs} import caseapp.core.Error import caseapp.core.help.Help import caseapp.core.parser.Parser -import com.lunatech.cmt.{ +import coursemgmttools.{ CmtError, MissingTrailingArguments, NoTrailingArguments, diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/command/Package.scala b/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala similarity index 90% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/command/Package.scala rename to cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala index 5bfbd815..c7c6c8b9 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/command/Package.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.core.command +package coursemgmttools.core.command import sbt.io.syntax.File import sbt.io.IO as sbtio diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/execution/Executable.scala b/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala similarity index 91% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/execution/Executable.scala rename to cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala index e03c7af2..f222c58f 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/execution/Executable.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.core.execution +package coursemgmttools.core.execution /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,7 @@ package com.lunatech.cmt.core.execution * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.CmtError +import coursemgmttools.CmtError trait Executable[T]: extension (t: T) def execute(): Either[CmtError, String] diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/validation/FileValidations.scala b/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala similarity index 93% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/validation/FileValidations.scala rename to cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala index 7c0e13b2..cbfc6e3e 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/validation/FileValidations.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala @@ -1,9 +1,9 @@ -package com.lunatech.cmt.core.validation +package coursemgmttools.core.validation import caseapp.core.Error import cats.data.{NonEmptyList, ValidatedNel} import cats.syntax.either.* -import com.lunatech.cmt.Helpers +import coursemgmttools.Helpers import sbt.io.syntax.File object FileValidations: diff --git a/cmt-core/src/main/scala/com/lunatech/cmt/core/validation/Validatable.scala b/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala similarity index 51% rename from cmt-core/src/main/scala/com/lunatech/cmt/core/validation/Validatable.scala rename to cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala index d238b1ef..6c88eb3e 100644 --- a/cmt-core/src/main/scala/com/lunatech/cmt/core/validation/Validatable.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala @@ -1,6 +1,6 @@ -package com.lunatech.cmt.core.validation +package coursemgmttools.core.validation -import com.lunatech.cmt.CmtError +import coursemgmttools.CmtError trait Validatable[T]: extension (t: T) def validated(): Either[CmtError, T] diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/client/ConfigurationSpec.scala b/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala similarity index 85% rename from cmt-core/src/test/scala/com/lunatech/cmt/client/ConfigurationSpec.scala rename to cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala index c2844725..8884a534 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/client/ConfigurationSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala @@ -1,8 +1,8 @@ -package com.lunatech.cmt.client +package coursemgmttools.client -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Configuration.CmtHome -import com.lunatech.cmt.support.EitherSupport +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Configuration.CmtHome +import coursemgmttools.support.EitherSupport import dev.dirs.ProjectDirectories import org.scalatest.BeforeAndAfterEach import org.scalatest.matchers.should.Matchers @@ -27,7 +27,7 @@ final class ConfigurationSpec extends AnyWordSpecLike with Matchers with BeforeA // other specs _may_ have run before this one and already created the config file // so that's why we ensure that the cmt config file is removed before we execute // otherwise, if the file exists, it will likely not contain default values and the assertion below will fail - sbtio.delete(configDir / "com.lunatech.cmt.conf") + sbtio.delete(configDir / "coursemgmttools.conf") val receivedConfiguration = assertRight(Configuration.load()) diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/client/command/InstallSpec.scala b/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala similarity index 89% rename from cmt-core/src/test/scala/com/lunatech/cmt/client/command/InstallSpec.scala rename to cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala index 6d38346d..42eb3b3e 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/client/command/InstallSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpecLike diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/core/cli/CmtCommandSpec.scala b/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala similarity index 92% rename from cmt-core/src/test/scala/com/lunatech/cmt/core/cli/CmtCommandSpec.scala rename to cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala index cf00a1ab..3d65c588 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/core/cli/CmtCommandSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.core.cli +package coursemgmttools.core.cli //import caseapp.core.{Indexed, RemainingArgs} import org.scalatest.wordspec.AnyWordSpecLike diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/support/CommandLineParseTestBase.scala b/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala similarity index 97% rename from cmt-core/src/test/scala/com/lunatech/cmt/support/CommandLineParseTestBase.scala rename to cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala index bbe71bb9..11ba10a1 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/support/CommandLineParseTestBase.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.support +package coursemgmttools.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -24,7 +24,7 @@ import org.scalatest.wordspec.AnyWordSpecLike import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.* -import com.lunatech.cmt.{CmtError, toCmtError} +import coursemgmttools.{CmtError, toCmtError} import scala.language.postfixOps diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/support/EitherSupport.scala b/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala similarity index 97% rename from cmt-core/src/test/scala/com/lunatech/cmt/support/EitherSupport.scala rename to cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala index e2c9ffff..ae22ce86 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/support/EitherSupport.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.support +package coursemgmttools.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/support/ExtractUniquePathsSpec.scala b/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala similarity index 95% rename from cmt-core/src/test/scala/com/lunatech/cmt/support/ExtractUniquePathsSpec.scala rename to cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala index d2ef20d8..9df4cd43 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/support/ExtractUniquePathsSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.support +package coursemgmttools.support import org.scalatest.wordspec.AnyWordSpec import org.scalatest.matchers.should.Matchers @@ -14,7 +14,7 @@ trait ExtractUniquePathsFixture { final class ExtractUniquePathsSpec extends AnyWordSpec with Matchers with ExtractUniquePathsFixture { - import com.lunatech.cmt.Helpers.extractUniquePaths + import coursemgmttools.Helpers.extractUniquePaths "extractUniquePaths" when { "given a series of paths that don't share any common prefix" should { diff --git a/cmt-core/src/test/scala/com/lunatech/cmt/support/TestDirectories.scala b/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala similarity index 92% rename from cmt-core/src/test/scala/com/lunatech/cmt/support/TestDirectories.scala rename to cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala index fb4b7300..3be9dbb8 100644 --- a/cmt-core/src/test/scala/com/lunatech/cmt/support/TestDirectories.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.support +package coursemgmttools.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package com.lunatech.cmt.support * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.Helpers +import coursemgmttools.Helpers import sbt.io.syntax.{File, file} -import com.lunatech.cmt.Helpers.adaptToOSSeparatorChar +import coursemgmttools.Helpers.adaptToOSSeparatorChar trait TestDirectories { diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/Domain.scala b/cmta/src/main/scala/coursemgmttools/admin/Domain.scala similarity index 94% rename from cmta/src/main/scala/com/lunatech/cmt/admin/Domain.scala rename to cmta/src/main/scala/coursemgmttools/admin/Domain.scala index 72b93002..0ead7c03 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/Domain.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/Domain.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin +package coursemgmttools.admin /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,12 +13,12 @@ package com.lunatech.cmt.admin * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.CmtError +import coursemgmttools.CmtError import sbt.io.syntax.File -import com.lunatech.cmt.* +import coursemgmttools.* import cats.syntax.either.* -import com.lunatech.cmt.Domain.InstallationSource +import coursemgmttools.Domain.InstallationSource object Domain: diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/Main.scala b/cmta/src/main/scala/coursemgmttools/admin/Main.scala similarity index 93% rename from cmta/src/main/scala/com/lunatech/cmt/admin/Main.scala rename to cmta/src/main/scala/coursemgmttools/admin/Main.scala index 20405a16..9184c5a4 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/Main.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/Main.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin +package coursemgmttools.admin /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,7 +14,7 @@ package com.lunatech.cmt.admin */ import caseapp.core.app.CommandsEntryPoint -import com.lunatech.cmt.admin.command.{ +import coursemgmttools.admin.command.{ Delinearize, DuplicateInsertBefore, Linearize, diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/TargetFolderValidation.scala b/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala similarity index 87% rename from cmta/src/main/scala/com/lunatech/cmt/admin/TargetFolderValidation.scala rename to cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala index a27af8eb..dd7246eb 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/TargetFolderValidation.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala @@ -1,8 +1,8 @@ -package com.lunatech.cmt.admin +package coursemgmttools.admin -import com.lunatech.cmt.CmtError +import coursemgmttools.CmtError import java.io.File -import com.lunatech.cmt.toExecuteCommandErrorMessage +import coursemgmttools.toExecuteCommandErrorMessage def validateDestinationFolder(mainRepository: File, destination: File): Either[CmtError, Unit] = val canonicalTarget = destination.getCanonicalPath diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/cli/ArgParsers.scala b/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala similarity index 95% rename from cmta/src/main/scala/com/lunatech/cmt/admin/cli/ArgParsers.scala rename to cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala index cfb674b1..859f4b3d 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/cli/ArgParsers.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala @@ -1,9 +1,9 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli import caseapp.core.argparser.{ArgParser, FlagArgParser, SimpleArgParser} import cats.syntax.apply.* -import com.lunatech.cmt.admin.Domain.* -import com.lunatech.cmt.core.validation.FileValidations.* +import coursemgmttools.admin.Domain.* +import coursemgmttools.core.validation.FileValidations.* import sbt.io.syntax.file import caseapp.core.Error import cats.syntax.either.* diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/cli/SharedOptions.scala b/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala similarity index 79% rename from cmta/src/main/scala/com/lunatech/cmt/admin/cli/SharedOptions.scala rename to cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala index 1d54be0a..552e6d60 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/cli/SharedOptions.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala @@ -1,8 +1,8 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli import caseapp.{ExtraName, Help, HelpMessage, Parser, ValueDescription} -import com.lunatech.cmt.admin.Domain.{ConfigurationFile, MainRepository} -import com.lunatech.cmt.admin.cli.ArgParsers.{configurationFileArgParser, mainRepositoryArgParser} +import coursemgmttools.admin.Domain.{ConfigurationFile, MainRepository} +import coursemgmttools.admin.cli.ArgParsers.{configurationFileArgParser, mainRepositoryArgParser} final case class SharedOptions( @ExtraName("m") diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Delinearize.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala similarity index 91% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/Delinearize.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala index 26934f4b..fe691657 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Delinearize.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala @@ -1,17 +1,17 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import com.lunatech.cmt.* -import com.lunatech.cmt.Helpers.* -import com.lunatech.cmt.ProcessDSL.toProcessCmd -import com.lunatech.cmt.admin.Domain.LinearizeBaseDirectory -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.* +import coursemgmttools.Helpers.* +import coursemgmttools.ProcessDSL.toProcessCmd +import coursemgmttools.admin.Domain.LinearizeBaseDirectory +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.core.execution.Executable +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser -import com.lunatech.cmt.core.cli.CmtCommand +import coursemgmttools.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser +import coursemgmttools.core.cli.CmtCommand object Delinearize: diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/DuplicateInsertBefore.scala b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala similarity index 90% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/DuplicateInsertBefore.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala index 1d01d465..23d48fa2 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/DuplicateInsertBefore.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala @@ -1,21 +1,21 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command -import com.lunatech.cmt.* +import coursemgmttools.* import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import com.lunatech.cmt.Helpers.{ +import coursemgmttools.Helpers.{ ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean } -import com.lunatech.cmt.admin.Domain.{ExerciseNumber, RenumberOffset, RenumberStart, RenumberStep} -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.admin.Domain.{ExerciseNumber, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.core.execution.Executable +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.admin.cli.ArgParsers.exerciseNumberArgParser -import com.lunatech.cmt.core.cli.CmtCommand +import coursemgmttools.admin.cli.ArgParsers.exerciseNumberArgParser +import coursemgmttools.core.cli.CmtCommand object DuplicateInsertBefore: diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Linearize.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala similarity index 87% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/Linearize.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala index be56c088..8d909193 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Linearize.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala @@ -1,15 +1,15 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import com.lunatech.cmt.Helpers.* -import com.lunatech.cmt.{CMTaConfig, CmtError, printResult, toConsoleGreen} -import com.lunatech.cmt.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} -import com.lunatech.cmt.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.admin.validateDestinationFolder -import com.lunatech.cmt.core.cli.CmtCommand -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.Helpers.* +import coursemgmttools.{CMTaConfig, CmtError, printResult, toConsoleGreen} +import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} +import coursemgmttools.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.admin.validateDestinationFolder +import coursemgmttools.core.cli.CmtCommand +import coursemgmttools.core.execution.Executable +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/New.scala b/cmta/src/main/scala/coursemgmttools/admin/command/New.scala similarity index 91% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/New.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/New.scala index cd50f9c9..650aca59 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/New.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/New.scala @@ -1,18 +1,18 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs, ValueDescription} -import com.lunatech.cmt.{CmtError, printResult} -import com.lunatech.cmt.admin.Domain.{ConfigurationFile, CourseTemplate} -import com.lunatech.cmt.client.command.Executable -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.admin.cli.ArgParsers.{configurationFileArgParser, courseTemplateArgParser} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.Domain.InstallationSource.* -import com.lunatech.cmt.Helpers.ignoreProcessStdOutStdErr +import coursemgmttools.{CmtError, printResult} +import coursemgmttools.admin.Domain.{ConfigurationFile, CourseTemplate} +import coursemgmttools.client.command.Executable +import coursemgmttools.core.validation.Validatable +import coursemgmttools.admin.cli.ArgParsers.{configurationFileArgParser, courseTemplateArgParser} +import coursemgmttools.client.Configuration +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.Domain.InstallationSource.* +import coursemgmttools.Helpers.ignoreProcessStdOutStdErr import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.* +import coursemgmttools.* import cats.syntax.either.* diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Package.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala similarity index 76% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/Package.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/Package.scala index c0b3fe1e..93e8cb2a 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Package.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala @@ -1,6 +1,6 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command -import com.lunatech.cmt.Helpers.extractExerciseNr +import coursemgmttools.Helpers.extractExerciseNr def renumberExercise(exercise: String, exercisePrefix: String, newNumber: Int): String = val newNumberPrefix = f"${exercisePrefix}_$newNumber%03d_" val oldNumberPrefix = diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/RenumberExercises.scala b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala similarity index 90% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/RenumberExercises.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala index fa9c0dcc..421e3a74 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/RenumberExercises.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala @@ -1,22 +1,22 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import com.lunatech.cmt.{CMTaConfig, CmtError, printResult} -import com.lunatech.cmt.Helpers.{ +import coursemgmttools.{CMTaConfig, CmtError, printResult} +import coursemgmttools.Helpers.{ ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean } -import com.lunatech.cmt.admin.Domain.{RenumberOffset, RenumberStart, RenumberStep} -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.admin.cli.ArgParsers.{renumberOffsetArgParser, renumberStartArgParser, renumberStepArgParser} -import com.lunatech.cmt.core.cli.CmtCommand -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.admin.Domain.{RenumberOffset, RenumberStart, RenumberStep} +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.core.execution.Executable +import coursemgmttools.admin.cli.ArgParsers.{renumberOffsetArgParser, renumberStartArgParser, renumberStepArgParser} +import coursemgmttools.core.cli.CmtCommand +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.toExecuteCommandErrorMessage +import coursemgmttools.toExecuteCommandErrorMessage object RenumberExercises: diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Studentify.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala similarity index 90% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/Studentify.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala index 5689413d..c83ac8c7 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Studentify.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala @@ -1,27 +1,27 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Name, Recurse, RemainingArgs, ValueDescription} -import com.lunatech.cmt.Helpers.* -import com.lunatech.cmt.admin.Domain.{ +import coursemgmttools.Helpers.* +import coursemgmttools.admin.Domain.{ ForceDeleteDestinationDirectory, InitializeGitRepo, MainRepository, StudentifyBaseDirectory } -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.{CMTaConfig, CmtError, printResult, toConsoleGreen} +import coursemgmttools.core.execution.Executable +import coursemgmttools.{CMTaConfig, CmtError, printResult, toConsoleGreen} import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.admin.validateDestinationFolder -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.admin.cli.ArgParsers.{ +import coursemgmttools.admin.validateDestinationFolder +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.core.validation.Validatable +import coursemgmttools.admin.cli.ArgParsers.{ forceDeleteDestinationDirectoryArgParser, initializeGitRepoArgParser, studentifyBaseDirectoryArgParser } -import com.lunatech.cmt.core.GeneratorInfo -import com.lunatech.cmt.core.cli.CmtCommand +import coursemgmttools.core.GeneratorInfo +import coursemgmttools.core.cli.CmtCommand object Studentify: @@ -69,7 +69,7 @@ object Studentify: if (redundantPaths.nonEmpty) for (redundantPath <- redundantPaths) println( - com.lunatech.cmt + coursemgmttools .toConsoleYellow(s"WARNING: Redundant path detected in CMT configuration: $redundantPath")) checkForOverlappingPathsInConfig() @@ -132,7 +132,7 @@ object Studentify: hideExercises(cleanedMainRepo, solutionsFolder, exercises)(config) - import com.lunatech.cmt.version.BuildInfo + import coursemgmttools.version.BuildInfo val generatorInfo = GeneratorInfo(BuildInfo.name, BuildInfo.version) writeStudentifiedCMTConfig(studentifiedRootFolder / config.cmtStudentifiedConfigFile, exercises)( config, diff --git a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Version.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala similarity index 71% rename from cmta/src/main/scala/com/lunatech/cmt/admin/command/Version.scala rename to cmta/src/main/scala/coursemgmttools/admin/command/Version.scala index 9e49f0ab..bdfcd90d 100644 --- a/cmta/src/main/scala/com/lunatech/cmt/admin/command/Version.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala @@ -1,12 +1,12 @@ -package com.lunatech.cmt.admin.command +package coursemgmttools.admin.command import caseapp.{AppName, CommandName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.CmtError -import com.lunatech.cmt.core.cli.CmtCommand -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.printResult -import com.lunatech.cmt.version.BuildInfo +import coursemgmttools.CmtError +import coursemgmttools.core.cli.CmtCommand +import coursemgmttools.core.execution.Executable +import coursemgmttools.core.validation.Validatable +import coursemgmttools.printResult +import coursemgmttools.version.BuildInfo object Version: @AppName("version") @CommandName("version") diff --git a/cmta/src/test/scala/com/lunatech/cmt/RenumberExercisesSpec.scala b/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala similarity index 97% rename from cmta/src/test/scala/com/lunatech/cmt/RenumberExercisesSpec.scala rename to cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala index e4a98792..7996f6d7 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/RenumberExercisesSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,10 +13,10 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.TestHelpers.getExercisePrefixAndExercises -import com.lunatech.cmt.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.admin.command.RenumberExercises +import coursemgmttools.TestHelpers.getExercisePrefixAndExercises +import coursemgmttools.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.admin.command.RenumberExercises import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec diff --git a/cmta/src/test/scala/com/lunatech/cmt/TestHelpers.scala b/cmta/src/test/scala/coursemgmttools/TestHelpers.scala similarity index 98% rename from cmta/src/test/scala/com/lunatech/cmt/TestHelpers.scala rename to cmta/src/test/scala/coursemgmttools/TestHelpers.scala index e068e3b8..d4d5ef0a 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/TestHelpers.scala +++ b/cmta/src/test/scala/coursemgmttools/TestHelpers.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/CommandLineArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala similarity index 94% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/CommandLineArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala index 601cca98..e32556e0 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/CommandLineArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala @@ -1,9 +1,9 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli import caseapp.Parser import caseapp.core.Error.{RequiredOptionNotSpecified, SeveralErrors} -import com.lunatech.cmt.CmtError -import com.lunatech.cmt.support.EitherSupport +import coursemgmttools.CmtError +import coursemgmttools.support.EitherSupport import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.prop.TableFor2 @@ -12,7 +12,7 @@ import org.scalatest.prop.Tables.Table import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.File -import com.lunatech.cmt.toCmtError +import coursemgmttools.toCmtError abstract class CommandLineArgumentsSpec[T] extends AnyWordSpecLike diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/DelinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala similarity index 90% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/DelinearizeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala index b58184b3..5627fe97 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/DelinearizeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package com.lunatech.cmt.admin.cli */ import caseapp.Parser -import com.lunatech.cmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import com.lunatech.cmt.admin.Domain.{LinearizeBaseDirectory, MainRepository} -import com.lunatech.cmt.admin.command.Delinearize -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmttools.admin.Domain.{LinearizeBaseDirectory, MainRepository} +import coursemgmttools.admin.command.Delinearize +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} -import com.lunatech.cmt.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser +import coursemgmttools.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser final class DelinearizeArgumentsSpec extends CommandLineArgumentsSpec[Delinearize.Options] with TestDirectories { diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala similarity index 88% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala index 7b1d5aac..f1632e79 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package com.lunatech.cmt.admin.cli */ import caseapp.Parser -import com.lunatech.cmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import com.lunatech.cmt.admin.Domain.{ExerciseNumber, MainRepository} -import com.lunatech.cmt.admin.command.DuplicateInsertBefore -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmttools.admin.Domain.{ExerciseNumber, MainRepository} +import coursemgmttools.admin.command.DuplicateInsertBefore +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} -import com.lunatech.cmt.admin.cli.ArgParsers.exerciseNumberArgParser +import coursemgmttools.admin.cli.ArgParsers.exerciseNumberArgParser final class DuplicateInsertBeforeArgumentsSpec extends CommandLineArgumentsSpec[DuplicateInsertBefore.Options] diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/LinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala similarity index 88% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/LinearizeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala index e27f1408..f53bbda8 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/LinearizeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package com.lunatech.cmt.admin.cli */ import caseapp.Parser -import com.lunatech.cmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import com.lunatech.cmt.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} -import com.lunatech.cmt.admin.command.Linearize -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} +import coursemgmttools.admin.command.Linearize +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} -import com.lunatech.cmt.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} +import coursemgmttools.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} final class LinearizeArgumentsSpec extends CommandLineArgumentsSpec[Linearize.Options] with TestDirectories { diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/RenumberArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala similarity index 87% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/RenumberArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala index 8af45039..223e8889 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/RenumberArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package com.lunatech.cmt.admin.cli */ import caseapp.Parser -import com.lunatech.cmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import com.lunatech.cmt.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} -import com.lunatech.cmt.admin.command.RenumberExercises -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmttools.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmttools.admin.command.RenumberExercises +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} -import com.lunatech.cmt.admin.cli.ArgParsers.{renumberStepArgParser, renumberOffsetArgParser, renumberStartArgParser} +import coursemgmttools.admin.cli.ArgParsers.{renumberStepArgParser, renumberOffsetArgParser, renumberStartArgParser} final class RenumberArgumentsSpec extends CommandLineArgumentsSpec[RenumberExercises.Options] with TestDirectories { diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/StudentifyArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala similarity index 95% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/StudentifyArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala index 8d11aa39..b6514239 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/StudentifyArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,20 +14,20 @@ package com.lunatech.cmt.admin.cli */ import caseapp.Parser -import com.lunatech.cmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import com.lunatech.cmt.admin.command.Studentify -import com.lunatech.cmt.admin.cli.ArgParsers.{ +import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmttools.admin.command.Studentify +import coursemgmttools.admin.cli.ArgParsers.{ initializeGitRepoArgParser, forceDeleteDestinationDirectoryArgParser, studentifyBaseDirectoryArgParser } -import com.lunatech.cmt.admin.Domain.{ +import coursemgmttools.admin.Domain.{ ForceDeleteDestinationDirectory, InitializeGitRepo, MainRepository, StudentifyBaseDirectory } -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} final class StudentifyArgumentsSpec extends CommandLineArgumentsSpec[Studentify.Options] with TestDirectories { diff --git a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/VersionArguments.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala similarity index 83% rename from cmta/src/test/scala/com/lunatech/cmt/admin/cli/VersionArguments.scala rename to cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala index 5826c9e0..b89dabfe 100644 --- a/cmta/src/test/scala/com/lunatech/cmt/admin/cli/VersionArguments.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.admin.cli +package coursemgmttools.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.admin.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} //import org.scalatest.prop.Tables //import sbt.io.syntax.File diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/Domain.scala b/cmtc/src/main/scala/coursemgmttools/client/Domain.scala similarity index 97% rename from cmtc/src/main/scala/com/lunatech/cmt/client/Domain.scala rename to cmtc/src/main/scala/coursemgmttools/client/Domain.scala index 14e94d7b..8ec4558d 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/Domain.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/Domain.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client +package coursemgmttools.client /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/Main.scala b/cmtc/src/main/scala/coursemgmttools/client/Main.scala similarity index 95% rename from cmtc/src/main/scala/com/lunatech/cmt/client/Main.scala rename to cmtc/src/main/scala/coursemgmttools/client/Main.scala index 44f62b7a..b0e60687 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/Main.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/Main.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client +package coursemgmttools.client /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,7 +14,7 @@ package com.lunatech.cmt.client */ import caseapp.core.app.CommandsEntryPoint -import com.lunatech.cmt.client.command.{ +import coursemgmttools.client.command.{ GotoExercise, GotoFirstExercise, Install, diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/cli/ArgParsers.scala b/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala similarity index 83% rename from cmtc/src/main/scala/com/lunatech/cmt/client/cli/ArgParsers.scala rename to cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala index 1e53f39e..517db4bb 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/cli/ArgParsers.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli import caseapp.core.argparser.{ArgParser, FlagArgParser, SimpleArgParser} -import com.lunatech.cmt.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath, ForceDeleteDestinationDirectory} +import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath, ForceDeleteDestinationDirectory} import cats.syntax.either.* object ArgParsers { diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala similarity index 83% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoExercise.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala index 68e7ec02..8ee26d1c 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.{ +import coursemgmttools.{ CMTcConfig, CmtError, printResult, @@ -9,17 +9,17 @@ import com.lunatech.cmt.{ toConsoleYellow, toExecuteCommandErrorMessage } -import com.lunatech.cmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.client.Domain.{ExerciseId, ForceMoveToExercise} -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Configuration +import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmttools.core.validation.Validatable import sbt.io.syntax.* -import com.lunatech.cmt.client.cli.ArgParsers.{exerciseIdArgParser, forceMoveToExerciseArgParser} -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.enforceTrailingArgumentCount -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.client.cli.ArgParsers.{exerciseIdArgParser, forceMoveToExerciseArgParser} +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.enforceTrailingArgumentCount +import coursemgmttools.core.command.Package.getCurrentExerciseId object GotoExercise: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoFirstExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala similarity index 73% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoFirstExercise.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala index e9722bd5..99d0465f 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/GotoFirstExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala @@ -1,15 +1,15 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.{CMTcConfig, CmtError, printResult} -import com.lunatech.cmt.client.Domain.{ExerciseId, ForceMoveToExercise} -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.client.cli.ArgParsers.forceMoveToExerciseArgParser -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments +import coursemgmttools.client.Configuration +import coursemgmttools.{CMTcConfig, CmtError, printResult} +import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.core.validation.Validatable +import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.enforceNoTrailingArguments object GotoFirstExercise: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Install.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala similarity index 92% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/Install.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/Install.scala index c0d1e194..0d2a15b9 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Install.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala @@ -1,21 +1,21 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.* import cats.syntax.either.* -import com.lunatech.cmt.* -import com.lunatech.cmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import com.lunatech.cmt.Domain.{InstallationSource, StudentifiedRepo} -import com.lunatech.cmt.Helpers.{findStudentRepoRoot, ignoreProcessStdOutStdErr} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.ArgParsers.installationSourceArgParser -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.client.Domain.ForceDeleteDestinationDirectory +import coursemgmttools.* +import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmttools.Domain.{InstallationSource, StudentifiedRepo} +import coursemgmttools.Helpers.{findStudentRepoRoot, ignoreProcessStdOutStdErr} +import coursemgmttools.client.Configuration +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.ArgParsers.installationSourceArgParser +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.validation.Validatable +import coursemgmttools.client.Domain.ForceDeleteDestinationDirectory import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser -import com.lunatech.cmt.Releasables.{*, given} +import coursemgmttools.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser +import coursemgmttools.Releasables.{*, given} import sys.process.* import scala.util.{Failure, Success, Try} diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/ListExercises.scala b/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala similarity index 72% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/ListExercises.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala index d16f8ab9..1b8b0f8a 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/ListExercises.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala @@ -1,14 +1,14 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.{CMTcConfig, CmtError, printResult} -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.Helpers.listExercises +import coursemgmttools.client.Configuration +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.{CMTcConfig, CmtError, printResult} +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.validation.Validatable +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.Helpers.listExercises object ListExercises: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/ListSavedStates.scala b/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala similarity index 78% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/ListSavedStates.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala index b1fdb836..986cb2ff 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/ListSavedStates.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala @@ -1,14 +1,14 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.client.Configuration +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser object ListSavedStates: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/NextExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala similarity index 83% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/NextExercise.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala index 52ac9140..b8bcdddb 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/NextExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.{ +import coursemgmttools.{ CMTcConfig, CmtError, printResult, @@ -9,17 +9,17 @@ import com.lunatech.cmt.{ toConsoleYellow, toExecuteCommandErrorMessage } -import com.lunatech.cmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.client.Domain.ForceMoveToExercise -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Configuration +import coursemgmttools.client.Domain.ForceMoveToExercise +import coursemgmttools.core.validation.Validatable import sbt.io.syntax.* -import com.lunatech.cmt.client.cli.ArgParsers.forceMoveToExerciseArgParser -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.command.Package.getCurrentExerciseId object NextExercise: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Package.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala similarity index 93% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/Package.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/Package.scala index f950985d..ff8281be 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Package.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command -import com.lunatech.cmt.{CMTcConfig, Helpers} -import com.lunatech.cmt.Helpers.writeStudentifiedCMTBookmark +import coursemgmttools.{CMTcConfig, Helpers} +import coursemgmttools.Helpers.writeStudentifiedCMTBookmark import sbt.io.syntax.* import sbt.io.IO as sbtio diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PreviousExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala similarity index 81% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/PreviousExercise.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala index 72fcf9b6..3572ff3d 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PreviousExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.{ +import coursemgmttools.{ CMTcConfig, CmtError, printResult, @@ -9,17 +9,17 @@ import com.lunatech.cmt.{ toConsoleYellow, toExecuteCommandErrorMessage } -import com.lunatech.cmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Domain.ForceMoveToExercise -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmttools.client.Configuration +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Domain.ForceMoveToExercise +import coursemgmttools.core.validation.Validatable import sbt.io.syntax.* -import com.lunatech.cmt.client.cli.ArgParsers.forceMoveToExerciseArgParser -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.command.Package.getCurrentExerciseId object PreviousExercise: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PullSolution.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala similarity index 79% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/PullSolution.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala index fdfaae59..a52fcf93 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PullSolution.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala @@ -1,17 +1,17 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} -import com.lunatech.cmt.Helpers.{adaptToNixSeparatorChar, exerciseFileHasBeenModified, withZipFile} -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} +import coursemgmttools.Helpers.{adaptToNixSeparatorChar, exerciseFileHasBeenModified, withZipFile} +import coursemgmttools.client.Configuration +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.core.command.Package.getCurrentExerciseId object PullSolution: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PullTemplate.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala similarity index 82% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/PullTemplate.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala index 58f95a3d..0a73913e 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/PullTemplate.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala @@ -1,7 +1,7 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.{ +import coursemgmttools.{ CMTcConfig, CmtError, printResult, @@ -9,19 +9,19 @@ import com.lunatech.cmt.{ toConsoleYellow, toExecuteCommandErrorMessage } -import com.lunatech.cmt.Helpers.withZipFile -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Domain.TemplatePath -import com.lunatech.cmt.core.validation.Validatable +import coursemgmttools.Helpers.withZipFile +import coursemgmttools.client.Configuration +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Domain.TemplatePath +import coursemgmttools.core.validation.Validatable import sbt.io.CopyOptions import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.client.cli.ArgParsers.templatePathArgParser -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.core.cli.enforceTrailingArgumentCount -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.client.cli.ArgParsers.templatePathArgParser +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.core.cli.enforceTrailingArgumentCount +import coursemgmttools.core.command.Package.getCurrentExerciseId object PullTemplate: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/RestoreState.scala b/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala similarity index 81% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/RestoreState.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala index c0504f3f..2b8d1a40 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/RestoreState.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala @@ -1,18 +1,18 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Domain.ExerciseId +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Domain.ExerciseId import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.client.cli.ArgParsers.exerciseIdArgParser -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.command.deleteCurrentState -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.* -import com.lunatech.cmt.client.Configuration -import com.lunatech.cmt.client.cli.CmtcCommand +import coursemgmttools.client.cli.ArgParsers.exerciseIdArgParser +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.command.deleteCurrentState +import coursemgmttools.core.validation.Validatable +import coursemgmttools.* +import coursemgmttools.client.Configuration +import coursemgmttools.client.cli.CmtcCommand import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.core.cli.enforceTrailingArgumentCount +import coursemgmttools.core.cli.enforceTrailingArgumentCount object RestoreState: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/SaveState.scala b/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala similarity index 79% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/SaveState.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala index a72d6444..4e3f4012 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/SaveState.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala @@ -1,18 +1,18 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.Helpers.zipAndDeleteOriginal -import com.lunatech.cmt.client.command.getCurrentExerciseStateExceptDontTouch -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.* -import com.lunatech.cmt.client.Configuration +import coursemgmttools.Helpers.zipAndDeleteOriginal +import coursemgmttools.client.command.getCurrentExerciseStateExceptDontTouch +import coursemgmttools.core.validation.Validatable +import coursemgmttools.* +import coursemgmttools.client.Configuration import Domain.StudentifiedRepo -import com.lunatech.cmt.client.cli.CmtcCommand +import coursemgmttools.client.cli.CmtcCommand import sbt.io.IO as sbtio import sbt.io.syntax.* -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.core.command.Package.getCurrentExerciseId +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.core.command.Package.getCurrentExerciseId object SaveState: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/SetCurrentCourse.scala b/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala similarity index 75% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/SetCurrentCourse.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala index 06eccff3..973e00f4 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/SetCurrentCourse.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala @@ -1,15 +1,15 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.Helpers.findStudentRepoRoot -import com.lunatech.cmt.core.cli.ArgParsers.studentifiedRepoArgParser -import com.lunatech.cmt.client.cli.CmtcCommand -import com.lunatech.cmt.client.{Configuration, CurrentCourse} -import com.lunatech.cmt.Helpers.listExercises -import com.lunatech.cmt.core.cli.enforceNoTrailingArguments -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.{CMTcConfig, CmtError, printResult} +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.Helpers.findStudentRepoRoot +import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmttools.client.cli.CmtcCommand +import coursemgmttools.client.{Configuration, CurrentCourse} +import coursemgmttools.Helpers.listExercises +import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmttools.core.validation.Validatable +import coursemgmttools.{CMTcConfig, CmtError, printResult} import sbt.io.syntax.* object SetCurrentCourse: diff --git a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Version.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala similarity index 71% rename from cmtc/src/main/scala/com/lunatech/cmt/client/command/Version.scala rename to cmtc/src/main/scala/coursemgmttools/client/command/Version.scala index 99e82cdf..05930da5 100644 --- a/cmtc/src/main/scala/com/lunatech/cmt/client/command/Version.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala @@ -1,12 +1,12 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command import caseapp.{AppName, CommandName, HelpMessage, RemainingArgs} -import com.lunatech.cmt.CmtError -import com.lunatech.cmt.core.cli.CmtCommand -import com.lunatech.cmt.core.execution.Executable -import com.lunatech.cmt.core.validation.Validatable -import com.lunatech.cmt.printResult -import com.lunatech.cmt.version.BuildInfo +import coursemgmttools.CmtError +import coursemgmttools.core.cli.CmtCommand +import coursemgmttools.core.execution.Executable +import coursemgmttools.core.validation.Validatable +import coursemgmttools.printResult +import coursemgmttools.version.BuildInfo object Version: @AppName("version") @CommandName("version") diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/CommandLineArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala similarity index 95% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/CommandLineArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala index 01e9fc3d..1c91e739 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/CommandLineArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -15,8 +15,8 @@ package com.lunatech.cmt.client.cli import caseapp.Parser import caseapp.core.Error.{RequiredOptionNotSpecified, SeveralErrors} -import com.lunatech.cmt.CmtError -import com.lunatech.cmt.support.EitherSupport +import coursemgmttools.CmtError +import coursemgmttools.support.EitherSupport import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.prop.TableFor2 @@ -25,7 +25,7 @@ import org.scalatest.prop.Tables.Table import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.File -import com.lunatech.cmt.toCmtError +import coursemgmttools.toCmtError abstract class CommandLineArgumentsSpec[T] extends AnyWordSpecLike diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoExerciseArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala similarity index 81% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoExerciseArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala index f0e10984..d72b931e 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoExerciseArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package com.lunatech.cmt.client.cli */ import caseapp.Parser -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.Domain.{ExerciseId, ForceMoveToExercise} -import com.lunatech.cmt.client.cli.ArgParsers.given -import com.lunatech.cmt.client.command.GotoExercise -import com.lunatech.cmt.core.cli.ArgParsers.given -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmttools.client.cli.ArgParsers.given +import coursemgmttools.client.command.GotoExercise +import coursemgmttools.core.cli.ArgParsers.given +import coursemgmttools.support.TestDirectories import sbt.io.syntax.File final class GotoExerciseArgumentsSpec extends CommandLineArgumentsSpec[GotoExercise.Options] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoFirstExerciseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoFirstExerciseSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala index dec6f3df..8629b486 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/GotoFirstExerciseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object GotoFirstExerciseSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/InstallArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala similarity index 69% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/InstallArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala index 42105359..e7d75022 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/InstallArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala @@ -1,12 +1,12 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli import caseapp.Parser -import com.lunatech.cmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import com.lunatech.cmt.client.command.Install -import com.lunatech.cmt.support.TestDirectories +import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmttools.client.command.Install +import coursemgmttools.support.TestDirectories import sbt.io.syntax.{File, file} -import com.lunatech.cmt.core.cli.ArgParsers.given -import com.lunatech.cmt.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser +import coursemgmttools.core.cli.ArgParsers.given +import coursemgmttools.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser final class InstallArgumentsSpec extends CommandLineArgumentsSpec[Install.Options] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListExercisesSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListExercisesSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala index 42be93b0..1af912a4 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListExercisesSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object ListExercisesSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListSavedStatesSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListSavedStatesSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala index 0fd3d2cd..806dfd72 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/ListSavedStatesSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object ListSavedStatesSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/NextExerciseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/NextExerciseSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala index 10b181e5..76dafe88 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/NextExerciseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object NextExerciseSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PreviousExercise.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/PreviousExercise.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala index 88eaa83a..70b23e1d 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PreviousExercise.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PreviousExercise /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullSolutionSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullSolutionSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala index 4a3271fc..e3778ef7 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullSolutionSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PullSolutionSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullTemplateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullTemplateSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala index 223b2043..6f98a518 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/PullTemplateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PullTemplateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/RestoreStateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/RestoreStateSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala index f876763e..a420b0da 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/RestoreStateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object RestoreStateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/SaveStateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala similarity index 82% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/SaveStateSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala index cf850e3c..fca9d0d7 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/SaveStateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import com.lunatech.cmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object SaveStateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/SetCurrentCourseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala similarity index 92% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/SetCurrentCourseSpec.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala index 0042a122..fc2ae656 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/SetCurrentCourseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala @@ -1,9 +1,9 @@ -package com.lunatech.cmt.client.command +package coursemgmttools.client.command -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.Helpers.dumpStringToFile -import com.lunatech.cmt.client.{Configuration, CurrentCourse} -import com.lunatech.cmt.support.EitherSupport +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.Helpers.dumpStringToFile +import coursemgmttools.client.{Configuration, CurrentCourse} +import coursemgmttools.support.EitherSupport import org.scalatest.BeforeAndAfterEach import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpecLike @@ -96,7 +96,7 @@ final class SetCurrentCourseSpec override def afterEach(): Unit = { savedCmtConfig.foreach { config => - com.lunatech.cmt.Helpers.dumpStringToFile(config, configFile) + coursemgmttools.Helpers.dumpStringToFile(config, configFile) } sbtio.delete(tempDirectory) super.afterEach() diff --git a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/VersionArguments.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala similarity index 84% rename from cmtc/src/test/scala/com/lunatech/cmt/client/cli/VersionArguments.scala rename to cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala index 5376d380..933d5b69 100644 --- a/cmtc/src/test/scala/com/lunatech/cmt/client/cli/VersionArguments.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.client.cli +package coursemgmttools.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import com.lunatech.cmt.support.CommandLineArguments -//import com.lunatech.cmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmttools.support.CommandLineArguments +//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} //import org.scalatest.prop.Tables //import sbt.io.syntax.File diff --git a/functional-tests/src/test/scala/com/lunatech/cmt/StudentificationFunctionalSpec.scala b/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala similarity index 99% rename from functional-tests/src/test/scala/com/lunatech/cmt/StudentificationFunctionalSpec.scala rename to functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala index aea28f33..a91fb9cf 100644 --- a/functional-tests/src/test/scala/com/lunatech/cmt/StudentificationFunctionalSpec.scala +++ b/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.support.* -import com.lunatech.cmt.toExecuteCommandErrorMessage +import coursemgmttools.support.* +import coursemgmttools.toExecuteCommandErrorMessage import org.scalatest.featurespec.AnyFeatureSpecLike import org.scalatest.matchers.should.Matchers import org.scalatest.{BeforeAndAfterAll, GivenWhenThen} diff --git a/functional-tests/src/test/scala/com/lunatech/cmt/StudentificationMovingBetweenExercisesSpec.scala b/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala similarity index 98% rename from functional-tests/src/test/scala/com/lunatech/cmt/StudentificationMovingBetweenExercisesSpec.scala rename to functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala index 3da28cba..ad2d40f4 100644 --- a/functional-tests/src/test/scala/com/lunatech/cmt/StudentificationMovingBetweenExercisesSpec.scala +++ b/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt +package coursemgmttools /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,7 @@ package com.lunatech.cmt * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.support.{ExerciseMetadata, SourcesStruct} +import coursemgmttools.support.{ExerciseMetadata, SourcesStruct} import org.scalatest.{BeforeAndAfterAll, GivenWhenThen} import org.scalatest.featurespec.AnyFeatureSpecLike import org.scalatest.matchers.should.Matchers diff --git a/functional-tests/src/test/scala/com/lunatech/cmt/support/TestSupport.scala b/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala similarity index 92% rename from functional-tests/src/test/scala/com/lunatech/cmt/support/TestSupport.scala rename to functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala index 6f59e423..6f4787db 100644 --- a/functional-tests/src/test/scala/com/lunatech/cmt/support/TestSupport.scala +++ b/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala @@ -1,4 +1,4 @@ -package com.lunatech.cmt.support +package coursemgmttools.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,15 +13,15 @@ package com.lunatech.cmt.support * See the License for the specific language governing permissions and limitations under the License. */ -import com.lunatech.cmt.Helpers.* -import com.lunatech.cmt.admin.Domain.MainRepository -import com.lunatech.cmt.admin.cli.SharedOptions -import com.lunatech.cmt.admin.command -import com.lunatech.cmt.Domain.StudentifiedRepo -import com.lunatech.cmt.client.{Configuration, CoursesDirectory, CurrentCourse} -import com.lunatech.cmt.client.Configuration.CmtHome -import com.lunatech.cmt.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath} -import com.lunatech.cmt.client.command.{ +import coursemgmttools.Helpers.* +import coursemgmttools.admin.Domain.MainRepository +import coursemgmttools.admin.cli.SharedOptions +import coursemgmttools.admin.command +import coursemgmttools.Domain.StudentifiedRepo +import coursemgmttools.client.{Configuration, CoursesDirectory, CurrentCourse} +import coursemgmttools.client.Configuration.CmtHome +import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath} +import coursemgmttools.client.command.{ GotoExercise, GotoFirstExercise, NextExercise, @@ -31,7 +31,7 @@ import com.lunatech.cmt.client.command.{ RestoreState, SaveState } -import com.lunatech.cmt.{CMTcConfig, CmtError, Helpers} +import coursemgmttools.{CMTcConfig, CmtError, Helpers} import sbt.io.IO as sbtio import sbt.io.syntax.* @@ -153,8 +153,8 @@ def createMainRepo(tmpDir: File, repoName: String, exercises: Exercises, testCon mainRepo def studentifyMainRepo(tmpDir: File, repoName: String, mainRepo: File): File = - import com.lunatech.cmt.admin.Domain.{ForceDeleteDestinationDirectory, InitializeGitRepo, StudentifyBaseDirectory} - import com.lunatech.cmt.admin.command.Studentify + import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, InitializeGitRepo, StudentifyBaseDirectory} + import coursemgmttools.admin.command.Studentify val studentifyBase = tmpDir / "stu" sbtio.createDirectory(studentifyBase) diff --git a/project/Build.scala b/project/Build.scala index 93c021c4..754cb59b 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -27,7 +27,7 @@ object Build { lazy val commonSettings = Seq( scalaVersion := Version.scalaVersion, scalacOptions ++= CompileOptions.compileOptions, - buildInfoPackage := "com.lunatech.cmt.version", + buildInfoPackage := "coursemgmttools.version", Test / parallelExecution := false, Test / logBuffered := false) From 643fcdc0d41d8eaae064c625ab226e76a79217f5 Mon Sep 17 00:00:00 2001 From: Eric Loots Date: Thu, 12 Oct 2023 10:36:43 +0200 Subject: [PATCH 2/4] Format code --- .../admin/command/DuplicateInsertBefore.scala | 7 +------ .../coursemgmttools/admin/command/RenumberExercises.scala | 7 +------ .../scala/coursemgmttools/admin/command/Studentify.scala | 4 ++-- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala index 23d48fa2..d8cc9b2e 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala @@ -2,12 +2,7 @@ package coursemgmttools.admin.command import coursemgmttools.* import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.Helpers.{ - ExercisesMetadata, - getExerciseMetadata, - commitToGit, - exitIfGitIndexOrWorkspaceIsntClean -} +import coursemgmttools.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} import coursemgmttools.admin.Domain.{ExerciseNumber, RenumberOffset, RenumberStart, RenumberStep} import coursemgmttools.admin.cli.SharedOptions import coursemgmttools.core.execution.Executable diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala index 421e3a74..31069b04 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala @@ -2,12 +2,7 @@ package coursemgmttools.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} import coursemgmttools.{CMTaConfig, CmtError, printResult} -import coursemgmttools.Helpers.{ - ExercisesMetadata, - getExerciseMetadata, - commitToGit, - exitIfGitIndexOrWorkspaceIsntClean -} +import coursemgmttools.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} import coursemgmttools.admin.Domain.{RenumberOffset, RenumberStart, RenumberStep} import coursemgmttools.admin.cli.SharedOptions import coursemgmttools.core.execution.Executable diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala index c83ac8c7..cdcdc3de 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala @@ -69,8 +69,8 @@ object Studentify: if (redundantPaths.nonEmpty) for (redundantPath <- redundantPaths) println( - coursemgmttools - .toConsoleYellow(s"WARNING: Redundant path detected in CMT configuration: $redundantPath")) + coursemgmttools.toConsoleYellow( + s"WARNING: Redundant path detected in CMT configuration: $redundantPath")) checkForOverlappingPathsInConfig() From ee588599e8bc16c40df165de6f318d928ebfb8cd Mon Sep 17 00:00:00 2001 From: Eric Loots Date: Thu, 12 Oct 2023 10:52:33 +0200 Subject: [PATCH 3/4] Shorten package name --- build.sbt | 4 +-- .../scala/coursemgmttools/CMTaConfig.scala | 2 +- .../scala/coursemgmttools/CMTcConfig.scala | 2 +- .../coursemgmttools/ConsoleFunctions.scala | 2 +- .../main/scala/coursemgmttools/Domain.scala | 2 +- .../main/scala/coursemgmttools/Error.scala | 2 +- .../coursemgmttools/ExerciseMetadata.scala | 2 +- .../main/scala/coursemgmttools/Filters.scala | 2 +- .../main/scala/coursemgmttools/Helpers.scala | 8 ++--- .../scala/coursemgmttools/ProcessDSL.scala | 6 ++-- .../scala/coursemgmttools/Releasables.scala | 2 +- .../scala/coursemgmttools/Validations.scala | 3 +- .../client/Configuration.scala | 12 +++---- .../client/cli/CmtcCommand.scala | 8 ++--- .../client/command/Executable.scala | 6 ++-- .../coursemgmttools/core/GeneratorInfo.scala | 2 +- .../coursemgmttools/core/cli/ArgParsers.scala | 8 ++--- .../coursemgmttools/core/cli/CmtCommand.scala | 4 +-- .../core/command/Package.scala | 2 +- .../core/execution/Executable.scala | 4 +-- .../core/validation/FileValidations.scala | 4 +-- .../core/validation/Validatable.scala | 4 +-- .../client/ConfigurationSpec.scala | 10 +++--- .../client/command/InstallSpec.scala | 2 +- .../core/cli/CmtCommandSpec.scala | 2 +- .../support/CommandLineParseTestBase.scala | 4 +-- .../support/EitherSupport.scala | 2 +- .../support/ExtractUniquePathsSpec.scala | 4 +-- .../support/TestDirectories.scala | 6 ++-- .../scala/coursemgmttools/admin/Domain.scala | 8 ++--- .../scala/coursemgmttools/admin/Main.scala | 4 +-- .../admin/TargetFolderValidation.scala | 6 ++-- .../admin/cli/ArgParsers.scala | 6 ++-- .../admin/cli/SharedOptions.scala | 6 ++-- .../admin/command/Delinearize.scala | 20 ++++++------ .../admin/command/DuplicateInsertBefore.scala | 18 +++++------ .../admin/command/Linearize.scala | 20 ++++++------ .../coursemgmttools/admin/command/New.scala | 22 ++++++------- .../admin/command/Package.scala | 4 +-- .../admin/command/RenumberExercises.scala | 20 ++++++------ .../admin/command/Studentify.scala | 27 ++++++++-------- .../admin/command/Version.scala | 14 ++++----- .../RenumberExercisesSpec.scala | 10 +++--- .../scala/coursemgmttools/TestHelpers.scala | 2 +- .../admin/cli/CommandLineArgumentsSpec.scala | 8 ++--- .../admin/cli/DelinearizeArgumentsSpec.scala | 12 +++---- .../DuplicateInsertBeforeArgumentsSpec.scala | 12 +++---- .../admin/cli/LinearizeArgumentsSpec.scala | 12 +++---- .../admin/cli/RenumberArgumentsSpec.scala | 12 +++---- .../admin/cli/StudentifyArgumentsSpec.scala | 12 +++---- .../admin/cli/VersionArguments.scala | 6 ++-- .../scala/coursemgmttools/client/Domain.scala | 2 +- .../scala/coursemgmttools/client/Main.scala | 4 +-- .../client/cli/ArgParsers.scala | 4 +-- .../client/command/GotoExercise.scala | 31 +++++++------------ .../client/command/GotoFirstExercise.scala | 20 ++++++------ .../client/command/Install.scala | 26 ++++++++-------- .../client/command/ListExercises.scala | 18 +++++------ .../client/command/ListSavedStates.scala | 16 +++++----- .../client/command/NextExercise.scala | 31 +++++++------------ .../client/command/Package.scala | 6 ++-- .../client/command/PreviousExercise.scala | 31 +++++++------------ .../client/command/PullSolution.scala | 20 ++++++------ .../client/command/PullTemplate.scala | 31 +++++++------------ .../client/command/RestoreState.scala | 22 ++++++------- .../client/command/SaveState.scala | 20 ++++++------ .../client/command/SetCurrentCourse.scala | 20 ++++++------ .../client/command/Version.scala | 14 ++++----- .../client/cli/CommandLineArgumentsSpec.scala | 8 ++--- .../cli/GotoExerciseArgumentsSpec.scala | 14 ++++----- .../client/cli/GotoFirstExerciseSpec.scala | 6 ++-- .../client/cli/InstallArgumentsSpec.scala | 12 +++---- .../client/cli/ListExercisesSpec.scala | 6 ++-- .../client/cli/ListSavedStatesSpec.scala | 6 ++-- .../client/cli/NextExerciseSpec.scala | 6 ++-- .../client/cli/PreviousExercise.scala | 6 ++-- .../client/cli/PullSolutionSpec.scala | 6 ++-- .../client/cli/PullTemplateSpec.scala | 6 ++-- .../client/cli/RestoreStateSpec.scala | 6 ++-- .../client/cli/SaveStateSpec.scala | 6 ++-- .../client/cli/SetCurrentCourseSpec.scala | 12 +++---- .../client/cli/VersionArguments.scala | 6 ++-- .../StudentificationFunctionalSpec.scala | 6 ++-- ...tificationMovingBetweenExercisesSpec.scala | 4 +-- .../coursemgmttools/support/TestSupport.scala | 26 ++++++++-------- project/Build.scala | 2 +- 86 files changed, 406 insertions(+), 436 deletions(-) diff --git a/build.sbt b/build.sbt index 96293176..91dbcf16 100644 --- a/build.sbt +++ b/build.sbt @@ -32,7 +32,7 @@ lazy val cmta = project .dependsOn(`cmt-core`, `cmt-core` % "test->test") .settings(commonSettings: _*) .settings(nativeImageSettings: _*) - .settings(Compile / mainClass := Some("coursemgmttools.admin.Main")) + .settings(Compile / mainClass := Some("coursemgmt.admin.Main")) .settings(buildInfoKeys := buildKeysWithName("cmta:Course Management Tools (Admin)")) lazy val cmtc = project @@ -43,7 +43,7 @@ lazy val cmtc = project .settings(commonSettings: _*) .settings(nativeImageSettings: _*) .settings(libraryDependencies ++= Dependencies.cmtcDependencies) - .settings(Compile / mainClass := Some("coursemgmttools.client.Main")) + .settings(Compile / mainClass := Some("coursemgmt.client.Main")) .settings(buildInfoKeys := buildKeysWithName("Course Management Tools (Client)")) lazy val `functional-tests` = project diff --git a/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala b/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala index 151d9d8f..83a6cf54 100644 --- a/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala +++ b/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala b/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala index dad95ff7..1fabe750 100644 --- a/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala +++ b/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala b/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala index 60cf94ec..7c8476ac 100644 --- a/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/coursemgmttools/Domain.scala b/cmt-core/src/main/scala/coursemgmttools/Domain.scala index 84c109b2..254a48fc 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Domain.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Domain.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt import sbt.io.syntax.{File, file} diff --git a/cmt-core/src/main/scala/coursemgmttools/Error.scala b/cmt-core/src/main/scala/coursemgmttools/Error.scala index b341e64c..76e02092 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Error.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Error.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt sealed trait CmtError { def prettyPrint: String diff --git a/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala b/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala index e90e89a2..d6c2b61f 100644 --- a/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt import java.util.Map.Entry import scala.jdk.CollectionConverters.* diff --git a/cmt-core/src/main/scala/coursemgmttools/Filters.scala b/cmt-core/src/main/scala/coursemgmttools/Filters.scala index 996f1700..1254463b 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Filters.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Filters.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/main/scala/coursemgmttools/Helpers.scala b/cmt-core/src/main/scala/coursemgmttools/Helpers.scala index 092463ce..94a578b0 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Helpers.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Helpers.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.ProcessDSL.ProcessCmd -import coursemgmttools.core.GeneratorInfo -import coursemgmttools.core.command.Package.* +import coursemgmt.ProcessDSL.ProcessCmd +import coursemgmt.core.GeneratorInfo +import coursemgmt.core.command.Package.* import com.typesafe.config.{ConfigFactory, ConfigRenderOptions} import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala b/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala index 7ee8ba16..046ad129 100644 --- a/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala +++ b/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.toExecuteCommandErrorMessage +import coursemgmt.toExecuteCommandErrorMessage import sbt.io.syntax.* -import coursemgmttools.Helpers.ignoreProcessStdOutStdErr +import coursemgmt.Helpers.ignoreProcessStdOutStdErr import scala.sys.process.Process import scala.util.{Failure, Success, Try} diff --git a/cmt-core/src/main/scala/coursemgmttools/Releasables.scala b/cmt-core/src/main/scala/coursemgmttools/Releasables.scala index 0696ebb8..f8fb90e8 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Releasables.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Releasables.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmt-core/src/main/scala/coursemgmttools/Validations.scala b/cmt-core/src/main/scala/coursemgmttools/Validations.scala index 61502510..3a28cf89 100644 --- a/cmt-core/src/main/scala/coursemgmttools/Validations.scala +++ b/cmt-core/src/main/scala/coursemgmttools/Validations.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,6 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.{FileValidations, IntValidations, StringValidations} import sbt.io.syntax.File object ValidationExtensions: diff --git a/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala b/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala index 86f25a03..875ccd8b 100644 --- a/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala +++ b/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala @@ -1,9 +1,9 @@ -package coursemgmttools.client +package coursemgmt.client -import coursemgmttools.Helpers.{adaptToNixSeparatorChar, adaptToOSSeparatorChar} -import coursemgmttools.client.Configuration.* -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.{CmtError, FailedToWriteGlobalConfiguration, printMessage} +import coursemgmt.Helpers.{adaptToNixSeparatorChar, adaptToOSSeparatorChar} +import coursemgmt.client.Configuration.* +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.{CmtError, FailedToWriteGlobalConfiguration, printMessage} import com.typesafe.config.{Config, ConfigFactory} import dev.dirs.ProjectDirectories import sbt.io.IO.* @@ -46,7 +46,7 @@ object Configuration: private val projectDirectories = ProjectDirectories.from("com", "lunatech", "cmt") val UserConfigDir = projectDirectories.configDir - val CmtGlobalConfigName = "coursemgmttools.conf" + val CmtGlobalConfigName = "coursemgmt.conf" val CoursesDirectoryToken = "COURSES_DIRECTORY" val CurrentCourseToken = "CURRENT_COURSE" val CmtHomeEnvKey = "CMT_HOME" diff --git a/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala b/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala index 903d150e..1f06894b 100644 --- a/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala +++ b/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala @@ -1,11 +1,11 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli import caseapp.core.help.Help import caseapp.core.parser.Parser import cats.syntax.either.* -import coursemgmttools.client.Configuration -import coursemgmttools.core.cli.CmtCommand -import coursemgmttools.printErrorAndExit +import coursemgmt.client.Configuration +import coursemgmt.core.cli.CmtCommand +import coursemgmt.printErrorAndExit abstract class CmtcCommand[T](using parser: Parser[T], help: Help[T]) extends CmtCommand[T] { diff --git a/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala b/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala index 54e7431b..4545249b 100644 --- a/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala +++ b/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala @@ -1,7 +1,7 @@ -package coursemgmttools.client.command +package coursemgmt.client.command -import coursemgmttools.CmtError -import coursemgmttools.client.Configuration +import coursemgmt.CmtError +import coursemgmt.client.Configuration trait Executable[T]: extension (t: T) def execute(configuration: Configuration): Either[CmtError, String] diff --git a/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala b/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala index 4ab8b448..6cde8391 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala @@ -1,3 +1,3 @@ -package coursemgmttools.core +package coursemgmt.core final case class GeneratorInfo(generatorName: String, generatorVersion: String) diff --git a/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala b/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala index 34634877..3bbc7e24 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala @@ -1,13 +1,13 @@ -package coursemgmttools.core.cli +package coursemgmt.core.cli import caseapp.core.Error import caseapp.core.Error.Other import caseapp.core.argparser.{ArgParser, SimpleArgParser} import cats.syntax.apply.* import cats.syntax.either.* -import coursemgmttools.Domain.{InstallationSource, StudentifiedRepo} -import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import coursemgmttools.core.validation.FileValidations.* +import coursemgmt.Domain.{InstallationSource, StudentifiedRepo} +import coursemgmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmt.core.validation.FileValidations.* import sbt.io.syntax.{File, file} object ArgParsers: diff --git a/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala b/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala index 3f59b95e..a422f6af 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala @@ -1,10 +1,10 @@ -package coursemgmttools.core.cli +package coursemgmt.core.cli import caseapp.{Command, RemainingArgs} import caseapp.core.Error import caseapp.core.help.Help import caseapp.core.parser.Parser -import coursemgmttools.{ +import coursemgmt.{ CmtError, MissingTrailingArguments, NoTrailingArguments, diff --git a/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala b/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala index c7c6c8b9..5b9a30f2 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala @@ -1,4 +1,4 @@ -package coursemgmttools.core.command +package coursemgmt.core.command import sbt.io.syntax.File import sbt.io.IO as sbtio diff --git a/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala b/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala index f222c58f..d7521e1e 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala @@ -1,4 +1,4 @@ -package coursemgmttools.core.execution +package coursemgmt.core.execution /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,7 @@ package coursemgmttools.core.execution * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.CmtError +import coursemgmt.CmtError trait Executable[T]: extension (t: T) def execute(): Either[CmtError, String] diff --git a/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala b/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala index cbfc6e3e..5ca36a61 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala @@ -1,9 +1,9 @@ -package coursemgmttools.core.validation +package coursemgmt.core.validation import caseapp.core.Error import cats.data.{NonEmptyList, ValidatedNel} import cats.syntax.either.* -import coursemgmttools.Helpers +import coursemgmt.Helpers import sbt.io.syntax.File object FileValidations: diff --git a/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala b/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala index 6c88eb3e..7b991a67 100644 --- a/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala +++ b/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala @@ -1,6 +1,6 @@ -package coursemgmttools.core.validation +package coursemgmt.core.validation -import coursemgmttools.CmtError +import coursemgmt.CmtError trait Validatable[T]: extension (t: T) def validated(): Either[CmtError, T] diff --git a/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala b/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala index 8884a534..47eb2487 100644 --- a/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala @@ -1,8 +1,8 @@ -package coursemgmttools.client +package coursemgmt.client -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Configuration.CmtHome -import coursemgmttools.support.EitherSupport +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Configuration.CmtHome +import coursemgmt.support.EitherSupport import dev.dirs.ProjectDirectories import org.scalatest.BeforeAndAfterEach import org.scalatest.matchers.should.Matchers @@ -27,7 +27,7 @@ final class ConfigurationSpec extends AnyWordSpecLike with Matchers with BeforeA // other specs _may_ have run before this one and already created the config file // so that's why we ensure that the cmt config file is removed before we execute // otherwise, if the file exists, it will likely not contain default values and the assertion below will fail - sbtio.delete(configDir / "coursemgmttools.conf") + sbtio.delete(configDir / "coursemgmt.conf") val receivedConfiguration = assertRight(Configuration.load()) diff --git a/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala b/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala index 42eb3b3e..0c191b4b 100644 --- a/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpecLike diff --git a/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala b/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala index 3d65c588..01c79cf7 100644 --- a/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.core.cli +package coursemgmt.core.cli //import caseapp.core.{Indexed, RemainingArgs} import org.scalatest.wordspec.AnyWordSpecLike diff --git a/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala b/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala index 11ba10a1..d9298a6e 100644 --- a/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala @@ -1,4 +1,4 @@ -package coursemgmttools.support +package coursemgmt.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -24,7 +24,7 @@ import org.scalatest.wordspec.AnyWordSpecLike import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.* -import coursemgmttools.{CmtError, toCmtError} +import coursemgmt.{CmtError, toCmtError} import scala.language.postfixOps diff --git a/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala b/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala index ae22ce86..b426345a 100644 --- a/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala @@ -1,4 +1,4 @@ -package coursemgmttools.support +package coursemgmt.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala b/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala index 9df4cd43..0687d8e5 100644 --- a/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.support +package coursemgmt.support import org.scalatest.wordspec.AnyWordSpec import org.scalatest.matchers.should.Matchers @@ -14,7 +14,7 @@ trait ExtractUniquePathsFixture { final class ExtractUniquePathsSpec extends AnyWordSpec with Matchers with ExtractUniquePathsFixture { - import coursemgmttools.Helpers.extractUniquePaths + import coursemgmt.Helpers.extractUniquePaths "extractUniquePaths" when { "given a series of paths that don't share any common prefix" should { diff --git a/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala b/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala index 3be9dbb8..96e06182 100644 --- a/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala +++ b/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala @@ -1,4 +1,4 @@ -package coursemgmttools.support +package coursemgmt.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,9 +13,9 @@ package coursemgmttools.support * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.Helpers +import coursemgmt.Helpers import sbt.io.syntax.{File, file} -import coursemgmttools.Helpers.adaptToOSSeparatorChar +import coursemgmt.Helpers.adaptToOSSeparatorChar trait TestDirectories { diff --git a/cmta/src/main/scala/coursemgmttools/admin/Domain.scala b/cmta/src/main/scala/coursemgmttools/admin/Domain.scala index 0ead7c03..418717b9 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/Domain.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/Domain.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin +package coursemgmt.admin /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,12 +13,12 @@ package coursemgmttools.admin * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.CmtError +import coursemgmt.CmtError import sbt.io.syntax.File -import coursemgmttools.* +import coursemgmt.* import cats.syntax.either.* -import coursemgmttools.Domain.InstallationSource +import coursemgmt.Domain.InstallationSource object Domain: diff --git a/cmta/src/main/scala/coursemgmttools/admin/Main.scala b/cmta/src/main/scala/coursemgmttools/admin/Main.scala index 9184c5a4..945cfb76 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/Main.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/Main.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin +package coursemgmt.admin /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,7 +14,7 @@ package coursemgmttools.admin */ import caseapp.core.app.CommandsEntryPoint -import coursemgmttools.admin.command.{ +import coursemgmt.admin.command.{ Delinearize, DuplicateInsertBefore, Linearize, diff --git a/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala b/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala index dd7246eb..2b3dc999 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala @@ -1,8 +1,8 @@ -package coursemgmttools.admin +package coursemgmt.admin -import coursemgmttools.CmtError +import coursemgmt.CmtError import java.io.File -import coursemgmttools.toExecuteCommandErrorMessage +import coursemgmt.toExecuteCommandErrorMessage def validateDestinationFolder(mainRepository: File, destination: File): Either[CmtError, Unit] = val canonicalTarget = destination.getCanonicalPath diff --git a/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala b/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala index 859f4b3d..1814ba9a 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala @@ -1,9 +1,9 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli import caseapp.core.argparser.{ArgParser, FlagArgParser, SimpleArgParser} import cats.syntax.apply.* -import coursemgmttools.admin.Domain.* -import coursemgmttools.core.validation.FileValidations.* +import coursemgmt.admin.Domain.* +import coursemgmt.core.validation.FileValidations.* import sbt.io.syntax.file import caseapp.core.Error import cats.syntax.either.* diff --git a/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala b/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala index 552e6d60..a9a0dad1 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala @@ -1,8 +1,8 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli import caseapp.{ExtraName, Help, HelpMessage, Parser, ValueDescription} -import coursemgmttools.admin.Domain.{ConfigurationFile, MainRepository} -import coursemgmttools.admin.cli.ArgParsers.{configurationFileArgParser, mainRepositoryArgParser} +import coursemgmt.admin.Domain.{ConfigurationFile, MainRepository} +import coursemgmt.admin.cli.ArgParsers.{configurationFileArgParser, mainRepositoryArgParser} final case class SharedOptions( @ExtraName("m") diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala index fe691657..822dc7da 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala @@ -1,17 +1,17 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.* -import coursemgmttools.Helpers.* -import coursemgmttools.ProcessDSL.toProcessCmd -import coursemgmttools.admin.Domain.LinearizeBaseDirectory -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.core.execution.Executable -import coursemgmttools.core.validation.Validatable +import coursemgmt.* +import coursemgmt.Helpers.* +import coursemgmt.ProcessDSL.toProcessCmd +import coursemgmt.admin.Domain.LinearizeBaseDirectory +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.core.execution.Executable +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser -import coursemgmttools.core.cli.CmtCommand +import coursemgmt.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser +import coursemgmt.core.cli.CmtCommand object Delinearize: diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala index d8cc9b2e..eb84651a 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala @@ -1,16 +1,16 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command -import coursemgmttools.* +import coursemgmt.* import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} -import coursemgmttools.admin.Domain.{ExerciseNumber, RenumberOffset, RenumberStart, RenumberStep} -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.core.execution.Executable -import coursemgmttools.core.validation.Validatable +import coursemgmt.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} +import coursemgmt.admin.Domain.{ExerciseNumber, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.core.execution.Executable +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.admin.cli.ArgParsers.exerciseNumberArgParser -import coursemgmttools.core.cli.CmtCommand +import coursemgmt.admin.cli.ArgParsers.exerciseNumberArgParser +import coursemgmt.core.cli.CmtCommand object DuplicateInsertBefore: diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala index 8d909193..10b9c3a1 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala @@ -1,15 +1,15 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.Helpers.* -import coursemgmttools.{CMTaConfig, CmtError, printResult, toConsoleGreen} -import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} -import coursemgmttools.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.admin.validateDestinationFolder -import coursemgmttools.core.cli.CmtCommand -import coursemgmttools.core.execution.Executable -import coursemgmttools.core.validation.Validatable +import coursemgmt.Helpers.* +import coursemgmt.{CMTaConfig, CmtError, printResult, toConsoleGreen} +import coursemgmt.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} +import coursemgmt.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.admin.validateDestinationFolder +import coursemgmt.core.cli.CmtCommand +import coursemgmt.core.execution.Executable +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/New.scala b/cmta/src/main/scala/coursemgmttools/admin/command/New.scala index 650aca59..622965d5 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/New.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/New.scala @@ -1,18 +1,18 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs, ValueDescription} -import coursemgmttools.{CmtError, printResult} -import coursemgmttools.admin.Domain.{ConfigurationFile, CourseTemplate} -import coursemgmttools.client.command.Executable -import coursemgmttools.core.validation.Validatable -import coursemgmttools.admin.cli.ArgParsers.{configurationFileArgParser, courseTemplateArgParser} -import coursemgmttools.client.Configuration -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.Domain.InstallationSource.* -import coursemgmttools.Helpers.ignoreProcessStdOutStdErr +import coursemgmt.{CmtError, printResult} +import coursemgmt.admin.Domain.{ConfigurationFile, CourseTemplate} +import coursemgmt.client.command.Executable +import coursemgmt.core.validation.Validatable +import coursemgmt.admin.cli.ArgParsers.{configurationFileArgParser, courseTemplateArgParser} +import coursemgmt.client.Configuration +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.Domain.InstallationSource.* +import coursemgmt.Helpers.ignoreProcessStdOutStdErr import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.* +import coursemgmt.* import cats.syntax.either.* diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala index 93e8cb2a..59c6ee91 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala @@ -1,6 +1,6 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command -import coursemgmttools.Helpers.extractExerciseNr +import coursemgmt.Helpers.extractExerciseNr def renumberExercise(exercise: String, exercisePrefix: String, newNumber: Int): String = val newNumberPrefix = f"${exercisePrefix}_$newNumber%03d_" val oldNumberPrefix = diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala index 31069b04..085533f7 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala @@ -1,17 +1,17 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.{CMTaConfig, CmtError, printResult} -import coursemgmttools.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} -import coursemgmttools.admin.Domain.{RenumberOffset, RenumberStart, RenumberStep} -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.core.execution.Executable -import coursemgmttools.admin.cli.ArgParsers.{renumberOffsetArgParser, renumberStartArgParser, renumberStepArgParser} -import coursemgmttools.core.cli.CmtCommand -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTaConfig, CmtError, printResult} +import coursemgmt.Helpers.{ExercisesMetadata, getExerciseMetadata, commitToGit, exitIfGitIndexOrWorkspaceIsntClean} +import coursemgmt.admin.Domain.{RenumberOffset, RenumberStart, RenumberStep} +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.core.execution.Executable +import coursemgmt.admin.cli.ArgParsers.{renumberOffsetArgParser, renumberStartArgParser, renumberStepArgParser} +import coursemgmt.core.cli.CmtCommand +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.toExecuteCommandErrorMessage +import coursemgmt.toExecuteCommandErrorMessage object RenumberExercises: diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala index cdcdc3de..b076e819 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala @@ -1,27 +1,27 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, Name, Recurse, RemainingArgs, ValueDescription} -import coursemgmttools.Helpers.* -import coursemgmttools.admin.Domain.{ +import coursemgmt.Helpers.* +import coursemgmt.admin.Domain.{ ForceDeleteDestinationDirectory, InitializeGitRepo, MainRepository, StudentifyBaseDirectory } -import coursemgmttools.core.execution.Executable -import coursemgmttools.{CMTaConfig, CmtError, printResult, toConsoleGreen} +import coursemgmt.core.execution.Executable +import coursemgmt.{CMTaConfig, CmtError, printResult, toConsoleGreen} import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.admin.validateDestinationFolder -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.core.validation.Validatable -import coursemgmttools.admin.cli.ArgParsers.{ +import coursemgmt.admin.validateDestinationFolder +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.core.validation.Validatable +import coursemgmt.admin.cli.ArgParsers.{ forceDeleteDestinationDirectoryArgParser, initializeGitRepoArgParser, studentifyBaseDirectoryArgParser } -import coursemgmttools.core.GeneratorInfo -import coursemgmttools.core.cli.CmtCommand +import coursemgmt.core.GeneratorInfo +import coursemgmt.core.cli.CmtCommand object Studentify: @@ -69,8 +69,7 @@ object Studentify: if (redundantPaths.nonEmpty) for (redundantPath <- redundantPaths) println( - coursemgmttools.toConsoleYellow( - s"WARNING: Redundant path detected in CMT configuration: $redundantPath")) + coursemgmt.toConsoleYellow(s"WARNING: Redundant path detected in CMT configuration: $redundantPath")) checkForOverlappingPathsInConfig() @@ -132,7 +131,7 @@ object Studentify: hideExercises(cleanedMainRepo, solutionsFolder, exercises)(config) - import coursemgmttools.version.BuildInfo + import coursemgmt.version.BuildInfo val generatorInfo = GeneratorInfo(BuildInfo.name, BuildInfo.version) writeStudentifiedCMTConfig(studentifiedRootFolder / config.cmtStudentifiedConfigFile, exercises)( config, diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala b/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala index bdfcd90d..f070324d 100644 --- a/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala +++ b/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala @@ -1,12 +1,12 @@ -package coursemgmttools.admin.command +package coursemgmt.admin.command import caseapp.{AppName, CommandName, HelpMessage, RemainingArgs} -import coursemgmttools.CmtError -import coursemgmttools.core.cli.CmtCommand -import coursemgmttools.core.execution.Executable -import coursemgmttools.core.validation.Validatable -import coursemgmttools.printResult -import coursemgmttools.version.BuildInfo +import coursemgmt.CmtError +import coursemgmt.core.cli.CmtCommand +import coursemgmt.core.execution.Executable +import coursemgmt.core.validation.Validatable +import coursemgmt.printResult +import coursemgmt.version.BuildInfo object Version: @AppName("version") @CommandName("version") diff --git a/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala b/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala index 7996f6d7..6f1e712f 100644 --- a/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,10 +13,10 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.TestHelpers.getExercisePrefixAndExercises -import coursemgmttools.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.admin.command.RenumberExercises +import coursemgmt.TestHelpers.getExercisePrefixAndExercises +import coursemgmt.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.admin.command.RenumberExercises import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpec diff --git a/cmta/src/test/scala/coursemgmttools/TestHelpers.scala b/cmta/src/test/scala/coursemgmttools/TestHelpers.scala index d4d5ef0a..94a45840 100644 --- a/cmta/src/test/scala/coursemgmttools/TestHelpers.scala +++ b/cmta/src/test/scala/coursemgmttools/TestHelpers.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala index e32556e0..cf74dc96 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala @@ -1,9 +1,9 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli import caseapp.Parser import caseapp.core.Error.{RequiredOptionNotSpecified, SeveralErrors} -import coursemgmttools.CmtError -import coursemgmttools.support.EitherSupport +import coursemgmt.CmtError +import coursemgmt.support.EitherSupport import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.prop.TableFor2 @@ -12,7 +12,7 @@ import org.scalatest.prop.Tables.Table import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.File -import coursemgmttools.toCmtError +import coursemgmt.toCmtError abstract class CommandLineArgumentsSpec[T] extends AnyWordSpecLike diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala index 5627fe97..a5374f73 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package coursemgmttools.admin.cli */ import caseapp.Parser -import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import coursemgmttools.admin.Domain.{LinearizeBaseDirectory, MainRepository} -import coursemgmttools.admin.command.Delinearize -import coursemgmttools.support.TestDirectories +import coursemgmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmt.admin.Domain.{LinearizeBaseDirectory, MainRepository} +import coursemgmt.admin.command.Delinearize +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} -import coursemgmttools.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser +import coursemgmt.admin.cli.ArgParsers.linearizeBaseDirectoryArgParser final class DelinearizeArgumentsSpec extends CommandLineArgumentsSpec[Delinearize.Options] with TestDirectories { diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala index f1632e79..e1564519 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package coursemgmttools.admin.cli */ import caseapp.Parser -import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import coursemgmttools.admin.Domain.{ExerciseNumber, MainRepository} -import coursemgmttools.admin.command.DuplicateInsertBefore -import coursemgmttools.support.TestDirectories +import coursemgmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmt.admin.Domain.{ExerciseNumber, MainRepository} +import coursemgmt.admin.command.DuplicateInsertBefore +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} -import coursemgmttools.admin.cli.ArgParsers.exerciseNumberArgParser +import coursemgmt.admin.cli.ArgParsers.exerciseNumberArgParser final class DuplicateInsertBeforeArgumentsSpec extends CommandLineArgumentsSpec[DuplicateInsertBefore.Options] diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala index f53bbda8..4be2e5c4 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package coursemgmttools.admin.cli */ import caseapp.Parser -import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} -import coursemgmttools.admin.command.Linearize -import coursemgmttools.support.TestDirectories +import coursemgmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmt.admin.Domain.{ForceDeleteDestinationDirectory, LinearizeBaseDirectory, MainRepository} +import coursemgmt.admin.command.Linearize +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} -import coursemgmttools.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} +import coursemgmt.admin.cli.ArgParsers.{forceDeleteDestinationDirectoryArgParser, linearizeBaseDirectoryArgParser} final class LinearizeArgumentsSpec extends CommandLineArgumentsSpec[Linearize.Options] with TestDirectories { diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala index 223e8889..4a7b07fb 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package coursemgmttools.admin.cli */ import caseapp.Parser -import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import coursemgmttools.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} -import coursemgmttools.admin.command.RenumberExercises -import coursemgmttools.support.TestDirectories +import coursemgmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmt.admin.Domain.{MainRepository, RenumberOffset, RenumberStart, RenumberStep} +import coursemgmt.admin.command.RenumberExercises +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} -import coursemgmttools.admin.cli.ArgParsers.{renumberStepArgParser, renumberOffsetArgParser, renumberStartArgParser} +import coursemgmt.admin.cli.ArgParsers.{renumberStepArgParser, renumberOffsetArgParser, renumberStartArgParser} final class RenumberArgumentsSpec extends CommandLineArgumentsSpec[RenumberExercises.Options] with TestDirectories { diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala index b6514239..8c0970f5 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,20 +14,20 @@ package coursemgmttools.admin.cli */ import caseapp.Parser -import coursemgmttools.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} -import coursemgmttools.admin.command.Studentify -import coursemgmttools.admin.cli.ArgParsers.{ +import coursemgmt.{ErrorMessage, FailedToValidateArgument, OptionName, RequiredOptionIsMissing} +import coursemgmt.admin.command.Studentify +import coursemgmt.admin.cli.ArgParsers.{ initializeGitRepoArgParser, forceDeleteDestinationDirectoryArgParser, studentifyBaseDirectoryArgParser } -import coursemgmttools.admin.Domain.{ +import coursemgmt.admin.Domain.{ ForceDeleteDestinationDirectory, InitializeGitRepo, MainRepository, StudentifyBaseDirectory } -import coursemgmttools.support.TestDirectories +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} final class StudentifyArgumentsSpec extends CommandLineArgumentsSpec[Studentify.Options] with TestDirectories { diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala b/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala index b89dabfe..d0e6d137 100644 --- a/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala +++ b/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala @@ -1,4 +1,4 @@ -package coursemgmttools.admin.cli +package coursemgmt.admin.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.admin.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} //import org.scalatest.prop.Tables //import sbt.io.syntax.File diff --git a/cmtc/src/main/scala/coursemgmttools/client/Domain.scala b/cmtc/src/main/scala/coursemgmttools/client/Domain.scala index 8ec4558d..1aeddeec 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/Domain.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/Domain.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client +package coursemgmt.client /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * diff --git a/cmtc/src/main/scala/coursemgmttools/client/Main.scala b/cmtc/src/main/scala/coursemgmttools/client/Main.scala index b0e60687..01d97008 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/Main.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/Main.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client +package coursemgmt.client /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,7 +14,7 @@ package coursemgmttools.client */ import caseapp.core.app.CommandsEntryPoint -import coursemgmttools.client.command.{ +import coursemgmt.client.command.{ GotoExercise, GotoFirstExercise, Install, diff --git a/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala b/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala index 517db4bb..a93e357e 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala @@ -1,7 +1,7 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli import caseapp.core.argparser.{ArgParser, FlagArgParser, SimpleArgParser} -import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath, ForceDeleteDestinationDirectory} +import coursemgmt.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath, ForceDeleteDestinationDirectory} import cats.syntax.either.* object ArgParsers { diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala index 8ee26d1c..a6d4673b 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala @@ -1,25 +1,18 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.{ - CMTcConfig, - CmtError, - printResult, - toConsoleGreen, - toConsoleYellow, - toExecuteCommandErrorMessage -} -import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Configuration -import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow, toExecuteCommandErrorMessage} +import coursemgmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Configuration +import coursemgmt.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmt.core.validation.Validatable import sbt.io.syntax.* -import coursemgmttools.client.cli.ArgParsers.{exerciseIdArgParser, forceMoveToExerciseArgParser} -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.enforceTrailingArgumentCount -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.client.cli.ArgParsers.{exerciseIdArgParser, forceMoveToExerciseArgParser} +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.enforceTrailingArgumentCount +import coursemgmt.core.command.Package.getCurrentExerciseId object GotoExercise: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala index 99d0465f..a61ec63d 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala @@ -1,15 +1,15 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.client.Configuration -import coursemgmttools.{CMTcConfig, CmtError, printResult} -import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.core.validation.Validatable -import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.enforceNoTrailingArguments +import coursemgmt.client.Configuration +import coursemgmt.{CMTcConfig, CmtError, printResult} +import coursemgmt.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.core.validation.Validatable +import coursemgmt.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.enforceNoTrailingArguments object GotoFirstExercise: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala index 0d2a15b9..8b0bada5 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala @@ -1,21 +1,21 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.* import cats.syntax.either.* -import coursemgmttools.* -import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import coursemgmttools.Domain.{InstallationSource, StudentifiedRepo} -import coursemgmttools.Helpers.{findStudentRepoRoot, ignoreProcessStdOutStdErr} -import coursemgmttools.client.Configuration -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.ArgParsers.installationSourceArgParser -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.validation.Validatable -import coursemgmttools.client.Domain.ForceDeleteDestinationDirectory +import coursemgmt.* +import coursemgmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmt.Domain.{InstallationSource, StudentifiedRepo} +import coursemgmt.Helpers.{findStudentRepoRoot, ignoreProcessStdOutStdErr} +import coursemgmt.client.Configuration +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.ArgParsers.installationSourceArgParser +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.validation.Validatable +import coursemgmt.client.Domain.ForceDeleteDestinationDirectory import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser -import coursemgmttools.Releasables.{*, given} +import coursemgmt.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser +import coursemgmt.Releasables.{*, given} import sys.process.* import scala.util.{Failure, Success, Try} diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala b/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala index 1b8b0f8a..ab5fc4b2 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala @@ -1,14 +1,14 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.client.Configuration -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.{CMTcConfig, CmtError, printResult} -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.validation.Validatable -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.Helpers.listExercises +import coursemgmt.client.Configuration +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.{CMTcConfig, CmtError, printResult} +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.validation.Validatable +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.Helpers.listExercises object ListExercises: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala b/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala index 986cb2ff..fb45f053 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala @@ -1,14 +1,14 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.client.Configuration -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} -import coursemgmttools.core.validation.Validatable +import coursemgmt.client.Configuration +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser object ListSavedStates: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala index b8bcdddb..d7474e79 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala @@ -1,25 +1,18 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.{ - CMTcConfig, - CmtError, - printResult, - toConsoleGreen, - toConsoleYellow, - toExecuteCommandErrorMessage -} -import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Configuration -import coursemgmttools.client.Domain.ForceMoveToExercise -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow, toExecuteCommandErrorMessage} +import coursemgmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Configuration +import coursemgmt.client.Domain.ForceMoveToExercise +import coursemgmt.core.validation.Validatable import sbt.io.syntax.* -import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.command.Package.getCurrentExerciseId object NextExercise: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala index ff8281be..42b36e6a 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala @@ -1,7 +1,7 @@ -package coursemgmttools.client.command +package coursemgmt.client.command -import coursemgmttools.{CMTcConfig, Helpers} -import coursemgmttools.Helpers.writeStudentifiedCMTBookmark +import coursemgmt.{CMTcConfig, Helpers} +import coursemgmt.Helpers.writeStudentifiedCMTBookmark import sbt.io.syntax.* import sbt.io.IO as sbtio diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala index 3572ff3d..efcdb216 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala @@ -1,25 +1,18 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.{ - CMTcConfig, - CmtError, - printResult, - toConsoleGreen, - toConsoleYellow, - toExecuteCommandErrorMessage -} -import coursemgmttools.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} -import coursemgmttools.client.Configuration -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Domain.ForceMoveToExercise -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow, toExecuteCommandErrorMessage} +import coursemgmt.Helpers.{exerciseFileHasBeenModified, getFilesToCopyAndDelete, pullTestCode} +import coursemgmt.client.Configuration +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Domain.ForceMoveToExercise +import coursemgmt.core.validation.Validatable import sbt.io.syntax.* -import coursemgmttools.client.cli.ArgParsers.forceMoveToExerciseArgParser -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.client.cli.ArgParsers.forceMoveToExerciseArgParser +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.command.Package.getCurrentExerciseId object PreviousExercise: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala index a52fcf93..c183e234 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala @@ -1,17 +1,17 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} -import coursemgmttools.Helpers.{adaptToNixSeparatorChar, exerciseFileHasBeenModified, withZipFile} -import coursemgmttools.client.Configuration -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow} +import coursemgmt.Helpers.{adaptToNixSeparatorChar, exerciseFileHasBeenModified, withZipFile} +import coursemgmt.client.Configuration +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.validation.Validatable import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.core.command.Package.getCurrentExerciseId object PullSolution: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala b/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala index 0a73913e..34367ec4 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala @@ -1,27 +1,20 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.{ - CMTcConfig, - CmtError, - printResult, - toConsoleGreen, - toConsoleYellow, - toExecuteCommandErrorMessage -} -import coursemgmttools.Helpers.withZipFile -import coursemgmttools.client.Configuration -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Domain.TemplatePath -import coursemgmttools.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult, toConsoleGreen, toConsoleYellow, toExecuteCommandErrorMessage} +import coursemgmt.Helpers.withZipFile +import coursemgmt.client.Configuration +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Domain.TemplatePath +import coursemgmt.core.validation.Validatable import sbt.io.CopyOptions import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.client.cli.ArgParsers.templatePathArgParser -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.core.cli.enforceTrailingArgumentCount -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.client.cli.ArgParsers.templatePathArgParser +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.core.cli.enforceTrailingArgumentCount +import coursemgmt.core.command.Package.getCurrentExerciseId object PullTemplate: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala b/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala index 2b8d1a40..3bad45c5 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala @@ -1,18 +1,18 @@ -package coursemgmttools.client.command +package coursemgmt.client.command -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Domain.ExerciseId +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Domain.ExerciseId import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.client.cli.ArgParsers.exerciseIdArgParser -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.command.deleteCurrentState -import coursemgmttools.core.validation.Validatable -import coursemgmttools.* -import coursemgmttools.client.Configuration -import coursemgmttools.client.cli.CmtcCommand +import coursemgmt.client.cli.ArgParsers.exerciseIdArgParser +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.command.deleteCurrentState +import coursemgmt.core.validation.Validatable +import coursemgmt.* +import coursemgmt.client.Configuration +import coursemgmt.client.cli.CmtcCommand import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.core.cli.enforceTrailingArgumentCount +import coursemgmt.core.cli.enforceTrailingArgumentCount object RestoreState: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala b/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala index 4e3f4012..c49b76c0 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala @@ -1,18 +1,18 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.Helpers.zipAndDeleteOriginal -import coursemgmttools.client.command.getCurrentExerciseStateExceptDontTouch -import coursemgmttools.core.validation.Validatable -import coursemgmttools.* -import coursemgmttools.client.Configuration +import coursemgmt.Helpers.zipAndDeleteOriginal +import coursemgmt.client.command.getCurrentExerciseStateExceptDontTouch +import coursemgmt.core.validation.Validatable +import coursemgmt.* +import coursemgmt.client.Configuration import Domain.StudentifiedRepo -import coursemgmttools.client.cli.CmtcCommand +import coursemgmt.client.cli.CmtcCommand import sbt.io.IO as sbtio import sbt.io.syntax.* -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.core.command.Package.getCurrentExerciseId +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.core.command.Package.getCurrentExerciseId object SaveState: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala b/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala index 973e00f4..bf6ba7e9 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala @@ -1,15 +1,15 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, ExtraName, HelpMessage, RemainingArgs} -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.Helpers.findStudentRepoRoot -import coursemgmttools.core.cli.ArgParsers.studentifiedRepoArgParser -import coursemgmttools.client.cli.CmtcCommand -import coursemgmttools.client.{Configuration, CurrentCourse} -import coursemgmttools.Helpers.listExercises -import coursemgmttools.core.cli.enforceNoTrailingArguments -import coursemgmttools.core.validation.Validatable -import coursemgmttools.{CMTcConfig, CmtError, printResult} +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.Helpers.findStudentRepoRoot +import coursemgmt.core.cli.ArgParsers.studentifiedRepoArgParser +import coursemgmt.client.cli.CmtcCommand +import coursemgmt.client.{Configuration, CurrentCourse} +import coursemgmt.Helpers.listExercises +import coursemgmt.core.cli.enforceNoTrailingArguments +import coursemgmt.core.validation.Validatable +import coursemgmt.{CMTcConfig, CmtError, printResult} import sbt.io.syntax.* object SetCurrentCourse: diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala b/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala index 05930da5..b2d8f3e4 100644 --- a/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala +++ b/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala @@ -1,12 +1,12 @@ -package coursemgmttools.client.command +package coursemgmt.client.command import caseapp.{AppName, CommandName, HelpMessage, RemainingArgs} -import coursemgmttools.CmtError -import coursemgmttools.core.cli.CmtCommand -import coursemgmttools.core.execution.Executable -import coursemgmttools.core.validation.Validatable -import coursemgmttools.printResult -import coursemgmttools.version.BuildInfo +import coursemgmt.CmtError +import coursemgmt.core.cli.CmtCommand +import coursemgmt.core.execution.Executable +import coursemgmt.core.validation.Validatable +import coursemgmt.printResult +import coursemgmt.version.BuildInfo object Version: @AppName("version") @CommandName("version") diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala index 1c91e739..df26c347 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -15,8 +15,8 @@ package coursemgmttools.client.cli import caseapp.Parser import caseapp.core.Error.{RequiredOptionNotSpecified, SeveralErrors} -import coursemgmttools.CmtError -import coursemgmttools.support.EitherSupport +import coursemgmt.CmtError +import coursemgmt.support.EitherSupport import org.scalatest.BeforeAndAfterAll import org.scalatest.matchers.should.Matchers import org.scalatest.prop.TableFor2 @@ -25,7 +25,7 @@ import org.scalatest.prop.Tables.Table import org.scalatestplus.scalacheck.ScalaCheckPropertyChecks import sbt.io.IO import sbt.io.syntax.File -import coursemgmttools.toCmtError +import coursemgmt.toCmtError abstract class CommandLineArgumentsSpec[T] extends AnyWordSpecLike diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala index d72b931e..04d0edaf 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -14,12 +14,12 @@ package coursemgmttools.client.cli */ import caseapp.Parser -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise} -import coursemgmttools.client.cli.ArgParsers.given -import coursemgmttools.client.command.GotoExercise -import coursemgmttools.core.cli.ArgParsers.given -import coursemgmttools.support.TestDirectories +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.Domain.{ExerciseId, ForceMoveToExercise} +import coursemgmt.client.cli.ArgParsers.given +import coursemgmt.client.command.GotoExercise +import coursemgmt.core.cli.ArgParsers.given +import coursemgmt.support.TestDirectories import sbt.io.syntax.File final class GotoExerciseArgumentsSpec extends CommandLineArgumentsSpec[GotoExercise.Options] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala index 8629b486..259accce 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object GotoFirstExerciseSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala index e7d75022..ff5d56cc 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala @@ -1,12 +1,12 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli import caseapp.Parser -import coursemgmttools.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} -import coursemgmttools.client.command.Install -import coursemgmttools.support.TestDirectories +import coursemgmt.Domain.InstallationSource.{GithubProject, LocalDirectory, ZipFile} +import coursemgmt.client.command.Install +import coursemgmt.support.TestDirectories import sbt.io.syntax.{File, file} -import coursemgmttools.core.cli.ArgParsers.given -import coursemgmttools.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser +import coursemgmt.core.cli.ArgParsers.given +import coursemgmt.client.cli.ArgParsers.forceDeleteDestinationDirectoryArgParser final class InstallArgumentsSpec extends CommandLineArgumentsSpec[Install.Options] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala index 1af912a4..118214a1 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object ListExercisesSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala index 806dfd72..5fd38068 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object ListSavedStatesSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala index 76dafe88..f3f0d258 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object NextExerciseSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala index 70b23e1d..fbb332f4 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PreviousExercise /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala index e3778ef7..06eb98b2 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PullSolutionSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala index 6f98a518..c24eabfb 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object PullTemplateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala index a420b0da..9acd3297 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object RestoreStateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala index fca9d0d7..1e96b211 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} -//import coursemgmttools.support.{CommandLineArguments, TestDirectories} +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.{CommandLineArguments, TestDirectories} //import sbt.io.syntax.File object SaveStateSpec /*extends CommandLineArguments[CliOptions] with TestDirectories { diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala index fc2ae656..04afef3a 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala @@ -1,9 +1,9 @@ -package coursemgmttools.client.command +package coursemgmt.client.command -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.Helpers.dumpStringToFile -import coursemgmttools.client.{Configuration, CurrentCourse} -import coursemgmttools.support.EitherSupport +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.Helpers.dumpStringToFile +import coursemgmt.client.{Configuration, CurrentCourse} +import coursemgmt.support.EitherSupport import org.scalatest.BeforeAndAfterEach import org.scalatest.matchers.should.Matchers import org.scalatest.wordspec.AnyWordSpecLike @@ -96,7 +96,7 @@ final class SetCurrentCourseSpec override def afterEach(): Unit = { savedCmtConfig.foreach { config => - coursemgmttools.Helpers.dumpStringToFile(config, configFile) + coursemgmt.Helpers.dumpStringToFile(config, configFile) } sbtio.delete(tempDirectory) super.afterEach() diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala b/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala index 933d5b69..2403c9f3 100644 --- a/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala +++ b/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala @@ -1,4 +1,4 @@ -package coursemgmttools.client.cli +package coursemgmt.client.cli /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools.client.cli * See the License for the specific language governing permissions and limitations under the License. */ -//import coursemgmttools.support.CommandLineArguments -//import coursemgmttools.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} +//import coursemgmt.support.CommandLineArguments +//import coursemgmt.support.CommandLineArguments.{invalidArgumentsTable, validArgumentsTable} //import org.scalatest.prop.Tables //import sbt.io.syntax.File diff --git a/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala b/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala index a91fb9cf..b6dbac35 100644 --- a/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala +++ b/functional-tests/src/test/scala/coursemgmttools/StudentificationFunctionalSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,8 +13,8 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.support.* -import coursemgmttools.toExecuteCommandErrorMessage +import coursemgmt.support.* +import coursemgmt.toExecuteCommandErrorMessage import org.scalatest.featurespec.AnyFeatureSpecLike import org.scalatest.matchers.should.Matchers import org.scalatest.{BeforeAndAfterAll, GivenWhenThen} diff --git a/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala b/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala index ad2d40f4..5b2ad8a6 100644 --- a/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala +++ b/functional-tests/src/test/scala/coursemgmttools/StudentificationMovingBetweenExercisesSpec.scala @@ -1,4 +1,4 @@ -package coursemgmttools +package coursemgmt /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,7 +13,7 @@ package coursemgmttools * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.support.{ExerciseMetadata, SourcesStruct} +import coursemgmt.support.{ExerciseMetadata, SourcesStruct} import org.scalatest.{BeforeAndAfterAll, GivenWhenThen} import org.scalatest.featurespec.AnyFeatureSpecLike import org.scalatest.matchers.should.Matchers diff --git a/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala b/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala index 6f4787db..8d5179f1 100644 --- a/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala +++ b/functional-tests/src/test/scala/coursemgmttools/support/TestSupport.scala @@ -1,4 +1,4 @@ -package coursemgmttools.support +package coursemgmt.support /** Copyright 2022 - Eric Loots - eric.loots@gmail.com / Trevor Burton-McCreadie - trevor@thinkmorestupidless.com * @@ -13,15 +13,15 @@ package coursemgmttools.support * See the License for the specific language governing permissions and limitations under the License. */ -import coursemgmttools.Helpers.* -import coursemgmttools.admin.Domain.MainRepository -import coursemgmttools.admin.cli.SharedOptions -import coursemgmttools.admin.command -import coursemgmttools.Domain.StudentifiedRepo -import coursemgmttools.client.{Configuration, CoursesDirectory, CurrentCourse} -import coursemgmttools.client.Configuration.CmtHome -import coursemgmttools.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath} -import coursemgmttools.client.command.{ +import coursemgmt.Helpers.* +import coursemgmt.admin.Domain.MainRepository +import coursemgmt.admin.cli.SharedOptions +import coursemgmt.admin.command +import coursemgmt.Domain.StudentifiedRepo +import coursemgmt.client.{Configuration, CoursesDirectory, CurrentCourse} +import coursemgmt.client.Configuration.CmtHome +import coursemgmt.client.Domain.{ExerciseId, ForceMoveToExercise, TemplatePath} +import coursemgmt.client.command.{ GotoExercise, GotoFirstExercise, NextExercise, @@ -31,7 +31,7 @@ import coursemgmttools.client.command.{ RestoreState, SaveState } -import coursemgmttools.{CMTcConfig, CmtError, Helpers} +import coursemgmt.{CMTcConfig, CmtError, Helpers} import sbt.io.IO as sbtio import sbt.io.syntax.* @@ -153,8 +153,8 @@ def createMainRepo(tmpDir: File, repoName: String, exercises: Exercises, testCon mainRepo def studentifyMainRepo(tmpDir: File, repoName: String, mainRepo: File): File = - import coursemgmttools.admin.Domain.{ForceDeleteDestinationDirectory, InitializeGitRepo, StudentifyBaseDirectory} - import coursemgmttools.admin.command.Studentify + import coursemgmt.admin.Domain.{ForceDeleteDestinationDirectory, InitializeGitRepo, StudentifyBaseDirectory} + import coursemgmt.admin.command.Studentify val studentifyBase = tmpDir / "stu" sbtio.createDirectory(studentifyBase) diff --git a/project/Build.scala b/project/Build.scala index 754cb59b..075770a1 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -27,7 +27,7 @@ object Build { lazy val commonSettings = Seq( scalaVersion := Version.scalaVersion, scalacOptions ++= CompileOptions.compileOptions, - buildInfoPackage := "coursemgmttools.version", + buildInfoPackage := "coursemgmt.version", Test / parallelExecution := false, Test / logBuffered := false) From d045a113ea3f835ebfca7bf9585b335664b8c7d3 Mon Sep 17 00:00:00 2001 From: Eric Loots Date: Thu, 12 Oct 2023 11:31:13 +0200 Subject: [PATCH 4/4] Align folder paths with package name --- .../main/scala/{coursemgmttools => coursemgmt}/CMTaConfig.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/CMTcConfig.scala | 0 .../scala/{coursemgmttools => coursemgmt}/ConsoleFunctions.scala | 0 .../src/main/scala/{coursemgmttools => coursemgmt}/Domain.scala | 0 .../src/main/scala/{coursemgmttools => coursemgmt}/Error.scala | 0 .../scala/{coursemgmttools => coursemgmt}/ExerciseMetadata.scala | 0 .../src/main/scala/{coursemgmttools => coursemgmt}/Filters.scala | 0 .../src/main/scala/{coursemgmttools => coursemgmt}/Helpers.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/ProcessDSL.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/Releasables.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/Validations.scala | 0 .../{coursemgmttools => coursemgmt}/client/Configuration.scala | 0 .../{coursemgmttools => coursemgmt}/client/cli/CmtcCommand.scala | 0 .../client/command/Executable.scala | 0 .../{coursemgmttools => coursemgmt}/core/GeneratorInfo.scala | 0 .../{coursemgmttools => coursemgmt}/core/cli/ArgParsers.scala | 0 .../{coursemgmttools => coursemgmt}/core/cli/CmtCommand.scala | 0 .../{coursemgmttools => coursemgmt}/core/command/Package.scala | 0 .../core/execution/Executable.scala | 0 .../core/validation/FileValidations.scala | 0 .../core/validation/Validatable.scala | 0 .../client/ConfigurationSpec.scala | 0 .../client/command/InstallSpec.scala | 0 .../{coursemgmttools => coursemgmt}/core/cli/CmtCommandSpec.scala | 0 .../support/CommandLineParseTestBase.scala | 0 .../{coursemgmttools => coursemgmt}/support/EitherSupport.scala | 0 .../support/ExtractUniquePathsSpec.scala | 0 .../{coursemgmttools => coursemgmt}/support/TestDirectories.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/admin/Domain.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/admin/Main.scala | 0 .../admin/TargetFolderValidation.scala | 0 .../{coursemgmttools => coursemgmt}/admin/cli/ArgParsers.scala | 0 .../{coursemgmttools => coursemgmt}/admin/cli/SharedOptions.scala | 0 .../admin/command/Delinearize.scala | 0 .../admin/command/DuplicateInsertBefore.scala | 0 .../{coursemgmttools => coursemgmt}/admin/command/Linearize.scala | 0 .../scala/{coursemgmttools => coursemgmt}/admin/command/New.scala | 0 .../{coursemgmttools => coursemgmt}/admin/command/Package.scala | 0 .../admin/command/RenumberExercises.scala | 0 .../admin/command/Studentify.scala | 0 .../{coursemgmttools => coursemgmt}/admin/command/Version.scala | 0 .../{coursemgmttools => coursemgmt}/RenumberExercisesSpec.scala | 0 .../test/scala/{coursemgmttools => coursemgmt}/TestHelpers.scala | 0 .../admin/cli/CommandLineArgumentsSpec.scala | 0 .../admin/cli/DelinearizeArgumentsSpec.scala | 0 .../admin/cli/DuplicateInsertBeforeArgumentsSpec.scala | 0 .../admin/cli/LinearizeArgumentsSpec.scala | 0 .../admin/cli/RenumberArgumentsSpec.scala | 0 .../admin/cli/StudentifyArgumentsSpec.scala | 0 .../admin/cli/VersionArguments.scala | 0 .../scala/{coursemgmttools => coursemgmt}/client/Domain.scala | 0 .../main/scala/{coursemgmttools => coursemgmt}/client/Main.scala | 0 .../{coursemgmttools => coursemgmt}/client/cli/ArgParsers.scala | 0 .../client/command/GotoExercise.scala | 0 .../client/command/GotoFirstExercise.scala | 0 .../{coursemgmttools => coursemgmt}/client/command/Install.scala | 0 .../client/command/ListExercises.scala | 0 .../client/command/ListSavedStates.scala | 0 .../client/command/NextExercise.scala | 0 .../{coursemgmttools => coursemgmt}/client/command/Package.scala | 0 .../client/command/PreviousExercise.scala | 0 .../client/command/PullSolution.scala | 0 .../client/command/PullTemplate.scala | 0 .../client/command/RestoreState.scala | 0 .../client/command/SaveState.scala | 0 .../client/command/SetCurrentCourse.scala | 0 .../{coursemgmttools => coursemgmt}/client/command/Version.scala | 0 .../client/cli/CommandLineArgumentsSpec.scala | 0 .../client/cli/GotoExerciseArgumentsSpec.scala | 0 .../client/cli/GotoFirstExerciseSpec.scala | 0 .../client/cli/InstallArgumentsSpec.scala | 0 .../client/cli/ListExercisesSpec.scala | 0 .../client/cli/ListSavedStatesSpec.scala | 0 .../client/cli/NextExerciseSpec.scala | 0 .../client/cli/PreviousExercise.scala | 0 .../client/cli/PullSolutionSpec.scala | 0 .../client/cli/PullTemplateSpec.scala | 0 .../client/cli/RestoreStateSpec.scala | 0 .../client/cli/SaveStateSpec.scala | 0 .../client/cli/SetCurrentCourseSpec.scala | 0 .../client/cli/VersionArguments.scala | 0 81 files changed, 0 insertions(+), 0 deletions(-) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/CMTaConfig.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/CMTcConfig.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/ConsoleFunctions.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Domain.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Error.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/ExerciseMetadata.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Filters.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Helpers.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/ProcessDSL.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Releasables.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/Validations.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/client/Configuration.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/client/cli/CmtcCommand.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/client/command/Executable.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/GeneratorInfo.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/cli/ArgParsers.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/cli/CmtCommand.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/command/Package.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/execution/Executable.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/validation/FileValidations.scala (100%) rename cmt-core/src/main/scala/{coursemgmttools => coursemgmt}/core/validation/Validatable.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/client/ConfigurationSpec.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/client/command/InstallSpec.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/core/cli/CmtCommandSpec.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/support/CommandLineParseTestBase.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/support/EitherSupport.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/support/ExtractUniquePathsSpec.scala (100%) rename cmt-core/src/test/scala/{coursemgmttools => coursemgmt}/support/TestDirectories.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/Domain.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/Main.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/TargetFolderValidation.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/cli/ArgParsers.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/cli/SharedOptions.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/Delinearize.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/DuplicateInsertBefore.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/Linearize.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/New.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/Package.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/RenumberExercises.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/Studentify.scala (100%) rename cmta/src/main/scala/{coursemgmttools => coursemgmt}/admin/command/Version.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/RenumberExercisesSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/TestHelpers.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/CommandLineArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/DelinearizeArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/LinearizeArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/RenumberArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/StudentifyArgumentsSpec.scala (100%) rename cmta/src/test/scala/{coursemgmttools => coursemgmt}/admin/cli/VersionArguments.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/Domain.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/Main.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/cli/ArgParsers.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/GotoExercise.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/GotoFirstExercise.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/Install.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/ListExercises.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/ListSavedStates.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/NextExercise.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/Package.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/PreviousExercise.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/PullSolution.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/PullTemplate.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/RestoreState.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/SaveState.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/SetCurrentCourse.scala (100%) rename cmtc/src/main/scala/{coursemgmttools => coursemgmt}/client/command/Version.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/CommandLineArgumentsSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/GotoExerciseArgumentsSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/GotoFirstExerciseSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/InstallArgumentsSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/ListExercisesSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/ListSavedStatesSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/NextExerciseSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/PreviousExercise.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/PullSolutionSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/PullTemplateSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/RestoreStateSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/SaveStateSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/SetCurrentCourseSpec.scala (100%) rename cmtc/src/test/scala/{coursemgmttools => coursemgmt}/client/cli/VersionArguments.scala (100%) diff --git a/cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala b/cmt-core/src/main/scala/coursemgmt/CMTaConfig.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/CMTaConfig.scala rename to cmt-core/src/main/scala/coursemgmt/CMTaConfig.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala b/cmt-core/src/main/scala/coursemgmt/CMTcConfig.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/CMTcConfig.scala rename to cmt-core/src/main/scala/coursemgmt/CMTcConfig.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala b/cmt-core/src/main/scala/coursemgmt/ConsoleFunctions.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/ConsoleFunctions.scala rename to cmt-core/src/main/scala/coursemgmt/ConsoleFunctions.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Domain.scala b/cmt-core/src/main/scala/coursemgmt/Domain.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Domain.scala rename to cmt-core/src/main/scala/coursemgmt/Domain.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Error.scala b/cmt-core/src/main/scala/coursemgmt/Error.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Error.scala rename to cmt-core/src/main/scala/coursemgmt/Error.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala b/cmt-core/src/main/scala/coursemgmt/ExerciseMetadata.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/ExerciseMetadata.scala rename to cmt-core/src/main/scala/coursemgmt/ExerciseMetadata.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Filters.scala b/cmt-core/src/main/scala/coursemgmt/Filters.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Filters.scala rename to cmt-core/src/main/scala/coursemgmt/Filters.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Helpers.scala b/cmt-core/src/main/scala/coursemgmt/Helpers.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Helpers.scala rename to cmt-core/src/main/scala/coursemgmt/Helpers.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala b/cmt-core/src/main/scala/coursemgmt/ProcessDSL.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/ProcessDSL.scala rename to cmt-core/src/main/scala/coursemgmt/ProcessDSL.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Releasables.scala b/cmt-core/src/main/scala/coursemgmt/Releasables.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Releasables.scala rename to cmt-core/src/main/scala/coursemgmt/Releasables.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/Validations.scala b/cmt-core/src/main/scala/coursemgmt/Validations.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/Validations.scala rename to cmt-core/src/main/scala/coursemgmt/Validations.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala b/cmt-core/src/main/scala/coursemgmt/client/Configuration.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/client/Configuration.scala rename to cmt-core/src/main/scala/coursemgmt/client/Configuration.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala b/cmt-core/src/main/scala/coursemgmt/client/cli/CmtcCommand.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/client/cli/CmtcCommand.scala rename to cmt-core/src/main/scala/coursemgmt/client/cli/CmtcCommand.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala b/cmt-core/src/main/scala/coursemgmt/client/command/Executable.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/client/command/Executable.scala rename to cmt-core/src/main/scala/coursemgmt/client/command/Executable.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala b/cmt-core/src/main/scala/coursemgmt/core/GeneratorInfo.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/GeneratorInfo.scala rename to cmt-core/src/main/scala/coursemgmt/core/GeneratorInfo.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala b/cmt-core/src/main/scala/coursemgmt/core/cli/ArgParsers.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/cli/ArgParsers.scala rename to cmt-core/src/main/scala/coursemgmt/core/cli/ArgParsers.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala b/cmt-core/src/main/scala/coursemgmt/core/cli/CmtCommand.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/cli/CmtCommand.scala rename to cmt-core/src/main/scala/coursemgmt/core/cli/CmtCommand.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala b/cmt-core/src/main/scala/coursemgmt/core/command/Package.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/command/Package.scala rename to cmt-core/src/main/scala/coursemgmt/core/command/Package.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala b/cmt-core/src/main/scala/coursemgmt/core/execution/Executable.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/execution/Executable.scala rename to cmt-core/src/main/scala/coursemgmt/core/execution/Executable.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala b/cmt-core/src/main/scala/coursemgmt/core/validation/FileValidations.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/validation/FileValidations.scala rename to cmt-core/src/main/scala/coursemgmt/core/validation/FileValidations.scala diff --git a/cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala b/cmt-core/src/main/scala/coursemgmt/core/validation/Validatable.scala similarity index 100% rename from cmt-core/src/main/scala/coursemgmttools/core/validation/Validatable.scala rename to cmt-core/src/main/scala/coursemgmt/core/validation/Validatable.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala b/cmt-core/src/test/scala/coursemgmt/client/ConfigurationSpec.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/client/ConfigurationSpec.scala rename to cmt-core/src/test/scala/coursemgmt/client/ConfigurationSpec.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala b/cmt-core/src/test/scala/coursemgmt/client/command/InstallSpec.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/client/command/InstallSpec.scala rename to cmt-core/src/test/scala/coursemgmt/client/command/InstallSpec.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala b/cmt-core/src/test/scala/coursemgmt/core/cli/CmtCommandSpec.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/core/cli/CmtCommandSpec.scala rename to cmt-core/src/test/scala/coursemgmt/core/cli/CmtCommandSpec.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala b/cmt-core/src/test/scala/coursemgmt/support/CommandLineParseTestBase.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/support/CommandLineParseTestBase.scala rename to cmt-core/src/test/scala/coursemgmt/support/CommandLineParseTestBase.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala b/cmt-core/src/test/scala/coursemgmt/support/EitherSupport.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/support/EitherSupport.scala rename to cmt-core/src/test/scala/coursemgmt/support/EitherSupport.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala b/cmt-core/src/test/scala/coursemgmt/support/ExtractUniquePathsSpec.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/support/ExtractUniquePathsSpec.scala rename to cmt-core/src/test/scala/coursemgmt/support/ExtractUniquePathsSpec.scala diff --git a/cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala b/cmt-core/src/test/scala/coursemgmt/support/TestDirectories.scala similarity index 100% rename from cmt-core/src/test/scala/coursemgmttools/support/TestDirectories.scala rename to cmt-core/src/test/scala/coursemgmt/support/TestDirectories.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/Domain.scala b/cmta/src/main/scala/coursemgmt/admin/Domain.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/Domain.scala rename to cmta/src/main/scala/coursemgmt/admin/Domain.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/Main.scala b/cmta/src/main/scala/coursemgmt/admin/Main.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/Main.scala rename to cmta/src/main/scala/coursemgmt/admin/Main.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala b/cmta/src/main/scala/coursemgmt/admin/TargetFolderValidation.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/TargetFolderValidation.scala rename to cmta/src/main/scala/coursemgmt/admin/TargetFolderValidation.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala b/cmta/src/main/scala/coursemgmt/admin/cli/ArgParsers.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/cli/ArgParsers.scala rename to cmta/src/main/scala/coursemgmt/admin/cli/ArgParsers.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala b/cmta/src/main/scala/coursemgmt/admin/cli/SharedOptions.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/cli/SharedOptions.scala rename to cmta/src/main/scala/coursemgmt/admin/cli/SharedOptions.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala b/cmta/src/main/scala/coursemgmt/admin/command/Delinearize.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/Delinearize.scala rename to cmta/src/main/scala/coursemgmt/admin/command/Delinearize.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala b/cmta/src/main/scala/coursemgmt/admin/command/DuplicateInsertBefore.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/DuplicateInsertBefore.scala rename to cmta/src/main/scala/coursemgmt/admin/command/DuplicateInsertBefore.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala b/cmta/src/main/scala/coursemgmt/admin/command/Linearize.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/Linearize.scala rename to cmta/src/main/scala/coursemgmt/admin/command/Linearize.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/New.scala b/cmta/src/main/scala/coursemgmt/admin/command/New.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/New.scala rename to cmta/src/main/scala/coursemgmt/admin/command/New.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Package.scala b/cmta/src/main/scala/coursemgmt/admin/command/Package.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/Package.scala rename to cmta/src/main/scala/coursemgmt/admin/command/Package.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala b/cmta/src/main/scala/coursemgmt/admin/command/RenumberExercises.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/RenumberExercises.scala rename to cmta/src/main/scala/coursemgmt/admin/command/RenumberExercises.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala b/cmta/src/main/scala/coursemgmt/admin/command/Studentify.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/Studentify.scala rename to cmta/src/main/scala/coursemgmt/admin/command/Studentify.scala diff --git a/cmta/src/main/scala/coursemgmttools/admin/command/Version.scala b/cmta/src/main/scala/coursemgmt/admin/command/Version.scala similarity index 100% rename from cmta/src/main/scala/coursemgmttools/admin/command/Version.scala rename to cmta/src/main/scala/coursemgmt/admin/command/Version.scala diff --git a/cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala b/cmta/src/test/scala/coursemgmt/RenumberExercisesSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/RenumberExercisesSpec.scala rename to cmta/src/test/scala/coursemgmt/RenumberExercisesSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/TestHelpers.scala b/cmta/src/test/scala/coursemgmt/TestHelpers.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/TestHelpers.scala rename to cmta/src/test/scala/coursemgmt/TestHelpers.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/CommandLineArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/CommandLineArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/CommandLineArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/DelinearizeArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/DelinearizeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/DelinearizeArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/DuplicateInsertBeforeArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/LinearizeArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/LinearizeArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/LinearizeArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/RenumberArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/RenumberArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/RenumberArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala b/cmta/src/test/scala/coursemgmt/admin/cli/StudentifyArgumentsSpec.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/StudentifyArgumentsSpec.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/StudentifyArgumentsSpec.scala diff --git a/cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala b/cmta/src/test/scala/coursemgmt/admin/cli/VersionArguments.scala similarity index 100% rename from cmta/src/test/scala/coursemgmttools/admin/cli/VersionArguments.scala rename to cmta/src/test/scala/coursemgmt/admin/cli/VersionArguments.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/Domain.scala b/cmtc/src/main/scala/coursemgmt/client/Domain.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/Domain.scala rename to cmtc/src/main/scala/coursemgmt/client/Domain.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/Main.scala b/cmtc/src/main/scala/coursemgmt/client/Main.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/Main.scala rename to cmtc/src/main/scala/coursemgmt/client/Main.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala b/cmtc/src/main/scala/coursemgmt/client/cli/ArgParsers.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/cli/ArgParsers.scala rename to cmtc/src/main/scala/coursemgmt/client/cli/ArgParsers.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala b/cmtc/src/main/scala/coursemgmt/client/command/GotoExercise.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/GotoExercise.scala rename to cmtc/src/main/scala/coursemgmt/client/command/GotoExercise.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala b/cmtc/src/main/scala/coursemgmt/client/command/GotoFirstExercise.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/GotoFirstExercise.scala rename to cmtc/src/main/scala/coursemgmt/client/command/GotoFirstExercise.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Install.scala b/cmtc/src/main/scala/coursemgmt/client/command/Install.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/Install.scala rename to cmtc/src/main/scala/coursemgmt/client/command/Install.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala b/cmtc/src/main/scala/coursemgmt/client/command/ListExercises.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/ListExercises.scala rename to cmtc/src/main/scala/coursemgmt/client/command/ListExercises.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala b/cmtc/src/main/scala/coursemgmt/client/command/ListSavedStates.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/ListSavedStates.scala rename to cmtc/src/main/scala/coursemgmt/client/command/ListSavedStates.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala b/cmtc/src/main/scala/coursemgmt/client/command/NextExercise.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/NextExercise.scala rename to cmtc/src/main/scala/coursemgmt/client/command/NextExercise.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Package.scala b/cmtc/src/main/scala/coursemgmt/client/command/Package.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/Package.scala rename to cmtc/src/main/scala/coursemgmt/client/command/Package.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala b/cmtc/src/main/scala/coursemgmt/client/command/PreviousExercise.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/PreviousExercise.scala rename to cmtc/src/main/scala/coursemgmt/client/command/PreviousExercise.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala b/cmtc/src/main/scala/coursemgmt/client/command/PullSolution.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/PullSolution.scala rename to cmtc/src/main/scala/coursemgmt/client/command/PullSolution.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala b/cmtc/src/main/scala/coursemgmt/client/command/PullTemplate.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/PullTemplate.scala rename to cmtc/src/main/scala/coursemgmt/client/command/PullTemplate.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala b/cmtc/src/main/scala/coursemgmt/client/command/RestoreState.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/RestoreState.scala rename to cmtc/src/main/scala/coursemgmt/client/command/RestoreState.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala b/cmtc/src/main/scala/coursemgmt/client/command/SaveState.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/SaveState.scala rename to cmtc/src/main/scala/coursemgmt/client/command/SaveState.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala b/cmtc/src/main/scala/coursemgmt/client/command/SetCurrentCourse.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/SetCurrentCourse.scala rename to cmtc/src/main/scala/coursemgmt/client/command/SetCurrentCourse.scala diff --git a/cmtc/src/main/scala/coursemgmttools/client/command/Version.scala b/cmtc/src/main/scala/coursemgmt/client/command/Version.scala similarity index 100% rename from cmtc/src/main/scala/coursemgmttools/client/command/Version.scala rename to cmtc/src/main/scala/coursemgmt/client/command/Version.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/CommandLineArgumentsSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/CommandLineArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/CommandLineArgumentsSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/GotoExerciseArgumentsSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/GotoExerciseArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/GotoExerciseArgumentsSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/GotoFirstExerciseSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/GotoFirstExerciseSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/GotoFirstExerciseSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/InstallArgumentsSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/InstallArgumentsSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/InstallArgumentsSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/ListExercisesSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/ListExercisesSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/ListExercisesSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/ListSavedStatesSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/ListSavedStatesSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/ListSavedStatesSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/NextExerciseSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/NextExerciseSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/NextExerciseSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala b/cmtc/src/test/scala/coursemgmt/client/cli/PreviousExercise.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/PreviousExercise.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/PreviousExercise.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/PullSolutionSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/PullSolutionSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/PullSolutionSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/PullTemplateSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/PullTemplateSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/PullTemplateSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/RestoreStateSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/RestoreStateSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/RestoreStateSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/SaveStateSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/SaveStateSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/SaveStateSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala b/cmtc/src/test/scala/coursemgmt/client/cli/SetCurrentCourseSpec.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/SetCurrentCourseSpec.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/SetCurrentCourseSpec.scala diff --git a/cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala b/cmtc/src/test/scala/coursemgmt/client/cli/VersionArguments.scala similarity index 100% rename from cmtc/src/test/scala/coursemgmttools/client/cli/VersionArguments.scala rename to cmtc/src/test/scala/coursemgmt/client/cli/VersionArguments.scala