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 main
import (
"context"
_ "embed"
"fmt"
"os"
"strings"
"github.com/urfave/cli/v3"
)
//go:embed version
var _version string
var version = strings.Trim(_version, "\n")
func main() {
cmd := &cli.Command{
Name: "smutok",
Version: version,
Usage: "An RSS feed reader.",
EnableShellCompletion: true,
Action: runTui,
Commands: []*cli.Command{
initConfigCmd,
syncFeedsCmd,
},
}
if err := cmd.Run(context.Background(), os.Args); err != nil {
fmt.Fprintf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}
|