-
Notifications
You must be signed in to change notification settings - Fork 10
/
main.go
39 lines (30 loc) · 1022 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
35
36
37
38
39
/*
Package main is the root package of the application.
Orbit is a cross-platform task runner for executing commands and generating files from templates.
It started with the need to find a cross-platform alternative of "make"
and "sed -i" commands. As it does not aim to be as powerful as these two
commands, Orbit offers an elegant solution for running tasks and generating
files from templates, whatever the platform you're using.
For more information, go to https://github.com/gulien/orbit.
*/
package main
import (
"os"
"github.com/gulien/orbit/app"
"github.com/gulien/orbit/app/logger"
OrbitVersion "github.com/gulien/orbit/app/version"
)
/*
version will be set by GoReleaser.
It will be the current Git tag (with v prefix stripped) or
the name of the snapshot if you're using the --snapshot flag.
*/
var version = "master"
// main is the root function of the application.
func main() {
OrbitVersion.Current = version
if err := app.RootCmd.Execute(); err != nil {
logger.Error(err)
os.Exit(1)
}
}