From dcd416a521494f4e2944a34b51a6a21b7baafcbc Mon Sep 17 00:00:00 2001
From: Liz Rice <liz@lizrice.com>
Date: Tue, 20 Jun 2017 09:52:53 +0100
Subject: [PATCH] Executable name changes

Updates to travis file, readme and help text
---
 .travis.yml | 2 +-
 README.md   | 8 ++------
 cmd/root.go | 2 +-
 3 files changed, 4 insertions(+), 8 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index 7d40390..c4638d6 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -6,4 +6,4 @@ install:
   - go get github.com/spf13/viper
   - go get gopkg.in/yaml.v2
 script:
-  - go build -o cis_kubernetes .
+  - go build -o kube-bench .
diff --git a/README.md b/README.md
index f2bfb22..130db22 100644
--- a/README.md
+++ b/README.md
@@ -21,7 +21,7 @@ If Go is installed on the target machines, you can simply clone this repository
 ```./kube-bench <master|node>```
 
 ## Usage
-```./cis_kubernetes [command]```
+```./kube-bench [command]```
 
 ```
 Available Commands:
@@ -33,7 +33,7 @@ Available Commands:
 Flags:
   -c, --check string   A comma-delimited list of checks to run as specified in CIS document. Example --check="1.1.1,1.1.2"
   -g, --group string   Run all the checks under this comma-delimited list of groups. Example --group="1.1"
-  -h, --help           help for cis_kubernetes
+  -h, --help           help for kube-bench
   --json               Output results as JSON
 ```
 
@@ -89,7 +89,3 @@ These operations are:
 - `lte`: tests if the flag value is less than or equal to the compared value.
 - `has`: tests if the flag value contains the compared value.
 - `nothave`: tests if the flag value does not contain the compared value.
-
-
-
-
diff --git a/cmd/root.go b/cmd/root.go
index 0e0e5c9..aabc2c6 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -40,7 +40,7 @@ var (
 
 // RootCmd represents the base command when called without any subcommands
 var RootCmd = &cobra.Command{
-	Use:   "cis_kubernetes",
+	Use:   os.Args[0],
 	Short: "Run CIS Benchmarks checks against a Kubernetes deployment",
 	Long:  `This tool runs the CIS Kubernetes 1.6 Benchmark v1.0.0 checks.`,
 }
-- 
GitLab