Correct subcommand var in init funtion

This commit is contained in:
PiMaDaum 2023-02-19 01:08:18 +01:00
parent 06f9466c8f
commit 57e7978ce6

View file

@ -23,8 +23,8 @@ var FolderToClipboardCommand = &cobra.Command{
} }
func init() { func init() {
FolderListCmd.Flags().StringP("search", "s", "", "Folders that have this in the Name") FolderToClipboardCommand.Flags().StringP("search", "s", "", "Folders that have this in the Name")
FolderListCmd.Flags().StringArrayP("column", "c", []string{"Name"}, "Columns to return, possible Columns:\nID, FolderParentID, Name, CreatedTimestamp, ModifiedTimestamp") FolderToClipboardCommand.Flags().StringArrayP("column", "c", []string{"Name"}, "Columns to return, possible Columns:\nID, FolderParentID, Name, CreatedTimestamp, ModifiedTimestamp")
} }
func FolderToClipboard(cmd *cobra.Command, args []string) error { func FolderToClipboard(cmd *cobra.Command, args []string) error {