Skip to content

Commit 0a21264

Browse files
committed
Update generator.go
1 parent fa285f0 commit 0a21264

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/generator.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package docs
22

33
import (
44
"embed"
5+
"errors"
56
"fmt"
67
"os"
78
"regexp"
@@ -119,7 +120,7 @@ func (g *Generator) Generate(dir string, format Format) error {
119120

120121
switch format {
121122
case FormatMarkdown:
122-
return g.renderTablesAsMarkdown(dir)
123+
return errors.New("markdown format is not supported directly via the plugin, use the `cloudquery tables` command instead")
123124
case FormatJSON:
124125
return g.renderTablesAsJSON(dir)
125126
default:

0 commit comments

Comments
 (0)