-
Notifications
You must be signed in to change notification settings - Fork 635
Expand file tree
/
Copy pathmain.go
More file actions
35 lines (30 loc) · 1014 Bytes
/
main.go
File metadata and controls
35 lines (30 loc) · 1014 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
//go:generate go tool chezmoi completion bash -o completions/chezmoi-completion.bash
//go:generate go tool chezmoi completion fish -o completions/chezmoi.fish
//go:generate go tool chezmoi completion powershell -o completions/chezmoi.ps1
//go:generate go tool chezmoi completion zsh -o completions/chezmoi.zsh
//go:generate go tool generate-helps -o internal/cmd/helps.gen.go
//go:generate go tool generate-install.sh -o assets/scripts/install.sh
//go:generate go tool generate-install.sh -b .local/bin -o assets/scripts/install-local-bin.sh
//go:generate go tool generate-license -o internal/cmd/license.gen.go
// chezmoi manages your dotfiles across multiple machines, securely.
package main
import (
"os"
"chezmoi.io/chezmoi/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)
}
}