add "cluster ls", put "status" into "cluster status" (#5)

This commit is contained in:
T. von Dein
2026-04-28 13:43:13 +02:00
parent 3cbc67567b
commit f27f9157fb
8 changed files with 115 additions and 95 deletions

View File

@@ -72,7 +72,6 @@ func Main() int {
},
Commands: []*cli.Command{
Status(conf),
Search(conf),
Index(conf),
Snapshot(conf),
@@ -81,7 +80,12 @@ func Main() int {
Before: func(ctx context.Context, cmd *cli.Command) (context.Context, error) {
if err := conf.Init(); err != nil {
return nil, err
if len(os.Args) > 1 {
return nil, err
} else {
fmt.Println(cmd.UsageText)
return nil, nil
}
}
log.Init(conf)