Ejemplo n.º 1
0
func (cbsh *Cbsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(cbsh.HistoryFile(), false)
	cbsh.Commands = commands
	// Url, Poolname, Bucketname are already initialized with ArgParse
	err = cbsh.Connect(c)
	return
}
Ejemplo n.º 2
0
func (idx *Indexsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(idx.HistoryFile(), false)
	idx.Config = nil
	idx.Programs = make(map[string]*sshc.Program)
	idx.Commands = commands
	return
}
Ejemplo n.º 3
0
func (n1ql *N1qlsh) Init(c *api.Context, commands api.CommandMap) (err error) {
	api.CreateFile(n1ql.HistoryFile(), false)
	return
}