Skip to content

Commit a553b78

Browse files
committed
add version into realease and --help
1 parent ec9c0b7 commit a553b78

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,26 @@ pg-terminal is a command-line tool for connecting to and interacting with Postgr
1111

1212
## Installation
1313

14+
### Version 1
15+
1. download the current realse from gitHub
16+
~~~ bash
17+
wget https://github.com/tweigel-dev/pg-terminal/releases/download/v0.0.3/pg-terminal
18+
~~~
19+
2. make the pg-terminal file executable with:
20+
~~~bash
21+
chmod +x pg-terminal
22+
~~~
23+
3. move to folder
24+
~~~bash
25+
sudo mv pg-terminal /usr/local/bin/pg-terminal
26+
~~~
27+
4. enjoy
28+
~~~bash
29+
pg-terminal --help
30+
~~~
31+
5. contribute to pg-terminal
32+
### Version 2 (build from scratch)
33+
1434
To install pg-terminal, you will need to have Go installed on your system.
1535

1636
1. Download the source code for pg-terminal.

pg-terminal.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212

1313
// rootCmd represents the base command when called without any subcommands
1414
var rootCmd = &cobra.Command{
15+
Version: "v0.0.4",
1516
Use: "pg-terminal",
1617
Short: "A tool for sending SQL statements to a PostgreSQL instance",
1718
Long: `pg-terminal is a command-line tool for sending SQL statements to a

0 commit comments

Comments
 (0)