Skip to content

Commit

Permalink
Create destination directoy for CLI docs if it does not exist (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
bephinix authored Sep 29, 2024
1 parent 9e057ae commit 9a3e9f8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/gen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 9a3e9f8

Please sign in to comment.