Fix module import path and installation instructions

This commit is contained in:
Menno van Leeuwen 2025-05-23 15:19:59 +02:00
parent ee9c0edf8a
commit e136c30266
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE
6 changed files with 104 additions and 104 deletions

View File

@ -10,7 +10,7 @@ A Go-based command-line tool to manage SSH tunnels. This tool allows you to:
## Installation
```
go install git.mvl.sh/vleeuwenmenno/sshtunnel/cmd@latest
go install git.mvl.sh/vleeuwenmenno/sshtunnel@latest
```
Or clone this repository and build it yourself:

View File

@ -8,8 +8,8 @@ import (
"strings"
"time"
"git.mvl.sh/vleeuwenmenno/sshtunnel/pkg/stats"
"github.com/spf13/cobra"
"sshtunnel/pkg/stats"
)
var (
@ -111,9 +111,9 @@ The tunnel will run in the background and can be managed using the list and stop
fmt.Printf("Started SSH tunnel (ID: %d): localhost:%d -> %s:%d (%s) [PID: %d] [Status: %s]\n",
id, localPort, remoteHost, remotePort, sshServer, pid, status)
},
}
}
func init() {
func init() {
rootCmd.AddCommand(startCmd)
// Add flags for the start command
@ -127,7 +127,7 @@ The tunnel will run in the background and can be managed using the list and stop
startCmd.MarkFlagRequired("local")
startCmd.MarkFlagRequired("remote")
startCmd.MarkFlagRequired("server")
}
}
// verifyTunnelActive checks if the tunnel is actually working
func verifyTunnelActive(port int) bool {

View File

@ -5,8 +5,8 @@ import (
"os"
"time"
"sshtunnel/pkg/monitor"
"sshtunnel/pkg/stats"
"git.mvl.sh/vleeuwenmenno/sshtunnel/pkg/monitor"
"git.mvl.sh/vleeuwenmenno/sshtunnel/pkg/stats"
"github.com/spf13/cobra"
)

View File

@ -5,8 +5,8 @@ import (
"os"
"syscall"
"git.mvl.sh/vleeuwenmenno/sshtunnel/pkg/stats"
"github.com/spf13/cobra"
"sshtunnel/pkg/stats"
)
var (

2
go.mod
View File

@ -1,4 +1,4 @@
module sshtunnel
module git.mvl.sh/vleeuwenmenno/sshtunnel
go 1.22.2

View File

@ -4,7 +4,7 @@ import (
"fmt"
"os"
"sshtunnel/cmd"
"git.mvl.sh/vleeuwenmenno/sshtunnel/cmd"
)
func main() {