Skip to content

Commit dc0a509

Browse files
author
{cocoide}
committed
Merge branch 'develop' of https://github.com/cocoide/commitify into develop
2 parents 58c2eea + 94279c1 commit dc0a509

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

cmd/docs.go

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
Copyright © 2023 NAME HERE <EMAIL ADDRESS>
3+
*/
4+
package cmd
5+
6+
import (
7+
"fmt"
8+
9+
"github.com/cocoide/commitify/static"
10+
"github.com/fatih/color"
11+
"github.com/spf13/cobra"
12+
)
13+
14+
// docsCmd represents the docs command
15+
var docsCmd = &cobra.Command{
16+
Use: "docs",
17+
Short: "Document of commitify",
18+
Run: func(cmd *cobra.Command, args []string) {
19+
b, _ := static.Logo.ReadFile("logo.txt")
20+
cyan := color.New(color.FgCyan).SprintFunc()
21+
logo := cyan(string(b))
22+
fmt.Println(logo)
23+
},
24+
}
25+
26+
func init() {
27+
rootCmd.AddCommand(docsCmd)
28+
}

static/embed.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package static
2+
3+
import "embed"
4+
5+
//go:embed logo.txt
6+
var Logo embed.FS

static/logo.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
  ■■■■    ■■■    ■■    ■■  ■■    ■■  ■ ■■■■■■ ■  ■■■■ ■    ■ 
2+
 ■■      ■   ■   ■■    ■■  ■■    ■■  ■   ■■   ■  ■     ■  ■  
3+
 ■      ■     ■  ■■   ■ ■  ■■   ■ ■  ■   ■■   ■  ■     ■  ■  
4+
 ■      ■     ■  ■ ■  ■ ■  ■ ■  ■ ■  ■   ■■   ■  ■      ■■   
5+
 ■      ■     ■  ■ ■  ■ ■  ■ ■  ■ ■  ■   ■■   ■  ■■■■   ■■   
6+
 ■      ■     ■  ■  ■■  ■  ■  ■■  ■  ■   ■■   ■  ■       ■   
7+
 ■■      ■   ■   ■  ■■  ■  ■  ■■  ■  ■   ■■   ■  ■       ■   
8+
  ■■■■    ■■■    ■  ■■  ■  ■  ■■  ■  ■   ■■   ■  ■       ■   

0 commit comments

Comments
 (0)