Skip to content

Commit

Permalink
feat: support cli version
Browse files Browse the repository at this point in the history
  • Loading branch information
fredliang44 committed Jan 10, 2021
1 parent da3d4dc commit 94f37e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ builds:
- windows
- darwin
ldflags:
- -X cmd.version={{.Version}}
- -X github.com/let-sh/cli/cmd.version={{.Version}}

archives:
- replacements:
Expand Down
4 changes: 3 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ limitations under the License.
*/
package main

import "github.com/let-sh/cli/cmd"
import (
"github.com/let-sh/cli/cmd"
)

func main() {
cmd.Execute()
Expand Down

0 comments on commit 94f37e3

Please sign in to comment.