mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-05-11 02:28:22 +00:00
27 lines
690 B
Go
27 lines
690 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"
|
|
)
|
|
|
|
// getCmd represents the get command
|
|
var getCmd = &cobra.Command{
|
|
Use: "get",
|
|
Short: "Gets a Passbolt Entity",
|
|
Long: `Gets a Passbolt Entity`,
|
|
Aliases: []string{"read"},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(getCmd)
|
|
getCmd.PersistentFlags().BoolP("json", "j", false, "Output JSON")
|
|
getCmd.AddCommand(resource.ResourceGetCmd)
|
|
getCmd.AddCommand(folder.FolderGetCmd)
|
|
getCmd.AddCommand(group.GroupGetCmd)
|
|
getCmd.AddCommand(user.UserGetCmd)
|
|
|
|
}
|