databricks-cli/internal
Pieter Noordhuis 1c27f081e0
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 15:38:53 +01:00
..
build Include build information and add version command (#194) 2023-02-03 15:38:53 +01:00
api_test.go Fix integration tests for windows (#165) 2023-01-11 13:32:02 +01:00
filer_test.go Use []byte for files in workspace (#162) 2023-01-05 12:03:31 +01:00
helpers.go Add RequireSuccessfulRun helper (#125) 2022-12-09 15:41:04 +01:00
locker_test.go Fix integration tests for windows (#165) 2023-01-11 13:32:02 +01:00
sync_test.go Update sync defaults (#177) 2023-01-24 15:06:59 +01:00