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