Something went wrong. Try again.
bluesky viewer in the terminal
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051package main
import ( "context" "os"
"github.com/charmbracelet/log" _ "github.com/mattn/go-sqlite3" "github.com/stormlightlabs/skypanel/cli/internal/registry" "github.com/stormlightlabs/skypanel/cli/internal/ui" "github.com/stormlightlabs/skypanel/cli/internal/utils" "github.com/urfave/cli/v3")
var logger *log.Logger
func init() { utils.InitLogger(log.InfoLevel) logger = utils.GetLogger()}
func main() { ctx := context.Background() reg := registry.Get()
if err := reg.Init(ctx); err != nil { logger.Fatalf("Failed to initialize registry %v", err) } defer reg.Close()
cli.HelpPrinter = ui.StyledHelpPrinter cli.RootCommandHelpTemplate = ui.RootCommandHelpTemplate cli.CommandHelpTemplate = ui.CommandHelpTemplate cli.SubcommandHelpTemplate = ui.SubcommandHelpTemplate
app := &cli.Command{ Name: "skycli", Usage: "A companion CLI tool for your Bluesky feed ecosystem", Version: "0.1.0", Commands: []*cli.Command{ SetupCommand(), LoginCommand(), StatusCommand(), FetchCommand(), SearchCommand(), ListCommand(), ViewCommand(), ExportCommand(), FollowersCommand(), FollowingCommand(), }, }
if err := app.Run(ctx, os.Args); err != nil { logger.Fatalf("Command failed with error: %v", err) }}