Skip to content

Commit

Permalink
add welcome information
Browse files Browse the repository at this point in the history
  • Loading branch information
nj-jay committed Dec 13, 2020
1 parent bc80535 commit 221820b
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions cmd/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,26 @@ var accountCmd = &cobra.Command{
Run: Account,
}

func welcome() {

fmt.Println("Welcome you to use qiniu-cli")
fmt.Println("help you hava a good enjoy")
fmt.Println(" --by nj-jay")
a := " _ _ "
fmt.Println(a)
b := " _ __ (_) (_) __ _ _ _ "
fmt.Println(b)
c := "| '_ \\ | |_____| |/ _` | | | |"
fmt.Println(c)
d := "| | | || |_____| | (_| | |_| |"
fmt.Println(d)
e := "|_| |_|/ | _/ |\\__,_|\\__, |"
fmt.Println(e)
f := " |__/ |__/ |___/ "
fmt.Println(f)

}

func Account(cmd *cobra.Command, params []string) {

ak := viper.GetString("ak")
Expand Down Expand Up @@ -84,6 +104,8 @@ func Account(cmd *cobra.Command, params []string) {
fmt.Println("write config failed: ", err)
}

welcome()

} else if len(params) == 3 && !accountOver {


Expand Down

0 comments on commit 221820b

Please sign in to comment.