forked from twpayne/chezmoi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
34 lines (28 loc) · 748 Bytes
/
main.go
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
//go:build go1.16
// +build go1.16
//go:generate go run . completion bash -o completions/chezmoi-completion.bash
//go:generate go run . completion fish -o completions/chezmoi.fish
//go:generate go run . completion powershell -o completions/chezmoi.ps1
//go:generate go run . completion zsh -o completions/chezmoi.zsh
//go:generate go run ./internal/cmds/generate-install.sh -o assets/scripts/install.sh
package main
import (
"os"
"github.com/twpayne/chezmoi/v2/internal/cmd"
)
var (
version string
commit string
date string
builtBy string
)
func main() {
if exitCode := cmd.Main(cmd.VersionInfo{
Version: version,
Commit: commit,
Date: date,
BuiltBy: builtBy,
}, os.Args[1:]); exitCode != 0 {
os.Exit(exitCode)
}
}