-
Notifications
You must be signed in to change notification settings - Fork 0
/
root.go
34 lines (30 loc) 路 1.17 KB
/
root.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
)
var rootCmd = &cobra.Command{
Use: "texsep",
Long: `
Separate your pdfs from your tex files
___ ___ ___ ___ ___
/\__\ /| | /\__\ /\__\ /\ \
___ /:/ _/_ |:| | /:/ _/_ /:/ _/_ /::\ \
/\__\ /:/ /\__\ |:| | /:/ /\ \ /:/ /\__\ /:/\:\__\
/:/ / /:/ /:/ _/_ __|:|__| /:/ /::\ \ /:/ /:/ _/_ /:/ /:/ /
/:/__/ /:/_/:/ /\__\ /::::\__\_____ /:/_/:/\:\__\ /:/_/:/ /\__\ /:/_/:/ /
/::\ \ \:\/:/ /:/ / ~~~~\::::/___/ \:\/:/ /:/ / \:\/:/ /:/ / \:\/:/ /
/:/\:\ \ \::/_/:/ / |:|~~| \::/ /:/ / \::/_/:/ / \::/__/
\/__\:\ \ \:\/:/ / |:| | \/_/:/ / \:\/:/ / \:\ \
\:\__\ \::/ / |:|__| /:/ / \::/ / \:\__\
\/__/ \/__/ |/__/ \/__/ \/__/ \/__/
`,
}
// Execute ... Execute the main command
func Execute() {
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)
}
}