2022-05-13 13:30:22 +00:00
|
|
|
package main
|
|
|
|
|
2022-05-14 17:56:09 +00:00
|
|
|
import (
|
2022-10-10 08:27:45 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/api"
|
2023-01-06 15:15:57 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/auth"
|
2022-11-21 14:39:53 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/bundle"
|
2022-11-23 14:20:03 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/bundle/debug"
|
2022-12-05 23:40:45 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/bundle/debug/deploy"
|
2022-09-05 18:25:54 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/configure"
|
2022-05-14 17:56:09 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/fs"
|
|
|
|
_ "github.com/databricks/bricks/cmd/init"
|
2022-07-07 18:56:59 +00:00
|
|
|
"github.com/databricks/bricks/cmd/root"
|
|
|
|
_ "github.com/databricks/bricks/cmd/sync"
|
Include build information and add version command (#194)
Includes relevant fields listed on
https://goreleaser.com/customization/templates/ into build artifacts.
The version command outputs the version by default:
```
$ bricks version
0.0.21-devel
```
Or all build information if `--json` is specified:
```
$ bricks version --json
{
"ProjectName": "bricks",
"Version": "0.0.21-devel",
"Branch": "version-info",
"Tag": "v0.0.20",
"ShortCommit": "193b56b",
"FullCommit": "193b56b0929128c0836d35e913c46fd66fa2a93c",
"CommitTime": "2023-02-02T22:04:42+01:00",
"Summary": "v0.0.20-5-g193b56b",
"Major": 0,
"Minor": 0,
"Patch": 20,
"Prerelease": "",
"IsSnapshot": true,
"BuildTime": "2023-02-02T22:07:36+01:00"
}
```
2023-02-03 14:38:53 +00:00
|
|
|
_ "github.com/databricks/bricks/cmd/version"
|
2022-05-14 17:56:09 +00:00
|
|
|
)
|
2022-05-13 13:30:22 +00:00
|
|
|
|
|
|
|
func main() {
|
2022-12-21 10:58:51 +00:00
|
|
|
root.Execute()
|
2022-05-13 13:30:22 +00:00
|
|
|
}
|