download

package
v0.1.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL