summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorManlio Perillo <manlio.perillo@gmail.com>2023-04-09 18:48:19 +0200
committerManlio Perillo <manlio.perillo@gmail.com>2023-04-11 12:45:55 +0200
commit647a24afae436d9d10ff731c7110448d6be00ccf (patch)
tree0fcae467cc24fd0e2b9cb9008b5e3ad6c19b6fc2
parentc656536d3f322be31fffd88daa9a43683b11f693 (diff)
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.
-rw-r--r--build.zig4
-rw-r--r--test/tests.zig2
2 files changed, 3 insertions, 3 deletions
diff --git a/build.zig b/build.zig
index 3281ed4..32ce74a 100644
--- a/build.zig
+++ b/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,
}),
diff --git a/test/tests.zig b/test/tests.zig
index 3de42db..c8f4af2 100644
--- a/test/tests.zig
+++ b/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,
}),