File tree Expand file tree Collapse file tree 3 files changed +32
-1
lines changed
Expand file tree Collapse file tree 3 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ builds:
1515 - amd64
1616 - arm64
1717 ldflags :
18- - -s -w -X main .version={{.Version}}
18+ - -s -w -X github.com/yarlson/ftl/cmd .version={{.Version}}
1919
2020archives :
2121 - id : release_archive
Original file line number Diff line number Diff line change @@ -44,6 +44,14 @@ sudo mv ftl /usr/local/bin/
4444go install github.com/yarlson/ftl@latest
4545```
4646
47+ ### Verify Installation
48+
49+ After installing FTL, verify it's working correctly by checking the version:
50+
51+ ``` bash
52+ ftl version
53+ ```
54+
4755## Configuration
4856
4957Create an ` ftl.yaml ` file in your project root:
Original file line number Diff line number Diff line change 1+ package cmd
2+
3+ import (
4+ "fmt"
5+
6+ "github.com/spf13/cobra"
7+ )
8+
9+ // version is set during build time
10+ var version = "dev"
11+
12+ var versionCmd = & cobra.Command {
13+ Use : "version" ,
14+ Short : "Print the version number of FTL" ,
15+ Long : `Print the version number of FTL deployment tool` ,
16+ Run : func (cmd * cobra.Command , args []string ) {
17+ fmt .Printf ("FTL version %s\n " , version )
18+ },
19+ }
20+
21+ func init () {
22+ rootCmd .AddCommand (versionCmd )
23+ }
You can’t perform that action at this time.
0 commit comments