From 9a3e9f81cd16c1a6ef283911878d91728372ce17 Mon Sep 17 00:00:00 2001 From: Elias Werberich Date: Sun, 29 Sep 2024 21:38:46 +0200 Subject: [PATCH] Create destination directoy for CLI docs if it does not exist (#724) --- cmd/gen_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/gen_test.go b/cmd/gen_test.go index 4e70d125..d5592bff 100644 --- a/cmd/gen_test.go +++ b/cmd/gen_test.go @@ -41,6 +41,10 @@ func TestCanGetFiles(t *testing.T) { // ignore any bad error trying to remove the file, it may not exist and that is ok _ = os.Remove(configDocsPath) + // create cli docs directory if it does not already exist + err = os.MkdirAll(cliDocsPath, os.ModePerm) + then.Nil(t, err) + cliDocsFiles, err := os.ReadDir(cliDocsPath) then.Nil(t, err)