mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-09-13 14:59:09 +00:00
add shellescapse, update deps
This commit is contained in:
parent
bf4a0c8d4a
commit
f373792c06
10 changed files with 182 additions and 85 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"strings"
|
||||
|
||||
"github.com/alessio/shellescape"
|
||||
"github.com/pterm/pterm"
|
||||
"github.com/speatzle/go-passbolt-cli/util"
|
||||
"github.com/speatzle/go-passbolt/helper"
|
||||
|
@ -68,11 +69,11 @@ func GroupGet(cmd *cobra.Command, args []string) error {
|
|||
case "isgroupmanager":
|
||||
entry[i] = fmt.Sprint(membership.IsGroupManager)
|
||||
case "username":
|
||||
entry[i] = fmt.Sprint(membership.Username)
|
||||
entry[i] = shellescape.StripUnsafe(membership.Username)
|
||||
case "userfirstname":
|
||||
entry[i] = fmt.Sprint(membership.UserFirstName)
|
||||
entry[i] = shellescape.StripUnsafe(membership.UserFirstName)
|
||||
case "userlastname":
|
||||
entry[i] = fmt.Sprint(membership.UserLastName)
|
||||
entry[i] = shellescape.StripUnsafe(membership.UserLastName)
|
||||
default:
|
||||
cmd.SilenceUsage = false
|
||||
return fmt.Errorf("Unknown Column: %v", columns[i])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue