Skip to content

Commit 1f2ee78

Browse files
committed
Version fixes
1 parent bf7e777 commit 1f2ee78

7 files changed

Lines changed: 21 additions & 19 deletions

File tree

.DS_Store

-6 KB
Binary file not shown.

.claude/settings.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,11 @@ go.work.sum
2323

2424
# env file
2525
.env
26+
27+
# Built binary
28+
/docsgpt-cli
29+
/docsgpt-cli-*
30+
31+
# Editor / tooling
32+
.claude/
33+
.DS_Store

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
VERSION ?= $(shell git describe --tags --always --dirty 2>/dev/null || echo dev)
2+
3+
.PHONY: build clean
4+
5+
build:
6+
go build -ldflags "-X 'docsgpt-cli/cmd.Version=$(VERSION)'" -o docsgpt-cli .
7+
8+
clean:
9+
rm -f docsgpt-cli

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ You can install DocsGPT-cli in three ways:
1010

1111
### 1. Download the Binary
1212

13-
Download the latest binary. You can run it as is or use the `install` command to add the binary to your system's `PATH`:
13+
Download the latest binary from the [Releases page](https://github.com/arc53/DocsGPT-cli/releases). You can run it as is or use the `install` command to add the binary to your system's `PATH`:
1414

1515
```bash
1616
./docsgpt-cli

cmd/root.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import (
99
"github.com/spf13/cobra"
1010
)
1111

12+
var Version = "dev"
13+
1214
var (
1315
globalURL string
1416
globalKey string
@@ -22,7 +24,7 @@ var (
2224

2325
var rootCmd = &cobra.Command{
2426
Use: "docsgpt-cli",
25-
Version: "1.0.0",
27+
Version: Version,
2628
Short: "A CLI for interacting with DocsGPT",
2729
Long: "Docsgpt-cli is a command-line interface (CLI) tool that allows you to interact with DocsGPT.",
2830
PersistentPreRunE: func(cmd *cobra.Command, args []string) error {

docsgpt-cli

-19.1 MB
Binary file not shown.

0 commit comments

Comments
 (0)