Skip to content

Commit

Permalink
Add blue colour to new and version commands
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis <[email protected]>
  • Loading branch information
alexellis committed Sep 29, 2017
1 parent e26f445 commit 8fead1a
Show file tree
Hide file tree
Showing 8 changed files with 990 additions and 2 deletions.
3 changes: 2 additions & 1 deletion commands/new_function.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"io/ioutil"
"os"

"github.com/morikuni/aec"
"github.com/openfaas/faas-cli/builder"
"github.com/spf13/cobra"
)
Expand Down Expand Up @@ -87,7 +88,7 @@ functions:
image: ` + functionName + `
`

fmt.Printf(figletStr)
fmt.Printf(aec.BlueF.Apply(figletStr))
fmt.Println()
fmt.Printf("Function created in folder: %s\n", functionName)

Expand Down
4 changes: 3 additions & 1 deletion commands/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package commands
import (
"fmt"

"github.com/morikuni/aec"
"github.com/spf13/cobra"
)

Expand Down Expand Up @@ -43,7 +44,8 @@ func runVersion(cmd *cobra.Command, args []string) {
if shortVersion {
fmt.Println(Version)
} else {
fmt.Printf(figletStr)

fmt.Printf(aec.BlueF.Apply(figletStr))
fmt.Printf("Commit: %s\n", GitCommit)
fmt.Printf("Version: %s\n", Version)
}
Expand Down
21 changes: 21 additions & 0 deletions vendor/github.com/morikuni/aec/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

178 changes: 178 additions & 0 deletions vendor/github.com/morikuni/aec/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

137 changes: 137 additions & 0 deletions vendor/github.com/morikuni/aec/aec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8fead1a

Please sign in to comment.