Fix module import path and installation instructions

This commit is contained in:
2025-05-23 15:19:59 +02:00
parent ee9c0edf8a
commit e136c30266
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 ## 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: Or clone this repository and build it yourself:

View File

@@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
"git.mvl.sh/vleeuwenmenno/sshtunnel/pkg/stats"
"github.com/spf13/cobra" "github.com/spf13/cobra"
"sshtunnel/pkg/stats"
) )
var ( 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", fmt.Printf("Started SSH tunnel (ID: %d): localhost:%d -> %s:%d (%s) [PID: %d] [Status: %s]\n",
id, localPort, remoteHost, remotePort, sshServer, pid, status) id, localPort, remoteHost, remotePort, sshServer, pid, status)
}, },
} }
func init() { func init() {
rootCmd.AddCommand(startCmd) rootCmd.AddCommand(startCmd)
// Add flags for the start command // 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("local")
startCmd.MarkFlagRequired("remote") startCmd.MarkFlagRequired("remote")
startCmd.MarkFlagRequired("server") startCmd.MarkFlagRequired("server")
} }
// verifyTunnelActive checks if the tunnel is actually working // verifyTunnelActive checks if the tunnel is actually working
func verifyTunnelActive(port int) bool { func verifyTunnelActive(port int) bool {

View File

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

View File

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

2
go.mod
View File

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

View File

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