-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmain.go
More file actions
40 lines (33 loc) · 712 Bytes
/
Copy pathmain.go
File metadata and controls
40 lines (33 loc) · 712 Bytes
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
package main
import (
_ "embed"
"errors"
"os"
"github.com/git-hulk/clime/cmd"
"github.com/git-hulk/clime/internal/prompt"
"github.com/git-hulk/clime/internal/version"
)
//go:embed SKILL.md
var skillContent string
//go:embed agents/openai.yaml
var agentYAML string
var (
buildVersion = "dev"
gitCommit = "unknown"
buildDate = "unknown"
)
func main() {
var terminal cmd.Terminal
version.Version = buildVersion
version.GitCommit = gitCommit
version.BuildDate = buildDate
cmd.SkillContent = skillContent
cmd.AgentYAML = agentYAML
if err := cmd.Execute(); err != nil {
if errors.Is(err, prompt.ErrInterrupted) {
os.Exit(130)
}
terminal.Errorf("Error: %v", err)
os.Exit(1)
}
}