You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/sish.go
+13-15
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,4 @@
1
+
// Package cmd implements the sish CLI command.
1
2
package cmd
2
3
3
4
import (
@@ -17,35 +18,29 @@ import (
17
18
)
18
19
19
20
var (
20
-
// Version describes the version of the current build
21
+
// Version describes the version of the current build.
21
22
Version="dev"
22
23
23
-
// Commit describes the commit of the current build
24
+
// Commit describes the commit of the current build.
24
25
Commit="none"
25
26
26
-
// Date describes the date of the current build
27
+
// Date describes the date of the current build.
27
28
Date="unknown"
28
29
30
+
// configFile holds the location of the config file from CLI flags.
29
31
configFilestring
30
32
33
+
// rootCmd is the root cobra command.
31
34
rootCmd=&cobra.Command{
32
35
Use: "sish",
33
36
Short: "The sish command initializes and runs the sish ssh multiplexer",
34
-
Long: "sish is a command line utility that implements an SSH server that can handle HTTP(S)/WS(S)/TCP multiplexing, forwarding and loadbalancing.\nIt can handle multiple vhosting and reverse tunneling endpoints for a large number of clients.",
37
+
Long: "sish is a command line utility that implements an SSH server that can handle HTTP(S)/WS(S)/TCP multiplexing, forwarding and load balancing.\nIt can handle multiple vhosting and reverse tunneling endpoints for a large number of clients.",
// init initializes flags used by the root command.
49
44
funcinit() {
50
45
cobra.OnInitialize(initConfig)
51
46
@@ -118,6 +113,8 @@ func init() {
118
113
rootCmd.PersistentFlags().DurationP("cleanup-unbound-timeout", "", 5*time.Second, "Duration to wait before cleaning up an unbound (unforwarded) connection")
119
114
}
120
115
116
+
// initConfig initializes the configuration and loads needed
0 commit comments