-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.go
More file actions
41 lines (34 loc) · 1.23 KB
/
Copy pathmain.go
File metadata and controls
41 lines (34 loc) · 1.23 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
30
31
32
33
34
35
36
37
38
39
40
41
package main
import (
"embed"
"github.com/Usefused/cli/cmd"
)
//go:embed README.md
var readmeContent string
// Every fused-cli skill lives under skills/<version>/<skill-name>/. Embedding
// the tree keeps `skill print`/`skill install` usable offline; the release prep
// target snapshots skills/dev into that version folder before tagging.
//
//go:embed skills
var skillFS embed.FS
// The built-in Fused Auth OAuth client is fixed and identical for every
// workspace, so it is embedded rather than generated. `fused-cli auth-client`
// materializes it under the fixed "fused-auth" package name.
//
//go:embed assets/fused-auth
var fusedAuthAssetFS embed.FS
// The built-in Fused Admin management client mirrors the auth client: fixed and
// embedded rather than generated. `fused-cli admin-client` materializes it
// under the fixed "fused-admin" package name.
//
//go:embed assets/fused-admin
var fusedAdminAssetFS embed.FS
func main() {
// Keep --readme aligned with the intentionally short onboarding document;
// detailed command help remains available through --help and docs/.
cmd.ReadmeContent = readmeContent
cmd.EmbeddedSkillFS = skillFS
cmd.FusedAuthAssets = fusedAuthAssetFS
cmd.FusedAdminAssets = fusedAdminAssetFS
cmd.Execute()
}