From 979327a9a25eae2921ec50f8682c359faebf4e67 Mon Sep 17 00:00:00 2001 From: amtoine Date: Fri, 26 Jan 2024 19:00:52 +0100 Subject: [PATCH] add log statements to `toolkit doc` --- toolkit.nu | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toolkit.nu b/toolkit.nu index 30af921..ec6f657 100644 --- a/toolkit.nu +++ b/toolkit.nu @@ -1,4 +1,5 @@ use std repeat +use std log # NOTE: this will likely get replaced by Nupm workspaces in the future def list-modules-of-workspace []: nothing -> list { @@ -184,6 +185,7 @@ def document-command [ args: record ]: string -> string { let command = $in + log debug $"documenting command `($command)`" let command_file = $command | str replace --all ' ' '-' @@ -261,6 +263,7 @@ def document-module [ depth?: int = 0, ]: record, submodules: list> -> nothing { let module = $in + log debug $"documenting module `($module.name)`" mkdir ($module.name | path basename) cd ($module.name | path basename)