From 8a561cf920839c0ea6419b64a868b48d7e2c0d21 Mon Sep 17 00:00:00 2001
From: Rasmus Moorats <me@neonsea.uk>
Date: Wed, 29 Aug 2018 17:50:02 +0300
Subject: [PATCH] [cmd] remove unnecessary exports

---
 commands/auth.go       | 8 ++++----
 commands/call.go       | 8 ++++----
 commands/connect.go    | 8 ++++----
 commands/disconnect.go | 8 ++++----
 commands/help.go       | 8 ++++----
 5 files changed, 20 insertions(+), 20 deletions(-)

diff --git a/commands/auth.go b/commands/auth.go
index 01b599e..f8c8ba3 100644
--- a/commands/auth.go
+++ b/commands/auth.go
@@ -24,20 +24,20 @@ import (
 	"gitlab.com/neonsea/iopshell/internal/setting"
 )
 
-var Auth = cmd.Command{
+var auth = cmd.Command{
 	Name:        "auth",
 	UsageText:   "auth <user> <pass>",
 	Description: "Authenticates as <user> with <pass>",
-	Action:      auth,
+	Action:      authRun,
 	MinArg:      3,
 	MaxArg:      3,
 }
 
-func auth(param []string) {
+func authRun(param []string) {
 	setting.Vars.Conn.Call("session", "login", map[string]interface{}{"username": param[0],
 		"password": param[1]})
 }
 
 func init() {
-	Auth.Register()
+	auth.Register()
 }
diff --git a/commands/call.go b/commands/call.go
index 7d89e3a..bd88987 100644
--- a/commands/call.go
+++ b/commands/call.go
@@ -27,15 +27,15 @@ import (
 	"gitlab.com/neonsea/iopshell/internal/textmutate"
 )
 
-var Call = cmd.Command{
+var call = cmd.Command{
 	Name:        "call",
 	UsageText:   "call <path> <method> [message]",
 	Description: "Calls <method> from <path>. Additionally, [message] is passed to the call if set",
-	Action:      call,
+	Action:      callRun,
 	MinArg:      3,
 }
 
-func call(param []string) {
+func callRun(param []string) {
 	if len(param) == 2 {
 		setting.Vars.Conn.Call(param[0], param[1], make(map[string]interface{}))
 	} else {
@@ -46,5 +46,5 @@ func call(param []string) {
 }
 
 func init() {
-	Call.Register()
+	call.Register()
 }
diff --git a/commands/connect.go b/commands/connect.go
index 4b868d2..3e2bca5 100644
--- a/commands/connect.go
+++ b/commands/connect.go
@@ -24,15 +24,15 @@ import (
 	"gitlab.com/neonsea/iopshell/internal/setting"
 )
 
-var Connect = cmd.Command{
+var connect = cmd.Command{
 	Name:        "connect",
 	UsageText:   "connect [host]",
 	Description: "Connects to [host]. If none specified, uses values from config",
-	Action:      connect,
+	Action:      connectRun,
 	MaxArg:      2,
 }
 
-func connect(param []string) {
+func connectRun(param []string) {
 	var addr string
 	if len(param) == 0 {
 		addr = setting.Host
@@ -43,5 +43,5 @@ func connect(param []string) {
 }
 
 func init() {
-	Connect.Register()
+	connect.Register()
 }
diff --git a/commands/disconnect.go b/commands/disconnect.go
index 9f32c7d..0836cd7 100644
--- a/commands/disconnect.go
+++ b/commands/disconnect.go
@@ -24,18 +24,18 @@ import (
 	"gitlab.com/neonsea/iopshell/internal/setting"
 )
 
-var Disconnect = cmd.Command{
+var disconnect = cmd.Command{
 	Name:        "disconnect",
 	UsageText:   "disconnect",
 	Description: "Disconnects from the currently connected host",
-	Action:      disconnect,
+	Action:      disconnectRun,
 	MaxArg:      1,
 }
 
-func disconnect(param []string) {
+func disconnectRun(param []string) {
 	setting.Cmd <- []string{"disconnect"}
 }
 
 func init() {
-	Disconnect.Register()
+	disconnect.Register()
 }
diff --git a/commands/help.go b/commands/help.go
index 7c8bc95..4c1dadf 100644
--- a/commands/help.go
+++ b/commands/help.go
@@ -25,15 +25,15 @@ import (
 	"gitlab.com/neonsea/iopshell/internal/cmd"
 )
 
-var Help = cmd.Command{
+var help = cmd.Command{
 	Name:        "help",
 	UsageText:   "help [command]",
 	Description: "Prints some help info. If [command] is specified, prints info on that",
-	Action:      help,
+	Action:      helpRun,
 	MaxArg:      2,
 }
 
-func help(param []string) {
+func helpRun(param []string) {
 	if len(param) == 0 {
 		fmt.Println("Available commands:")
 		for cmd := range cmd.CommandList {
@@ -52,5 +52,5 @@ func help(param []string) {
 }
 
 func init() {
-	Help.Register()
+	help.Register()
 }