mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-05-12 19:08:21 +00:00
25 lines
666 B
Go
25 lines
666 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"
|
|
)
|
|
|
|
// createCmd represents the create command
|
|
var createCmd = &cobra.Command{
|
|
Use: "create",
|
|
Short: "Creates a Passbolt Entity",
|
|
Long: `Creates a Passbolt Entity`,
|
|
Aliases: []string{"new"},
|
|
}
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(createCmd)
|
|
createCmd.AddCommand(resource.ResourceCreateCmd)
|
|
createCmd.AddCommand(folder.FolderCreateCmd)
|
|
createCmd.AddCommand(group.GroupCreateCmd)
|
|
createCmd.AddCommand(user.UserCreateCmd)
|
|
}
|