Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DownloadCmd = &cobra.Command{ Use: "download", Short: "Download the dataset", Run: func(cmd *cobra.Command, args []string) { userName, _ := cmd.Flags().GetString("username") datasetName, _ := cmd.Flags().GetString("datasetname") path, _ := cmd.Flags().GetString("path") combined := userName + "/" + datasetName command := exec.Command("kaggle", "datasets", "download", "-d", combined, "-p", path) err := command.Run() if err != nil { fmt.Println("Error loading the dataset", err) return } fmt.Println("Dataset downloaded successfully") }, }
downloadCmd represents the download command
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.