Fix module import path and installation instructions
This commit is contained in:
@@ -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:
|
||||||
|
@@ -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 {
|
||||||
|
@@ -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"
|
||||||
)
|
)
|
||||||
|
@@ -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
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module sshtunnel
|
module git.mvl.sh/vleeuwenmenno/sshtunnel
|
||||||
|
|
||||||
go 1.22.2
|
go 1.22.2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user