-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
29 lines (27 loc) · 1.24 KB
/
Copy pathmain.go
File metadata and controls
29 lines (27 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Command selfdoc: Static Site Generator that builds a project's
// documentation site directly from its source code, so the docs can never
// drift from the code they describe, with SEO/AEO, first-class blog, search,
// and cross-project linking built in.
//
// All of that ships as one binary, which builds the site, checks it, and
// publishes it.
//
// The entry point is the module root, so the binary installs with
// "go install github.com/stricttools/selfdoc@v0" and takes its name from the
// module's last path element. Every engine package lives under internal/, and
// the command tree -- with the language extractors every code directive is
// resolved through -- is registered by internal/cli.
package main
import (
"github.com/stricttools/selfdoc/internal/cli"
"github.com/smm-h/strictcli/go/strictcli"
)
func main() {
// The application's type is named rather than inferred, so this file says
// on its face that the process is handed to strictcli. The suites compile
// two more main packages -- the fake external tools they put on PATH --
// and a strictcli import is what tells a reader, and the release flow's
// schema dump, which of the three is the CLI.
var app *strictcli.App = cli.New(cli.Options{Version: Version})
app.Run()
}