File tree Expand file tree Collapse file tree 3 files changed +42
-0
lines changed
Expand file tree Collapse file tree 3 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ package static
2+
3+ import "embed"
4+
5+ //go:embed logo.txt
6+ var Logo embed.FS
Original file line number Diff line number Diff line change 1+ ■■■■ ■■■ ■■ ■■ ■■ ■■ ■ ■■■■■■ ■ ■■■■ ■ ■
2+ ■■ ■ ■ ■■ ■■ ■■ ■■ ■ ■■ ■ ■ ■ ■
3+ ■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■ ■■ ■ ■ ■ ■
4+ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■■ ■ ■ ■■
5+ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■ ■■ ■ ■■■■ ■■
6+ ■ ■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■
7+ ■■ ■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■
8+ ■■■■ ■■■ ■ ■■ ■ ■ ■■ ■ ■ ■■ ■ ■ ■
You can’t perform that action at this time.
0 commit comments