Browse Source

build: improve PrintStep, SkipStep and PatchStep names

Use lover case for the step names.

Add the exercise name for the SkipStep and PatchStep step name.
Manlio Perillo 2 years ago
parent
commit
647a24afae
2 changed files with 3 additions and 3 deletions
  1. 2 2
      build.zig
  2. 1 1
      test/tests.zig

+ 2 - 2
build.zig

@@ -875,7 +875,7 @@ const PrintStep = struct {
         self.* = .{
             .step = Step.init(.{
                 .id = .custom,
-                .name = "Print",
+                .name = "print",
                 .owner = owner,
                 .makeFn = make,
             }),
@@ -904,7 +904,7 @@ const SkipStep = struct {
         self.* = .{
             .step = Step.init(.{
                 .id = .custom,
-                .name = "Skip",
+                .name = owner.fmt("skip {s}", .{exercise.main_file}),
                 .owner = owner,
                 .makeFn = make,
             }),

+ 1 - 1
test/tests.zig

@@ -109,7 +109,7 @@ const PatchStep = struct {
         self.* = .{
             .step = Step.init(.{
                 .id = .custom,
-                .name = "Patch",
+                .name = owner.fmt("patch {s}", .{exercise.main_file}),
                 .owner = owner,
                 .makeFn = make,
             }),