forked from suntong/html2md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
html2md_main.go
43 lines (33 loc) · 992 Bytes
/
html2md_main.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
35
36
37
38
39
40
41
42
43
////////////////////////////////////////////////////////////////////////////
// Program: html2md
// Purpose: HTML to Markdown
// Authors: Tong Sun (c) 2020-2024, All rights reserved
////////////////////////////////////////////////////////////////////////////
package main
//go:generate sh -v html2md_cliGen.sh
import (
"fmt"
"os"
"github.com/mkideal/cli"
)
////////////////////////////////////////////////////////////////////////////
// Constant and data type/structure definitions
////////////////////////////////////////////////////////////////////////////
// Global variables definitions
var (
progname = "html2md"
version = "1.5.0"
date = "2024-02-10"
rootArgv *rootT
)
////////////////////////////////////////////////////////////////////////////
// Function definitions
// Function main
func main() {
cli.SetUsageStyle(cli.DenseNormalStyle)
if err := cli.Root(root).Run(os.Args[1:]); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
fmt.Println("")
}