add user commands

This commit is contained in:
Samuel Lorch 2021-09-08 14:51:26 +02:00
parent 78a9b08a6f
commit ce995fb1a5
12 changed files with 356 additions and 3 deletions

View file

@ -4,6 +4,7 @@ import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/speatzle/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
@ -20,4 +21,5 @@ func init() {
createCmd.AddCommand(resource.ResourceCreateCmd)
createCmd.AddCommand(folder.FolderCreateCmd)
createCmd.AddCommand(group.GroupCreateCmd)
createCmd.AddCommand(user.UserCreateCmd)
}

View file

@ -4,6 +4,7 @@ import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/speatzle/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
@ -20,6 +21,7 @@ func init() {
deleteCmd.AddCommand(resource.ResourceDeleteCmd)
deleteCmd.AddCommand(folder.FolderDeleteCmd)
deleteCmd.AddCommand(group.GroupDeleteCmd)
deleteCmd.AddCommand(user.UserDeleteCmd)
deleteCmd.PersistentFlags().String("id", "", "ID of the Entity to Delete")
}

View file

@ -4,6 +4,7 @@ import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/speatzle/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
@ -20,4 +21,6 @@ func init() {
getCmd.AddCommand(resource.ResourceGetCmd)
getCmd.AddCommand(folder.FolderGetCmd)
getCmd.AddCommand(group.GroupGetCmd)
getCmd.AddCommand(user.UserGetCmd)
}

View file

@ -4,6 +4,7 @@ import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/speatzle/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
@ -20,4 +21,5 @@ func init() {
listCmd.AddCommand(resource.ResourceListCmd)
listCmd.AddCommand(folder.FolderListCmd)
listCmd.AddCommand(group.GroupListCmd)
listCmd.AddCommand(user.UserListCmd)
}

View file

@ -4,6 +4,7 @@ import (
"github.com/speatzle/go-passbolt-cli/folder"
"github.com/speatzle/go-passbolt-cli/group"
"github.com/speatzle/go-passbolt-cli/resource"
"github.com/speatzle/go-passbolt-cli/user"
"github.com/spf13/cobra"
)
@ -20,4 +21,5 @@ func init() {
updateCmd.AddCommand(resource.ResourceUpdateCmd)
updateCmd.AddCommand(folder.FolderUpdateCmd)
updateCmd.AddCommand(group.GroupUpdateCmd)
updateCmd.AddCommand(user.UserUpdateCmd)
}