-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.go
42 lines (32 loc) · 793 Bytes
/
data.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
38
39
40
41
42
package data
import (
"github.com/macinnir/dvc/core/lib"
"go.uber.org/zap"
)
const CommandName = "data"
// Data is the base command for managing static data sets
func Cmd(logger *zap.Logger, config *lib.Config, args []string) error {
return nil
// database := c.loadDatabase()
// connector, _ := connectorFactory(c.Config.DatabaseType, c.Config)
// d, e := data.NewData(c.Config, c.Options, database, connector)
// if e != nil {
// panic(e)
// }
// if len(args) == 0 {
// fmt.Println("Missing argument [help | import | apply]")
// return
// }
// cmd := args[0]
// args = args[1:]
// switch cmd {
// case "import":
// d.Import(args)
// case "apply":
// d.Apply(args)
// case "rm":
// d.Remove(args)
// default:
// fmt.Println("Unknown command")
// }
}