This repository has been archived on 2026-03-18. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
lotus-package-manager/Commands/ListCommand.go
2021-11-06 20:55:55 +01:00

29 lines
576 B
Go

package Commands
import (
"github.com/sirupsen/logrus"
"github.com/urfave/cli/v2"
"lpm-cli/Lotus"
)
func NewListCommand() *cli.Command{
logger := Lotus.CreateLogger("listCommand", logrus.WarnLevel)
return &cli.Command{
Name: "list",
Usage: "Lists all packages",
Description: "Lists all packages from all registry servers.",
HelpName: "list",
Action: func(c *cli.Context) error {
//Do Stuff
return nil
},
OnUsageError: func(c *cli.Context, err error, isSubcommand bool) error {
if err != nil {
logger.Fatal(err)
}
return err
},
}
}