Skip to content

Commit

Permalink
add version into realease and --help
Browse files Browse the repository at this point in the history
  • Loading branch information
tweigel-dev committed Dec 22, 2022
1 parent ec9c0b7 commit a553b78
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ pg-terminal is a command-line tool for connecting to and interacting with Postgr

## Installation

### Version 1
1. download the current realse from gitHub
~~~ bash
wget https://github.com/tweigel-dev/pg-terminal/releases/download/v0.0.3/pg-terminal
~~~
2. make the pg-terminal file executable with:
~~~bash
chmod +x pg-terminal
~~~
3. move to folder
~~~bash
sudo mv pg-terminal /usr/local/bin/pg-terminal
~~~
4. enjoy
~~~bash
pg-terminal --help
~~~
5. contribute to pg-terminal
### Version 2 (build from scratch)

To install pg-terminal, you will need to have Go installed on your system.

1. Download the source code for pg-terminal.
Expand Down
1 change: 1 addition & 0 deletions pg-terminal.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (

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

0 comments on commit a553b78

Please sign in to comment.