All checks were successful
check / check (push) Successful in 4s
Move all substantive CLI code (app logic, UI, API client, hashcash, types) from cmd/neoirc-cli/ to internal/cli/. The cmd/neoirc-cli/main.go now contains only minimal bootstrapping that calls cli.Run(). This follows the project convention that cmd/ should only contain minimal main() bootstrapping code.
18 lines
255 B
Go
18 lines
255 B
Go
// Package main is the entry point for the neoirc-cli client.
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
|
|
"git.eeqj.de/sneak/neoirc/internal/cli"
|
|
)
|
|
|
|
func main() {
|
|
err := cli.Run()
|
|
if err != nil {
|
|
fmt.Fprintf(os.Stderr, "Error: %v\n", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|