Implement copy to clipboard command for folder

subcommand
This commit is contained in:
PiMaDaum 2023-02-19 00:51:10 +01:00
parent bf985e9da9
commit 9ea164200b
2 changed files with 145 additions and 0 deletions

View file

@ -1,6 +1,7 @@
package cmd
import (
"github.com/passbolt/go-passbolt-cli/folder"
"github.com/passbolt/go-passbolt-cli/resource"
"github.com/spf13/cobra"
)
@ -22,5 +23,6 @@ func init() {
"\t--filter '(Name == \"SomeName\" || matches(Name, \"RegExpr\")) && URI.startsWith(\"https://auth.\")'\n"+
"\t--filter 'Username == \"User\" && CreatedTimestamp > timestamp(\"2022-06-10T00:00:00.000-00:00\")'")
toclipboardCmd.PersistentFlags().IntP("delay", "d", 5, "Seconds of delay to iterating over the column entries.")
toclipboardCmd.AddCommand(folder.FolderToClipboardCommand)
toclipboardCmd.AddCommand(resource.ResourceToClipboardCommand)
}