add group commands

This commit is contained in:
Samuel Lorch 2021-09-08 11:13:29 +02:00
parent 1b129332ae
commit 36c8318db1
12 changed files with 398 additions and 0 deletions

View file

@ -2,6 +2,7 @@ package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -18,4 +19,5 @@ func init() {
rootCmd.AddCommand(createCmd)
createCmd.AddCommand(resource.ResourceCreateCmd)
createCmd.AddCommand(folder.FolderCreateCmd)
createCmd.AddCommand(group.GroupCreateCmd)
}

View file

@ -2,6 +2,7 @@ package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -18,6 +19,7 @@ func init() {
rootCmd.AddCommand(deleteCmd)
deleteCmd.AddCommand(resource.ResourceDeleteCmd)
deleteCmd.AddCommand(folder.FolderDeleteCmd)
deleteCmd.AddCommand(group.GroupDeleteCmd)
deleteCmd.PersistentFlags().String("id", "", "ID of the Entity to Delete")
}

View file

@ -2,6 +2,7 @@ package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -18,4 +19,5 @@ func init() {
rootCmd.AddCommand(getCmd)
getCmd.AddCommand(resource.ResourceGetCmd)
getCmd.AddCommand(folder.FolderGetCmd)
getCmd.AddCommand(group.GroupGetCmd)
}

View file

@ -2,6 +2,7 @@ package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -18,4 +19,5 @@ func init() {
rootCmd.AddCommand(listCmd)
listCmd.AddCommand(resource.ResourceListCmd)
listCmd.AddCommand(folder.FolderListCmd)
listCmd.AddCommand(group.GroupListCmd)
}

View file

@ -1,6 +1,7 @@
package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -15,4 +16,5 @@ var moveCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(moveCmd)
moveCmd.AddCommand(resource.ResourceMoveCmd)
moveCmd.AddCommand(folder.FolderMoveCmd)
}

View file

@ -1,6 +1,7 @@
package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -15,4 +16,5 @@ var shareCmd = &cobra.Command{
func init() {
rootCmd.AddCommand(shareCmd)
shareCmd.AddCommand(resource.ResourceShareCmd)
shareCmd.AddCommand(folder.FolderShareCmd)
}

View file

@ -2,6 +2,7 @@ package cmd
import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -18,4 +19,5 @@ func init() {
rootCmd.AddCommand(updateCmd)
updateCmd.AddCommand(resource.ResourceUpdateCmd)
updateCmd.AddCommand(folder.FolderUpdateCmd)
updateCmd.AddCommand(group.GroupUpdateCmd)
}