Skip to content

Commit e45215b

Browse files
fix: readd doc gen file (#1246)
Signed-off-by: Darren Murray <[email protected]>
1 parent ab1c338 commit e45215b

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

cli/cmd/docs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:generate go run ../docs/main.go
1+
//go:generate go run ../../scripts/docs/doc_gen.go
22
//
33
// Author:: Salim Afiune Maya (<[email protected]>)
44
// Copyright:: Copyright 2020, Lacework Inc.

scripts/docs/doc_gen.go

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
package main
2+
3+
import (
4+
"fmt"
5+
6+
"github.com/lacework/go-sdk/cli/cmd"
7+
)
8+
9+
//
10+
// Author:: Salim Afiune Maya (<[email protected]>)
11+
// Copyright:: Copyright 2020, Lacework Inc.
12+
// License:: Apache License, Version 2.0
13+
//
14+
// Licensed under the Apache License, Version 2.0 (the "License");
15+
// you may not use this file except in compliance with the License.
16+
// You may obtain a copy of the License at
17+
//
18+
// http://www.apache.org/licenses/LICENSE-2.0
19+
//
20+
// Unless required by applicable law or agreed to in writing, software
21+
// distributed under the License is distributed on an "AS IS" BASIS,
22+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
23+
// See the License for the specific language governing permissions and
24+
// limitations under the License.
25+
//
26+
27+
func main() {
28+
if err := cmd.GenerateMarkdownDocs("../../cli/docs"); err != nil {
29+
fmt.Println(err)
30+
}
31+
}

0 commit comments

Comments
 (0)