mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
add group commands
This commit is contained in:
parent
1b129332ae
commit
36c8318db1
12 changed files with 398 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue