/
dataset.go
37 lines (29 loc) · 1.1 KB
/
dataset.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package cmd
import (
flags "github.com/jessevdk/go-flags"
"github.com/mitchellh/cli"
)
//Dataset command
type Dataset struct {
*command
}
//DatasetFactory creates the command
func DatasetFactory(ui cli.Ui) cli.CommandFactory {
cmd := &Dataset{}
cmd.command = createCommand(ui, cmd.Execute, cmd.Description, cmd.Usage, cmd, nil, flags.None, "nerd dataset")
return func() (cli.Command, error) {
return cmd, nil
}
}
//Execute runs the command
func (cmd *Dataset) Execute(args []string) (err error) { return errShowHelp("") }
// Description returns long-form help text
func (cmd *Dataset) Description() string {
return "Group of commands used to manage datasets. A dataset is a collection of files, like a folder on a computer. They can be used as input for a job and, when an application creates output files, these can be automatically stored in a new dataset."
}
// Synopsis returns a one-line
func (cmd *Dataset) Synopsis() string {
return "Group of commands used to manage datasets (collection of files)."
}
// Usage shows usage
func (cmd *Dataset) Usage() string { return "nerd dataset <subcommand>" }