Skip to content

Commit

Permalink
Add banner
Browse files Browse the repository at this point in the history
  • Loading branch information
hahwul committed Nov 1, 2020
1 parent 2c13d14 commit 3cbda1f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/spf13/cobra"
"os"

version "github.com/hahwul/mzap/pkg/version"
zap "github.com/hahwul/mzap/pkg/zap"
homedir "github.com/mitchellh/go-homedir"
"github.com/spf13/viper"
Expand All @@ -16,7 +17,6 @@ var options zap.OptionsZAP
// rootCmd represents the base command when called without any subcommands
var rootCmd = &cobra.Command{
Use: "mzap",
Short: "Multiple target/agent ZAP scanning",
}

// Execute adds all child commands to the root command and sets flags appropriately.
Expand All @@ -29,6 +29,7 @@ func Execute() {
}

func init() {
version.Banner()
cobra.OnInitialize(initConfig)

// Here you will define your flags and configuration settings.
Expand Down
19 changes: 19 additions & 0 deletions pkg/version/banner.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package version

import (
"fmt"
"os"
)

func Banner(){
fmt.Fprintln(os.Stderr," ,/")
fmt.Fprintln(os.Stderr," ,'/")
fmt.Fprintln(os.Stderr," ,' /")
fmt.Fprintln(os.Stderr," ,' /_____,")
fmt.Fprintln(os.Stderr," .'____ ,' MZAP")
fmt.Fprintln(os.Stderr," / ,' [ Multiple target/agent ZAP scanning ]")
fmt.Fprintln(os.Stderr," / ,' [ "+VERSION+" ] [ by @hahwul ]")
fmt.Fprintln(os.Stderr," /,'")
fmt.Fprintln(os.Stderr," /'")
fmt.Fprintln(os.Stderr,"")
}

0 comments on commit 3cbda1f

Please sign in to comment.