go-passbolt-cli/cmd/list.go
2022-03-14 17:35:30 +01:00

26 lines
731 B
Go

package cmd
import (
"github.com/passbolt/go-passbolt-cli/folder"
"github.com/passbolt/go-passbolt-cli/group"
"github.com/passbolt/go-passbolt-cli/resource"
"github.com/passbolt/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
// listCmd represents the list command
var listCmd = &cobra.Command{
Use: "list",
Short: "Lists Passbolt Entitys",
Long: `Lists Passbolt Entitys`,
Aliases: []string{"index", "ls", "filter", "search"},
}
func init() {
rootCmd.AddCommand(listCmd)
listCmd.PersistentFlags().BoolP("json", "j", false, "Outputs JSON")
listCmd.AddCommand(resource.ResourceListCmd)
listCmd.AddCommand(folder.FolderListCmd)
listCmd.AddCommand(group.GroupListCmd)
listCmd.AddCommand(user.UserListCmd)
}