mirror of
https://github.com/passbolt/go-passbolt-cli.git
synced 2025-07-13 05:09:09 +00:00
updated columns flag to be column
fixed copy, past mistake
This commit is contained in:
parent
7b553fae9f
commit
8bdb750f23
5 changed files with 11 additions and 11 deletions
|
@ -25,7 +25,7 @@ func init() {
|
|||
FolderListCmd.Flags().StringP("search", "s", "", "Folders that have this in the Name")
|
||||
FolderListCmd.Flags().StringArrayP("folder", "f", []string{}, "Folders that are in this Folder")
|
||||
FolderListCmd.Flags().StringArrayP("group", "g", []string{}, "Folders that are shared with group")
|
||||
FolderListCmd.Flags().StringArrayP("columns", "c", []string{"ID", "FolderParentID", "Name"}, "Columns to return, possible Columns:\nID, FolderParentID, Name")
|
||||
FolderListCmd.Flags().StringArrayP("column", "c", []string{"ID", "FolderParentID", "Name"}, "Columns to return, possible Columns:\nID, FolderParentID, Name")
|
||||
}
|
||||
|
||||
func FolderList(cmd *cobra.Command, args []string) error {
|
||||
|
@ -37,7 +37,7 @@ func FolderList(cmd *cobra.Command, args []string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
columns, err := cmd.Flags().GetStringArray("columns")
|
||||
columns, err := cmd.Flags().GetStringArray("column")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue